D | llex.c | 32 #define next(ls) (ls->current = zgetc(ls->z)) argument 36 #define currIsNewline(ls) (ls->current == '\n' || ls->current == '\r') argument 51 #define save_and_next(ls) (save(ls, ls->current), next(ls)) argument 54 static l_noret lexerror (LexState *ls, const char *msg, int token); 57 static void save (LexState *ls, int c) { in save() argument 58 Mbuffer *b = ls->buff; in save() 62 lexerror(ls, "lexical element too long", 0); in save() 64 luaZ_resizebuffer(ls->L, b, newsize); in save() 82 const char *luaX_token2str (LexState *ls, int token) { in luaX_token2str() argument 85 return luaO_pushfstring(ls->L, "'%c'", token); in luaX_token2str() [all …]
|