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

@@ -5,7 +5,7 @@
** Also provides some predefined lua functions.
*/
char *rcs_inout="$Id: inout.c,v 2.31 1996/02/13 17:30:39 roberto Exp roberto $";
char *rcs_inout="$Id: inout.c,v 2.32 1996/02/14 18:25:04 roberto Exp roberto $";
#include <stdio.h>
#include <stdlib.h>
@@ -66,7 +66,7 @@ int lua_openfile (char *fn)
if (fp == NULL)
return 1;
lua_linenumber = 1;
lua_parsedfile = lua_constcreate(fn)->str;
lua_parsedfile = luaI_createfixedstring(fn)->str;
return 0;
}
@@ -90,7 +90,7 @@ void lua_openstring (char *s)
lua_setinput (stringinput);
st = s;
lua_linenumber = 1;
lua_parsedfile = lua_constcreate("(string)")->str;
lua_parsedfile = luaI_createfixedstring("(string)")->str;
}
/*