From 6048c4f74d7d63d6c2f5a53cd8e4ee01f6702be9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 7 Mar 2001 15:09:25 -0300 Subject: better way to link callinfo's and stack --- lstate.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 21348211..69fd02ad 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.53 2001/02/23 20:30:01 roberto Exp roberto $ +** $Id: lstate.h,v 1.54 2001/03/02 17:27:50 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -31,8 +31,6 @@ #define LUA_USERSTATE #endif -typedef TObject *StkId; /* index to stack elements */ - /* ** marks for Reference array @@ -90,18 +88,19 @@ typedef struct global_State { struct lua_State { LUA_USERSTATE StkId top; /* first free slot in the stack */ - StkId stack; /* stack base */ + CallInfo *ci; /* call info for current function */ StkId stack_last; /* last free slot in the stack */ - int stacksize; - StkId Cbase; /* base for current C function */ Hash *gt; /* table for globals */ global_State *G; + StkId stack; /* stack base */ + int stacksize; lua_Hook callhook; lua_Hook linehook; int allowhooks; struct lua_longjmp *errorJmp; /* current error recover point */ lua_State *next; /* circular double linked list of states */ lua_State *previous; + CallInfo basefunc; }; -- cgit v1.2.3-55-g6feb