aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-08 16:32:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-05-08 16:32:53 -0300
commit11a70220670f25a9929439f0b27331f09f05235c (patch)
treec4a962b5a3e53ac6df8894fb3ad2248c4a1256cb /lundump.c
parent35a6ed283881f313152457f24cc6c677122d5058 (diff)
downloadlua-11a70220670f25a9929439f0b27331f09f05235c.tar.gz
lua-11a70220670f25a9929439f0b27331f09f05235c.tar.bz2
lua-11a70220670f25a9929439f0b27331f09f05235c.zip
global variables are stored in a Lua table
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lundump.c b/lundump.c
index f9d90168..11ada16d 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 1.28 2000/04/24 19:32:58 lhf Exp $ 2** $Id: lundump.c,v 1.20 2000/04/25 16:44:31 roberto Exp roberto $
3** load bytecodes from files 3** load bytecodes from files
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -155,8 +155,7 @@ static void LoadConstants (lua_State* L, Proto* tf, ZIO* Z, int native)
155 for (i=0; i<n; i++) 155 for (i=0; i<n; i++)
156 { 156 {
157 TString* s=LoadString(L,Z); 157 TString* s=LoadString(L,Z);
158 int isglobal=LoadByte(L,Z); 158 LoadByte(L,Z);
159 if (isglobal) luaS_assertglobal(L,s);
160 tf->kstr[i]=s; 159 tf->kstr[i]=s;
161 } 160 }
162 } 161 }