diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-12 15:32:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-02-12 15:32:40 -0300 |
commit | 41259bff31dbb904edfb8070006ccb15577f8f04 (patch) | |
tree | 664bf9cbe6394e9074435ecf2bd710712b4537c3 /inout.c | |
parent | afaa98a666acd5f596b50f56bb288815838c096e (diff) | |
download | lua-41259bff31dbb904edfb8070006ccb15577f8f04.tar.gz lua-41259bff31dbb904edfb8070006ccb15577f8f04.tar.bz2 lua-41259bff31dbb904edfb8070006ccb15577f8f04.zip |
BIG CHANGE: new data structure for constants, strings and globals, using
an array of hash tables for all them.
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.28 1996/01/26 16:52:47 roberto Exp roberto $"; | 8 | char *rcs_inout="$Id: inout.c,v 2.29 1996/02/07 14:13:47 roberto Exp roberto $"; |
9 | 9 | ||
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <stdlib.h> | 11 | #include <stdlib.h> |
@@ -68,7 +68,7 @@ int lua_openfile (char *fn) | |||
68 | if (fp == NULL) | 68 | if (fp == NULL) |
69 | return 1; | 69 | return 1; |
70 | lua_linenumber = 1; | 70 | lua_linenumber = 1; |
71 | lua_parsedfile = lua_constcreate(fn)->ts.str; | 71 | lua_parsedfile = lua_constcreate(fn)->str; |
72 | return 0; | 72 | return 0; |
73 | } | 73 | } |
74 | 74 | ||
@@ -92,7 +92,7 @@ void lua_openstring (char *s) | |||
92 | lua_setinput (stringinput); | 92 | lua_setinput (stringinput); |
93 | st = s; | 93 | st = s; |
94 | lua_linenumber = 1; | 94 | lua_linenumber = 1; |
95 | lua_parsedfile = lua_constcreate("(string)")->ts.str; | 95 | lua_parsedfile = lua_constcreate("(string)")->str; |
96 | } | 96 | } |
97 | 97 | ||
98 | /* | 98 | /* |