aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-20 15:15:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-20 15:15:33 -0300
commit099442c41f2cec6122690e6c8f2e11327613e6f6 (patch)
tree73599b274ea4a9b96906ff8160eeb4a524702a8e /ldebug.c
parent27600fe87a6fafdfd4ddddeb390591fe749b480f (diff)
downloadlua-099442c41f2cec6122690e6c8f2e11327613e6f6.tar.gz
lua-099442c41f2cec6122690e6c8f2e11327613e6f6.tar.bz2
lua-099442c41f2cec6122690e6c8f2e11327613e6f6.zip
better separation between basic types
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ldebug.c b/ldebug.c
index f27fa362..f99dfd75 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.63 2001/02/12 19:54:28 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.64 2001/02/16 17:58:27 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*/
@@ -347,7 +347,7 @@ static int precheck (const Proto *pt) {
347 347
348#define checkjump(pt,sl,top,pc) if (!checkjump_aux(pt,sl,top,pc)) return 0; 348#define checkjump(pt,sl,top,pc) if (!checkjump_aux(pt,sl,top,pc)) return 0;
349 349
350static int checkjump_aux (const Proto *pt, unsigned char *sl, int top, int pc) { 350static int checkjump_aux (const Proto *pt, lu_byte *sl, int top, int pc) {
351 check(0 <= pc && pc < pt->sizecode); 351 check(0 <= pc && pc < pt->sizecode);
352 if (sl == NULL) return 1; /* not full checking */ 352 if (sl == NULL) return 1; /* not full checking */
353 if (sl[pc] == SL_EMPTY) 353 if (sl[pc] == SL_EMPTY)
@@ -361,12 +361,12 @@ static int checkjump_aux (const Proto *pt, unsigned char *sl, int top, int pc) {
361static Instruction luaG_symbexec (lua_State *L, const Proto *pt, 361static Instruction luaG_symbexec (lua_State *L, const Proto *pt,
362 int lastpc, int stackpos) { 362 int lastpc, int stackpos) {
363 int stack[MAXSTACK]; /* stores last instruction that changed a stack entry */ 363 int stack[MAXSTACK]; /* stores last instruction that changed a stack entry */
364 unsigned char *sl = NULL; 364 lu_byte *sl = NULL;
365 int top; 365 int top;
366 int pc; 366 int pc;
367 if (stackpos < 0) { /* full check? */ 367 if (stackpos < 0) { /* full check? */
368 int i; 368 int i;
369 sl = (unsigned char *)luaO_openspace(L, pt->sizecode); 369 sl = (lu_byte *)luaO_openspace(L, pt->sizecode);
370 for (i=0; i<pt->sizecode; i++) /* initialize stack-level array */ 370 for (i=0; i<pt->sizecode; i++) /* initialize stack-level array */
371 sl[i] = SL_EMPTY; 371 sl[i] = SL_EMPTY;
372 check(precheck(pt)); 372 check(precheck(pt));