diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-05-06 11:29:35 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-05-06 11:29:35 -0300 |
commit | 820ec63bdf9722d670f2ab8497f639f5fee5942a (patch) | |
tree | 71443993c9369f9bd117ef86b044e079bf24a9d7 | |
parent | 01ea523b80b347e62b2d653c652dbdc374ef08fb (diff) | |
download | lua-820ec63bdf9722d670f2ab8497f639f5fee5942a.tar.gz lua-820ec63bdf9722d670f2ab8497f639f5fee5942a.tar.bz2 lua-820ec63bdf9722d670f2ab8497f639f5fee5942a.zip |
as strings are no more duplicated, "nextvar" can use "pushstring".
-rw-r--r-- | table.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Module to control static tables | 3 | ** Module to control static tables |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_table="$Id: table.c,v 2.52 1996/04/22 18:00:37 roberto Exp $"; | 6 | char *rcs_table="$Id: table.c,v 2.53 1996/04/29 18:53:53 roberto Exp roberto $"; |
7 | 7 | ||
8 | #include "mem.h" | 8 | #include "mem.h" |
9 | #include "opcode.h" | 9 | #include "opcode.h" |
@@ -246,11 +246,7 @@ static void lua_nextvar (void) | |||
246 | } | 246 | } |
247 | else | 247 | else |
248 | { | 248 | { |
249 | TaggedString *t = lua_table[next].varname; | 249 | lua_pushstring(lua_table[next].varname->str); |
250 | Object name; | ||
251 | tag(&name) = LUA_T_STRING; | ||
252 | tsvalue(&name) = t; | ||
253 | luaI_pushobject(&name); | ||
254 | luaI_pushobject(&s_object(next)); | 250 | luaI_pushobject(&s_object(next)); |
255 | } | 251 | } |
256 | } | 252 | } |