fixed strings (not collectable) don't need to be inserted in the constant table.

This commit is contained in:
Roberto Ierusalimschy
1996-02-26 18:00:27 -03:00
parent 3e42969979
commit d6e4c29733
4 changed files with 26 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
%{
char *rcs_luastx = "$Id: lua.stx,v 3.32 1996/02/14 18:25:04 roberto Exp roberto $";
char *rcs_luastx = "$Id: lua.stx,v 3.33 1996/02/26 17:07:20 roberto Exp roberto $";
#include <stdio.h>
#include <stdlib.h>
@@ -487,7 +487,7 @@ funcname : var { $$ =$1; init_func(); }
code_word(luaI_findconstant($3));
$$ = 0; /* indexed variable */
init_func();
add_localvar(lua_constcreate("self"));
add_localvar(luaI_createfixedstring("self"));
}
;