diff options
-rw-r--r-- | ldebug.c | 4 | ||||
-rw-r--r-- | ldebug.h | 4 | ||||
-rw-r--r-- | liolib.c | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.76 2001/04/06 18:25:00 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.77 2001/06/05 18:17:01 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -580,7 +580,7 @@ void luaG_ordererror (lua_State *L, const TObject *p1, const TObject *p2) { | |||
580 | ((sa)<<OpModesetA) | ((k)<<OpModeK) | (m)) | 580 | ((sa)<<OpModesetA) | ((k)<<OpModeK) | (m)) |
581 | 581 | ||
582 | 582 | ||
583 | const unsigned char luaG_opmodes[] = { | 583 | const lu_byte luaG_opmodes[] = { |
584 | /* T A B C sA K mode opcode */ | 584 | /* T A B C sA K mode opcode */ |
585 | opmode(0,1,1,0, 1,0,iABC), /* OP_MOVE */ | 585 | opmode(0,1,1,0, 1,0,iABC), /* OP_MOVE */ |
586 | opmode(0,1,0,0, 1,1,iABc), /* OP_LOADK */ | 586 | opmode(0,1,0,0, 1,1,iABc), /* OP_LOADK */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.h,v 1.11 2001/02/23 17:17:25 roberto Exp roberto $ | 2 | ** $Id: ldebug.h,v 1.12 2001/06/05 18:17:01 roberto Exp roberto $ |
3 | ** Auxiliary functions from Debug Interface module | 3 | ** Auxiliary functions from Debug Interface module |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -26,7 +26,7 @@ enum OpModeMask { | |||
26 | OpModeT /* operator is a test */ | 26 | OpModeT /* operator is a test */ |
27 | }; | 27 | }; |
28 | 28 | ||
29 | extern const unsigned char luaG_opmodes[]; | 29 | extern const lu_byte luaG_opmodes[]; |
30 | 30 | ||
31 | #define getOpMode(m) ((enum OpMode)(luaG_opmodes[m] & 3)) | 31 | #define getOpMode(m) ((enum OpMode)(luaG_opmodes[m] & 3)) |
32 | #define testOpMode(m, b) (luaG_opmodes[m] & (1 << (b))) | 32 | #define testOpMode(m, b) (luaG_opmodes[m] & (1 << (b))) |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.112 2001/04/23 16:35:45 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.113 2001/06/06 18:00:19 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -58,7 +58,7 @@ static const l_char *const basicfiles[] = {l_s("_STDIN"), l_s("_STDOUT")}; | |||
58 | 58 | ||
59 | static int pushresult (lua_State *L, int i) { | 59 | static int pushresult (lua_State *L, int i) { |
60 | if (i) { | 60 | if (i) { |
61 | lua_newuserdatabox(L, NULL); | 61 | lua_pushnumber(L, 1); |
62 | return 1; | 62 | return 1; |
63 | } | 63 | } |
64 | else { | 64 | else { |