lua

A copy of the Lua development repository
Log | Files | Refs | README

commit d2d24f09713cfecf59a7688c45a3863a35f09254
parent 0436c96866851f4081286f86500cb36c47fb27a5
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon,  8 Jul 2002 15:14:14 -0300

details to allow compilation of Lua as a single file

Diffstat:
Mllex.c | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/llex.c b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 1.105 2002/06/18 15:19:27 roberto Exp roberto $ +** $Id: llex.c,v 1.106 2002/06/25 19:18:20 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -160,7 +160,7 @@ static size_t readname (LexState *LS) { /* LUA_NUMBER */ -static void read_number (LexState *LS, int comma, SemInfo *seminfo) { +static void read_numeral (LexState *LS, int comma, SemInfo *seminfo) { lua_State *L = LS->L; size_t l = 0; checkbuffer(L, l); @@ -367,7 +367,7 @@ int luaX_lex (LexState *LS, SemInfo *seminfo) { } else if (!isdigit(LS->current)) return '.'; else { - read_number(LS, 1, seminfo); + read_numeral(LS, 1, seminfo); return TK_NUMBER; } } @@ -380,7 +380,7 @@ int luaX_lex (LexState *LS, SemInfo *seminfo) { continue; } else if (isdigit(LS->current)) { - read_number(LS, 0, seminfo); + read_numeral(LS, 0, seminfo); return TK_NUMBER; } else if (isalpha(LS->current) || LS->current == '_') { @@ -405,3 +405,4 @@ int luaX_lex (LexState *LS, SemInfo *seminfo) { } } +#undef next