From c78940f21a956064ac79f715af072e283538f35c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 3 Dec 2004 18:50:25 -0200 Subject: static names do not need `luaX_' prefix --- lparser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index 17a89fd3..9a33bb42 100644 --- a/lparser.c +++ b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 2.8 2004/12/03 20:35:33 roberto Exp roberto $ +** $Id: lparser.c,v 2.9 2004/12/03 20:44:19 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -423,7 +423,7 @@ static void field (LexState *ls, expdesc *v) { } -static void luaY_index (LexState *ls, expdesc *v) { +static void yindex (LexState *ls, expdesc *v) { /* index -> '[' expr ']' */ next(ls); /* skip the '[' */ expr(ls, v); @@ -459,7 +459,7 @@ static void recfield (LexState *ls, struct ConsControl *cc) { checkname(ls, &key); } else /* ls->t.token == '[' */ - luaY_index(ls, &key); + yindex(ls, &key); check(ls, '='); luaK_exp2RK(fs, &key); expr(ls, &val); @@ -706,7 +706,7 @@ static void primaryexp (LexState *ls, expdesc *v) { case '[': { /* `[' exp1 `]' */ expdesc key; luaK_exp2anyreg(fs, v); - luaY_index(ls, &key); + yindex(ls, &key); luaK_indexed(fs, v, &key); break; } -- cgit v1.2.3-55-g6feb