From d6e4c29733b43130c5222c49b3c4b9dfcd8bb893 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 26 Feb 1996 18:00:27 -0300 Subject: fixed strings (not collectable) don't need to be inserted in the constant table. --- inout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inout.c') diff --git a/inout.c b/inout.c index 7959068f..fe799e93 100644 --- a/inout.c +++ b/inout.c @@ -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 #include @@ -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; } /* -- cgit v1.2.3-55-g6feb