Browse Source

core: increase max_defines from 256 to 512

lazedo 6 years ago
parent
commit
22f31b2147
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/cfg.lex

+ 2 - 2
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 */