diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-17 18:48:58 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-17 18:48:58 -0200 |
commit | 502343b40230dfb00efc37bdbaa5c5576f3a5aa5 (patch) | |
tree | b75f9e296ad3229a607fb2b7152dd9efc3706ef6 /lstate.h | |
parent | 82d09fbf0dbd5aee890f033b25b09dc48ce58a48 (diff) | |
download | lua-502343b40230dfb00efc37bdbaa5c5576f3a5aa5.tar.gz lua-502343b40230dfb00efc37bdbaa5c5576f3a5aa5.tar.bz2 lua-502343b40230dfb00efc37bdbaa5c5576f3a5aa5.zip |
new scheme for buffers, centralized in auxlib.
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.4 1997/11/27 15:59:25 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.5 1997/11/28 16:56:05 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -65,8 +65,10 @@ typedef struct LState { | |||
65 | int refSize; /* size of refArray */ | 65 | int refSize; /* size of refArray */ |
66 | unsigned long GCthreshold; | 66 | unsigned long GCthreshold; |
67 | unsigned long nblocks; /* number of 'blocks' currently allocated */ | 67 | unsigned long nblocks; /* number of 'blocks' currently allocated */ |
68 | char *Mbuffer; /* global buffer, used by luaM_buffer */ | 68 | char *Mbuffer; /* global buffer */ |
69 | unsigned long Mbuffsize; /* size of Mbuffer */ | 69 | char *Mbuffbase; /* current first position of Mbuffer */ |
70 | int Mbuffsize; /* size of Mbuffer */ | ||
71 | int Mbuffnext; /* next position to fill in Mbuffer */ | ||
70 | } LState; | 72 | } LState; |
71 | 73 | ||
72 | 74 | ||