From 45ccb0e881064492a3f422b15b50dad71eed36fa Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 16 Oct 1997 08:59:34 -0200 Subject: "nupvalues" is kept in Closure, not in prototype (as a preparation for C closures...) --- lobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index fcfb7d3b..132108d3 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.2 1997/09/26 15:02:26 roberto Exp roberto $ +** $Id: lobject.h,v 1.3 1997/09/26 16:46:20 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -110,7 +110,6 @@ typedef struct TProtoFunc { struct TObject *consts; int nconsts; struct LocVar *locvars; /* ends with line = -1 */ - int nupvalues; } TProtoFunc; typedef struct LocVar { @@ -138,6 +137,7 @@ typedef struct LocVar { */ typedef struct Closure { GCnode head; + int nelems; /* not included the first one (always the prototype) */ TObject consts[1]; /* at least one for prototype */ } Closure; -- cgit v1.2.3-55-g6feb