diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-26 16:28:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-26 16:28:31 -0300 |
commit | afef009fcea199bd4eff28ea6e5206b59cda9939 (patch) | |
tree | 3954490fd4149900be8e795f630104637cd02f4b /lundump.c | |
parent | b69e712713785394ceefa11ab3e5f9636abea733 (diff) | |
download | lua-afef009fcea199bd4eff28ea6e5206b59cda9939.tar.gz lua-afef009fcea199bd4eff28ea6e5206b59cda9939.tar.bz2 lua-afef009fcea199bd4eff28ea6e5206b59cda9939.zip |
new version of debug system
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) | |||
93 | static void SwapCode (lua_State* L, Instruction* code, int size, ZIO* Z) | 93 | static 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 | ||