add PIC_SYMS_SIZE constant
This commit is contained in:
parent
e67996f8af
commit
1ff8672a11
|
@ -1005,9 +1005,9 @@ push_codegen_context(codegen_state *state, pic_value name, pic_value args, pic_v
|
|||
cxt->plen = 0;
|
||||
cxt->pcapa = PIC_POOL_SIZE;
|
||||
|
||||
cxt->syms = pic_calloc(pic, PIC_POOL_SIZE, sizeof(pic_sym *));
|
||||
cxt->syms = pic_calloc(pic, PIC_SYMS_SIZE, sizeof(pic_sym *));
|
||||
cxt->slen = 0;
|
||||
cxt->scapa = PIC_POOL_SIZE;
|
||||
cxt->scapa = PIC_SYMS_SIZE;
|
||||
|
||||
state->cxt = cxt;
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
/* #define PIC_POOL_SIZE 8 */
|
||||
|
||||
/* #define PIC_SYMS_SIZE 32 */
|
||||
|
||||
/* #define PIC_ISEQ_SIZE 1024 */
|
||||
|
||||
/** enable all debug flags */
|
||||
|
@ -85,6 +87,10 @@
|
|||
# define PIC_POOL_SIZE 8
|
||||
#endif
|
||||
|
||||
#ifndef PIC_SYMS_SIZE
|
||||
# define PIC_SYMS_SIZE 32
|
||||
#endif
|
||||
|
||||
#ifndef PIC_ISEQ_SIZE
|
||||
# define PIC_ISEQ_SIZE 1024
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue