From 6ac047afc46cbee935587b5734ec37d2e667a598 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 9 Jan 1998 12:57:43 -0200 Subject: details --- lobject.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 366b1802..6fc61916 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.12 1997/12/23 19:24:19 roberto Exp roberto $ +** $Id: lobject.h,v 1.13 1997/12/26 18:38:16 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -96,8 +96,8 @@ typedef struct TaggedString { union { TObject globalval; struct { - void *v; /* if this is a userdata, here is its value */ int tag; + void *v; /* if this is a userdata, here is its value */ } d; } u; char str[1]; /* \0 byte already reserved */ @@ -111,11 +111,11 @@ typedef struct TaggedString { */ typedef struct TProtoFunc { GCnode head; + struct TObject *consts; + int nconsts; Byte *code; /* ends with opcode ENDCODE */ int lineDefined; TaggedString *fileName; - struct TObject *consts; - int nconsts; struct LocVar *locvars; /* ends with line = -1 */ } TProtoFunc; @@ -166,11 +166,6 @@ typedef struct Hash { } Hash; -/* -** a gross estimation of number of memory "blocks" allocated -** (a block is *roughly* 32 bytes) -*/ - extern char *luaO_typenames[]; extern TObject luaO_nilobject; -- cgit v1.2.3-55-g6feb