aboutsummaryrefslogtreecommitdiff
path: root/inout.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-26 18:00:27 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-26 18:00:27 -0300
commitd6e4c29733b43130c5222c49b3c4b9dfcd8bb893 (patch)
tree379cb091e690a3680bf1f26f23658d5d9af4789c /inout.c
parent3e429699792218af45a0f399542e14563c1a173b (diff)
downloadlua-d6e4c29733b43130c5222c49b3c4b9dfcd8bb893.tar.gz
lua-d6e4c29733b43130c5222c49b3c4b9dfcd8bb893.tar.bz2
lua-d6e4c29733b43130c5222c49b3c4b9dfcd8bb893.zip
fixed strings (not collectable) don't need to be inserted in the constant table.
Diffstat (limited to 'inout.c')
-rw-r--r--inout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/inout.c b/inout.c
index 7959068f..fe799e93 100644
--- a/inout.c
+++ b/inout.c
@@ -5,7 +5,7 @@
5** Also provides some predefined lua functions. 5** Also provides some predefined lua functions.
6*/ 6*/
7 7
8char *rcs_inout="$Id: inout.c,v 2.31 1996/02/13 17:30:39 roberto Exp roberto $"; 8char *rcs_inout="$Id: inout.c,v 2.32 1996/02/14 18:25:04 roberto Exp roberto $";
9 9
10#include <stdio.h> 10#include <stdio.h>
11#include <stdlib.h> 11#include <stdlib.h>
@@ -66,7 +66,7 @@ int lua_openfile (char *fn)
66 if (fp == NULL) 66 if (fp == NULL)
67 return 1; 67 return 1;
68 lua_linenumber = 1; 68 lua_linenumber = 1;
69 lua_parsedfile = lua_constcreate(fn)->str; 69 lua_parsedfile = luaI_createfixedstring(fn)->str;
70 return 0; 70 return 0;
71} 71}
72 72
@@ -90,7 +90,7 @@ void lua_openstring (char *s)
90 lua_setinput (stringinput); 90 lua_setinput (stringinput);
91 st = s; 91 st = s;
92 lua_linenumber = 1; 92 lua_linenumber = 1;
93 lua_parsedfile = lua_constcreate("(string)")->str; 93 lua_parsedfile = luaI_createfixedstring("(string)")->str;
94} 94}
95 95
96/* 96/*