Module: kamailio Branch: master Commit: 22f31b21470221dd042137f35695b808900dfe16 URL: https://github.com/kamailio/kamailio/commit/22f31b21470221dd042137f35695b808...
Author: lazedo luis.azedo@factorlusitano.com Committer: Henning Westerholt henningw@users.noreply.github.com Date: 2019-03-09T12:52:43+01:00
core: increase max_defines from 256 to 512
---
Modified: src/core/cfg.lex
---
Diff: https://github.com/kamailio/kamailio/commit/22f31b21470221dd042137f35695b808... Patch: https://github.com/kamailio/kamailio/commit/22f31b21470221dd042137f35695b808...
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex index 04e40424dd..706c1b05ce 100644 --- a/src/core/cfg.lex +++ b/src/core/cfg.lex @@ -1718,7 +1718,7 @@ static int sr_pop_yy_state()
/* define/ifdef support */
-#define MAX_DEFINES 256 +#define MAX_DEFINES 512 static ksr_ppdefine_t pp_defines[MAX_DEFINES]; static int pp_num_defines = 0; static int pp_define_type = 0; @@ -1728,7 +1728,7 @@ static int pp_define_index = -1; * ifdef(defined), ifndef(undefined), or the opposite of these * two, but in an else branch */ -#define MAX_IFDEFS 256 +#define MAX_IFDEFS 512 static int pp_ifdef_stack[MAX_IFDEFS]; static int pp_sptr = 0; /* stack pointer */