mirror of
https://github.com/lua/lua
synced 2025-01-06 01:22:06 +03:00
detail
This commit is contained in:
parent
7b8504840f
commit
3087636c76
6
llex.c
6
llex.c
@ -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); }
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user