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