From 413fc7334bf8ceaea71417d73edef15c99d3a793 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 29 Nov 2001 18:22:22 -0200 Subject: new implementation for lua upvalues (sugested by E.T.): simpler and solves a bug for multi-stacks --- lstate.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 9f7c7e5c..981e28fe 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.63 2001/10/31 19:58:11 roberto Exp $ +** $Id: lstate.h,v 1.64 2001/11/06 21:40:51 roberto Exp $ ** Global State ** See Copyright Notice in lua.h */ @@ -65,10 +65,10 @@ typedef struct global_State { lu_mem GCthreshold; lu_mem nblocks; /* number of `bytes' currently allocated */ Proto *rootproto; /* list of all prototypes */ - Closure *rootcl; /* list of all C closures and closed Lua closures */ + Closure *rootcl; /* list of all closures */ Table *roottable; /* list of all tables */ Udata *rootudata; /* list of all userdata */ - TObject *rootupval; /* list of all up values */ + UpVal *rootupval; /* list of closed up values */ } global_State; @@ -88,7 +88,7 @@ struct lua_State { lua_Hook linehook; int allowhooks; struct lua_longjmp *errorJmp; /* current error recover point */ - Closure *opencl; /* list of closures still pointing to this stack */ + UpVal *openupval; /* list of open upvalues in this stack */ lua_State *next; /* circular double linked list of states */ lua_State *previous; CallInfo basefunc; -- cgit v1.2.3-55-g6feb