Skip to content

Commit

Permalink
compiler: quick and dirty work-around for having too many identifiers
Browse files Browse the repository at this point in the history
The realloc in grow_table changes the location of symbols. Since we
keep pointers to the symbols around for a while during compilation,
this causes trouble.

This quick and diry hack increases the first allocation well beyond
what the largest patch currently uses. Needs more thought, though.
  • Loading branch information
wpwrak committed Feb 26, 2012
1 parent 60b0198 commit 5109cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/symtab.c
Expand Up @@ -18,7 +18,7 @@
#include "symtab.h"


#define INITIAL_ALLOC 64
#define INITIAL_ALLOC 256


struct key_n {
Expand Down

0 comments on commit 5109cd4

Please sign in to comment.