[OpenSIPS-Devel] [OpenSIPS/opensips] ea3436: Add str_static() macro similar to the const_str() ...
Maksym Sobolyev
noreply at github.com
Mon Sep 27 23:42:55 EST 2021
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: ea3436b26108fe129d04b47b02dd8d60255487c3
https://github.com/OpenSIPS/opensips/commit/ea3436b26108fe129d04b47b02dd8d60255487c3
Author: Maksym Sobolyev <sobomax at sippysoft.com>
Date: 2021-09-27 (Mon, 27 Sep 2021)
Changed paths:
M modules/auth/api.c
M str.h
Log Message:
-----------
Add str_static() macro similar to the const_str() but returning
const str *, not const str_const *. This provides useful construct
to initialize time-of-use const str * that won't go out of
scope. This is another way to address issue fixed by @liviuchircu
in the 0fadc0a6cb, one that is bit more cleaner and generates a
slightly smaller compiled code.
More information about the Devel
mailing list