Module: kamailio Branch: master Commit: 83a437144bad5d31f5ce1bfc10b03f613524852f URL: https://github.com/kamailio/kamailio/commit/83a437144bad5d31f5ce1bfc10b03f61...
Author: lazedo luis.azedo@factorlusitano.com Committer: lazedo luis.azedo@factorlusitano.com Date: 2019-01-18T13:18:01Z
core: allow pp_define_get to be used by modules
---
Modified: src/core/cfg.lex
---
Diff: https://github.com/kamailio/kamailio/commit/83a437144bad5d31f5ce1bfc10b03f61... Patch: https://github.com/kamailio/kamailio/commit/83a437144bad5d31f5ce1bfc10b03f61...
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex index 6e4d6971e5..9912d111bc 100644 --- a/src/core/cfg.lex +++ b/src/core/cfg.lex @@ -113,7 +113,7 @@ struct sr_yy_fname *next; } *sr_yy_fname_list = 0;
- static str *pp_define_get(int len, const char * text); + str *pp_define_get(int len, const char * text); static int pp_ifdef_type(int pos); static void pp_ifdef_var(int len, const char * text); static void pp_ifdef(); @@ -1856,7 +1856,7 @@ int pp_define_set(int len, char *text) return 0; }
-static str *pp_define_get(int len, const char * text) +str *pp_define_get(int len, const char * text) { str var = {(char *)text, len}; int i;