From 7a40cdbda0a171da223094208dd3c6e3eca13922 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 11 Feb 2003 08:46:24 -0200 Subject: different variables for number of upvalues and size of upvalue array (makes code clearer) --- lobject.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 6b00b4b6..90533240 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.155 2002/11/14 16:16:21 roberto Exp roberto $ +** $Id: lobject.h,v 1.156 2002/12/19 11:11:55 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -216,7 +216,7 @@ typedef struct Proto { struct LocVar *locvars; /* information about local variables */ TString **upvalues; /* upvalue names */ TString *source; - int nupvalues; /* (also size of `upvals') */ + int sizeupvalues; int sizek; /* size of `k' */ int sizecode; int sizelineinfo; @@ -224,6 +224,7 @@ typedef struct Proto { int sizelocvars; int lineDefined; GCObject *gclist; + lu_byte nups; /* number of upvalues */ lu_byte numparams; lu_byte is_vararg; lu_byte maxstacksize; -- cgit v1.2.3-55-g6feb