diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-02-08 14:39:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-02-08 14:39:42 -0200 |
commit | 74f1c3d025c6d8a714454470a953f383a1c6a641 (patch) | |
tree | cc89dfa109c64ed928217d777959ffc7ace12501 /ldo.c | |
parent | 1f691a4fcd32b706c79e4c8cbff17c6ae985bc34 (diff) | |
download | lua-74f1c3d025c6d8a714454470a953f383a1c6a641.tar.gz lua-74f1c3d025c6d8a714454470a953f383a1c6a641.tar.bz2 lua-74f1c3d025c6d8a714454470a953f383a1c6a641.zip |
small changes for "clean C"
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.65 2000/01/13 15:56:03 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.66 2000/01/19 12:00:45 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -266,9 +266,9 @@ void lua_error (lua_State *L, const char *s) { | |||
266 | */ | 266 | */ |
267 | int luaD_protectedrun (lua_State *L) { | 267 | int luaD_protectedrun (lua_State *L) { |
268 | struct lua_longjmp myErrorJmp; | 268 | struct lua_longjmp myErrorJmp; |
269 | volatile StkId base = L->Cstack.base; | 269 | StkId base = L->Cstack.base; |
270 | volatile int numCblocks = L->numCblocks; | 270 | int numCblocks = L->numCblocks; |
271 | volatile int status; | 271 | int status; |
272 | struct lua_longjmp *volatile oldErr = L->errorJmp; | 272 | struct lua_longjmp *volatile oldErr = L->errorJmp; |
273 | L->errorJmp = &myErrorJmp; | 273 | L->errorJmp = &myErrorJmp; |
274 | if (setjmp(myErrorJmp.b) == 0) { | 274 | if (setjmp(myErrorJmp.b) == 0) { |
@@ -295,9 +295,9 @@ int luaD_protectedrun (lua_State *L) { | |||
295 | */ | 295 | */ |
296 | static int protectedparser (lua_State *L, ZIO *z, int bin) { | 296 | static int protectedparser (lua_State *L, ZIO *z, int bin) { |
297 | struct lua_longjmp myErrorJmp; | 297 | struct lua_longjmp myErrorJmp; |
298 | volatile StkId base = L->Cstack.base; | 298 | StkId base = L->Cstack.base; |
299 | volatile int numCblocks = L->numCblocks; | 299 | int numCblocks = L->numCblocks; |
300 | volatile int status; | 300 | int status; |
301 | TProtoFunc *volatile tf; | 301 | TProtoFunc *volatile tf; |
302 | struct lua_longjmp *volatile oldErr = L->errorJmp; | 302 | struct lua_longjmp *volatile oldErr = L->errorJmp; |
303 | L->errorJmp = &myErrorJmp; | 303 | L->errorJmp = &myErrorJmp; |