more refactoring; things seem to work fine

all example scripts run fine with GC_STRESS enabled
This commit is contained in:
2023-08-30 12:00:52 -05:00
committed by cpunch
parent d30bcace9a
commit c0893b8a14
5 changed files with 38 additions and 118 deletions

View File

@@ -90,7 +90,7 @@ static char *cutBuffer(CLexState *state, int *length)
resetBuffer(state);
// shrink the buffer to only use what we need
return cosmoM_reallocate(state->cstate, buf, cap, count, true);
return cosmoM_reallocate(state->cstate, buf, cap, count);
}
static CToken makeToken(CLexState *state, CTokenType type)