From 820ec63bdf9722d670f2ab8497f639f5fee5942a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 6 May 1996 11:29:35 -0300 Subject: [PATCH] as strings are no more duplicated, "nextvar" can use "pushstring". --- table.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/table.c b/table.c index cb9a6a2c..56f7fb82 100644 --- a/table.c +++ b/table.c @@ -3,7 +3,7 @@ ** Module to control static tables */ -char *rcs_table="$Id: table.c,v 2.52 1996/04/22 18:00:37 roberto Exp $"; +char *rcs_table="$Id: table.c,v 2.53 1996/04/29 18:53:53 roberto Exp roberto $"; #include "mem.h" #include "opcode.h" @@ -246,11 +246,7 @@ static void lua_nextvar (void) } else { - TaggedString *t = lua_table[next].varname; - Object name; - tag(&name) = LUA_T_STRING; - tsvalue(&name) = t; - luaI_pushobject(&name); + lua_pushstring(lua_table[next].varname->str); luaI_pushobject(&s_object(next)); } }