String buffer refactoring, part 4.

Add lua_State pointer to SBuf for buffer resizing.
This commit is contained in:
Mike Pall
2013-02-28 13:37:56 +01:00
parent 3c0157f426
commit 9ec869b362
11 changed files with 68 additions and 62 deletions

View File

@@ -61,7 +61,7 @@ static LJ_AINLINE LexChar lex_next(LexState *ls)
/* Save character. */
static LJ_AINLINE void lex_save(LexState *ls, LexChar c)
{
lj_buf_putb(ls->L, &ls->sb, c);
lj_buf_putb(&ls->sb, c);
}
/* Save previous character and get next character. */