[OpenSIPS-Devel] [OpenSIPS/opensips] ce8b99: Extend str_match() and str_casematch() APIs to wor...
Maksym Sobolyev
noreply at github.com
Fri Jan 29 17:48:13 EST 2021
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: ce8b994d160ef1b64c86fa9471c4ddad35a245d2
https://github.com/OpenSIPS/opensips/commit/ce8b994d160ef1b64c86fa9471c4ddad35a245d2
Author: Maksym Sobolyev <sobomax at sippysoft.com>
Date: 2021-01-29 (Fri, 29 Jan 2021)
Changed paths:
M lib/str2const.h
M ut.h
Log Message:
-----------
Extend str_match() and str_casematch() APIs to work on any combination
of str and str_const's.
Commit: fc22e1784c52efd662949b7d965ba1aae9d55f8c
https://github.com/OpenSIPS/opensips/commit/fc22e1784c52efd662949b7d965ba1aae9d55f8c
Author: Maksym Sobolyev <sobomax at sippysoft.com>
Date: 2021-01-29 (Fri, 29 Jan 2021)
Changed paths:
M lib/reg/pn.c
M lib/test/test_csv.c
M modules/dialplan/dialplan.c
M modules/dialplan/dp_db.c
M modules/fraud_detection/frd_load.c
M parser/parse_uri.h
M parser/test/test_parse_fcaps.c
M parser/test/test_parser.c
Log Message:
-----------
Use const_str() not _str() when generating point of use literals
to be used in str_match() / str_casematch(). As discussed with
@liviuchircu here https://github.com/OpenSIPS/opensips/commit/0147baa21072c5b9#commitcomment-46519279
it saves us some code size and also should have at least some
positive performance effect by not saving 2 values into memory
that nobody reads.
Compare: https://github.com/OpenSIPS/opensips/compare/2d9b5130cf37...fc22e1784c52
More information about the Devel
mailing list