aboutsummaryrefslogtreecommitdiff
path: root/inout.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-12 15:32:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-02-12 15:32:40 -0300
commit41259bff31dbb904edfb8070006ccb15577f8f04 (patch)
tree664bf9cbe6394e9074435ecf2bd710712b4537c3 /inout.c
parentafaa98a666acd5f596b50f56bb288815838c096e (diff)
downloadlua-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/inout.c b/inout.c
index a3100a4f..8ba4b6bb 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.28 1996/01/26 16:52:47 roberto Exp roberto $"; 8char *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/*