From 502343b40230dfb00efc37bdbaa5c5576f3a5aa5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 17 Dec 1997 18:48:58 -0200 Subject: new scheme for buffers, centralized in auxlib. --- lstate.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 9388b444..3da2e2ef 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 1.4 1997/11/27 15:59:25 roberto Exp roberto $ +** $Id: lstate.h,v 1.5 1997/11/28 16:56:05 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -65,8 +65,10 @@ typedef struct LState { int refSize; /* size of refArray */ unsigned long GCthreshold; unsigned long nblocks; /* number of 'blocks' currently allocated */ - char *Mbuffer; /* global buffer, used by luaM_buffer */ - unsigned long Mbuffsize; /* size of Mbuffer */ + char *Mbuffer; /* global buffer */ + char *Mbuffbase; /* current first position of Mbuffer */ + int Mbuffsize; /* size of Mbuffer */ + int Mbuffnext; /* next position to fill in Mbuffer */ } LState; -- cgit v1.2.3-55-g6feb