Module: kamailio
Branch: 5.2
Commit: e244d6d5e8138b97f3c3aaa55970835576f9cc3e
URL:
https://github.com/kamailio/kamailio/commit/e244d6d5e8138b97f3c3aaa55970835…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2019-03-09T12:55:53+01:00
core: increase max_defines from 256 to 512
(cherry picked from commit b4696169e8b464da01774b1e40af677f941c803b)
---
Modified: src/core/cfg.lex
---
Diff:
https://github.com/kamailio/kamailio/commit/e244d6d5e8138b97f3c3aaa55970835…
Patch:
https://github.com/kamailio/kamailio/commit/e244d6d5e8138b97f3c3aaa55970835…
---
diff --git a/src/core/cfg.lex b/src/core/cfg.lex
index bcdad27322..6a0d23d76f 100644
--- a/src/core/cfg.lex
+++ b/src/core/cfg.lex
@@ -1707,7 +1707,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;
@@ -1717,7 +1717,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 */