diff options
Diffstat (limited to 'inout.c')
-rw-r--r-- | inout.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,7 +5,7 @@ | |||
5 | ** Also provides some predefined lua functions. | 5 | ** Also provides some predefined lua functions. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | char *rcs_inout="$Id: inout.c,v 2.31 1996/02/13 17:30:39 roberto Exp roberto $"; | 8 | char *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 | /* |