aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-26 16:28:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-06-26 16:28:31 -0300
commitafef009fcea199bd4eff28ea6e5206b59cda9939 (patch)
tree3954490fd4149900be8e795f630104637cd02f4b /lundump.c
parentb69e712713785394ceefa11ab3e5f9636abea733 (diff)
downloadlua-afef009fcea199bd4eff28ea6e5206b59cda9939.tar.gz
lua-afef009fcea199bd4eff28ea6e5206b59cda9939.tar.bz2
lua-afef009fcea199bd4eff28ea6e5206b59cda9939.zip
new version of debug system
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lundump.c b/lundump.c
index 97ceccaf..36c89704 100644
--- a/lundump.c
+++ b/lundump.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lundump.c,v 1.21 2000/05/08 19:32:53 roberto Exp roberto $ 2** $Id: lundump.c,v 1.22 2000/06/12 13:52:05 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*/
@@ -93,7 +93,7 @@ static TString* LoadString (lua_State* L, ZIO* Z)
93static void SwapCode (lua_State* L, Instruction* code, int size, ZIO* Z) 93static void SwapCode (lua_State* L, Instruction* code, int size, ZIO* Z)
94{ 94{
95 unsigned char* p; 95 unsigned char* p;
96 int c; 96 unsigned char c;
97 if (sizeof(Instruction)==4) 97 if (sizeof(Instruction)==4)
98 while (size--) 98 while (size--)
99 { 99 {
@@ -138,10 +138,10 @@ static void LoadLocals (lua_State* L, Proto* tf, ZIO* Z)
138 tf->locvars=luaM_newvector(L,n+1,LocVar); 138 tf->locvars=luaM_newvector(L,n+1,LocVar);
139 for (i=0; i<n; i++) 139 for (i=0; i<n; i++)
140 { 140 {
141 tf->locvars[i].line=LoadInt(L,Z,"too many lines"); 141 tf->locvars[i].pc=LoadInt(L,Z,"too many lines");
142 tf->locvars[i].varname=LoadString(L,Z); 142 tf->locvars[i].varname=LoadString(L,Z);
143 } 143 }
144 tf->locvars[i].line=-1; /* flag end of vector */ 144 tf->locvars[i].pc=-1; /* flag end of vector */
145 tf->locvars[i].varname=NULL; 145 tf->locvars[i].varname=NULL;
146} 146}
147 147