From 0183b8030c80f57b87874ff7867ccdb172d9d3dc Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 28 Dec 2000 10:55:41 -0200 Subject: `free' gets size of the block: complete control over memory use --- lobject.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 916cc4d1..903833f0 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.83 2000/11/24 17:39:56 roberto Exp roberto $ +** $Id: lobject.h,v 1.84 2000/12/04 18:33:40 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -102,13 +102,13 @@ typedef struct TString { */ typedef struct Proto { lua_Number *knum; /* numbers used by the function */ - int nknum; /* size of `knum' */ + int sizeknum; /* size of `knum' */ struct TString **kstr; /* strings used by the function */ - int nkstr; /* size of `kstr' */ + int sizekstr; /* size of `kstr' */ struct Proto **kproto; /* functions defined inside the function */ - int nkproto; /* size of `kproto' */ + int sizekproto; /* size of `kproto' */ Instruction *code; - int ncode; /* size of `code'; when 0 means an incomplete `Proto' */ + int sizecode; short numparams; short is_vararg; short maxstacksize; @@ -116,9 +116,9 @@ typedef struct Proto { struct Proto *next; /* debug information */ int *lineinfo; /* map from opcodes to source lines */ - int nlineinfo; /* size of `lineinfo' */ - int nlocvars; + int sizelineinfo; /* size of `lineinfo' */ struct LocVar *locvars; /* information about local variables */ + int sizelocvars; int lineDefined; TString *source; } Proto; -- cgit v1.2.3-55-g6feb