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 /ltests.c | |
| parent | 1f691a4fcd32b706c79e4c8cbff17c6ae985bc34 (diff) | |
| download | lua-74f1c3d025c6d8a714454470a953f383a1c6a641.tar.gz lua-74f1c3d025c6d8a714454470a953f383a1c6a641.tar.bz2 lua-74f1c3d025c6d8a714454470a953f383a1c6a641.zip | |
small changes for "clean C"
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.5 2000/01/19 12:00:45 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.6 2000/01/24 20:11:26 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -243,7 +243,7 @@ static void testC (lua_State *L) { | |||
| 243 | lua_pushuserdata(L, L1); | 243 | lua_pushuserdata(L, L1); |
| 244 | } | 244 | } |
| 245 | else if EQ("closestate") { | 245 | else if EQ("closestate") { |
| 246 | lua_close(lua_getuserdata(L, reg[getreg(L, &pc)])); | 246 | lua_close((lua_State *)lua_getuserdata(L, reg[getreg(L, &pc)])); |
| 247 | } | 247 | } |
| 248 | else if EQ("doremote") { | 248 | else if EQ("doremote") { |
| 249 | lua_Object ol1 = reg[getreg(L, &pc)]; | 249 | lua_Object ol1 = reg[getreg(L, &pc)]; |
| @@ -253,7 +253,7 @@ static void testC (lua_State *L) { | |||
| 253 | int i; | 253 | int i; |
| 254 | if (!lua_isuserdata(L, ol1) || !lua_isstring(L, str)) | 254 | if (!lua_isuserdata(L, ol1) || !lua_isstring(L, str)) |
| 255 | lua_error(L, "bad arguments for `doremote'"); | 255 | lua_error(L, "bad arguments for `doremote'"); |
| 256 | L1 = lua_getuserdata(L, ol1); | 256 | L1 = (lua_State *)lua_getuserdata(L, ol1); |
| 257 | lua_dostring(L1, lua_getstring(L, str)); | 257 | lua_dostring(L1, lua_getstring(L, str)); |
| 258 | i = 1; | 258 | i = 1; |
| 259 | while ((temp = lua_getresult(L1, i++)) != LUA_NOOBJECT) | 259 | while ((temp = lua_getresult(L1, i++)) != LUA_NOOBJECT) |
