This commit is contained in:
Roberto Ierusalimschy 2003-10-03 13:07:44 -03:00
parent 7b8504840f
commit 3087636c76

6
llex.c
View File

@ -1,5 +1,5 @@
/*
** $Id: llex.c,v 1.125 2003/09/04 20:00:28 roberto Exp roberto $
** $Id: llex.c,v 1.126 2003/10/03 16:05:34 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@ -25,12 +25,10 @@
#define next(ls) (ls->current = zgetc(ls->z))
#define MINLEXBUF 32
#define save(ls,c) { \
Mbuffer *b = ls->buff; \
if (b->n + 1 > b->buffsize) \
luaZ_resizebuffer(ls->L, b, ((b->buffsize*2) + MINLEXBUF)); \
luaZ_resizebuffer(ls->L, b, ((b->buffsize*2) + LUA_MINBUFFER)); \
b->buffer[b->n++] = cast(char, c); }