From e1a424e8a35738bf56ecdad01155fb45b3001660 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 27 Feb 2003 09:33:07 -0300 Subject: avoid the identifier `index' (clashes with BSD `index' function) --- lcode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lcode.c') diff --git a/lcode.c b/lcode.c index 0d96f632..ed1e0bff 100644 --- a/lcode.c +++ b/lcode.c @@ -1,5 +1,5 @@ /* -** $Id: lcode.c,v 1.114 2002/12/04 17:38:31 roberto Exp roberto $ +** $Id: lcode.c,v 1.115 2002/12/11 12:34:22 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -207,10 +207,10 @@ static void freeexp (FuncState *fs, expdesc *e) { static int addk (FuncState *fs, TObject *k, TObject *v) { - const TObject *index = luaH_get(fs->h, k); - if (ttisnumber(index)) { - lua_assert(luaO_rawequalObj(&fs->f->k[cast(int, nvalue(index))], v)); - return cast(int, nvalue(index)); + const TObject *idx = luaH_get(fs->h, k); + if (ttisnumber(idx)) { + lua_assert(luaO_rawequalObj(&fs->f->k[cast(int, nvalue(idx))], v)); + return cast(int, nvalue(idx)); } else { /* constant not found; create a new entry */ Proto *f = fs->f; -- cgit v1.2.3-55-g6feb