Sfoglia il codice sorgente

core: increase max_defines from 256 to 512

lazedo 6 anni fa
parent
commit
22f31b2147
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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/ifdef support */
 
 
-#define MAX_DEFINES    256
+#define MAX_DEFINES    512
 static ksr_ppdefine_t pp_defines[MAX_DEFINES];
 static ksr_ppdefine_t pp_defines[MAX_DEFINES];
 static int pp_num_defines = 0;
 static int pp_num_defines = 0;
 static int pp_define_type = 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
  * ifdef(defined), ifndef(undefined), or the opposite of these
  * two, but in an else branch
  * two, but in an else branch
  */
  */
-#define MAX_IFDEFS    256
+#define MAX_IFDEFS    512
 static int pp_ifdef_stack[MAX_IFDEFS];
 static int pp_ifdef_stack[MAX_IFDEFS];
 static int pp_sptr = 0; /* stack pointer */
 static int pp_sptr = 0; /* stack pointer */