diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-21 17:00:46 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-21 17:00:46 -0200 |
commit | accd7bc25355be4350db6d117515c672121a67f2 (patch) | |
tree | e351b89ca86b67a3c60874c230626a13517524b8 /lstate.h | |
parent | 6153200bc25bd99f9d3d25d7caa486b03b6535d5 (diff) | |
download | lua-accd7bc25355be4350db6d117515c672121a67f2.tar.gz lua-accd7bc25355be4350db6d117515c672121a67f2.tar.bz2 lua-accd7bc25355be4350db6d117515c672121a67f2.zip |
small modifications (format, small optimizations, etc)
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: $ | 2 | ** $Id: lstate.h,v 1.1 1997/11/19 17:30:36 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 | */ |
@@ -18,9 +18,9 @@ | |||
18 | typedef int StkId; /* index to stack elements */ | 18 | typedef int StkId; /* index to stack elements */ |
19 | 19 | ||
20 | struct Stack { | 20 | struct Stack { |
21 | TObject *last; | ||
22 | TObject *stack; | ||
23 | TObject *top; | 21 | TObject *top; |
22 | TObject *stack; | ||
23 | TObject *last; | ||
24 | }; | 24 | }; |
25 | 25 | ||
26 | struct C_Lua_Stack { | 26 | struct C_Lua_Stack { |
@@ -45,14 +45,14 @@ struct ref { | |||
45 | 45 | ||
46 | 46 | ||
47 | typedef struct LState { | 47 | typedef struct LState { |
48 | struct C_Lua_Stack Cblocks[MAX_C_BLOCKS]; | ||
49 | int numCblocks; /* number of nested Cblocks */ | ||
50 | TObject *functofind; /* auxiliar */ | ||
51 | struct Stack stack; /* Lua stack */ | 48 | struct Stack stack; /* Lua stack */ |
52 | struct C_Lua_Stack Cstack; /* C2lua struct */ | 49 | struct C_Lua_Stack Cstack; /* C2lua struct */ |
53 | int stacklimit; /* limit for stack overflow */ | 50 | int stacklimit; /* limit for stack overflow */ |
54 | void *errorJmp; /* current error recover point */ | 51 | void *errorJmp; /* current error recover point */ |
55 | TObject errorim; /* error tag method */ | 52 | TObject errorim; /* error tag method */ |
53 | struct C_Lua_Stack Cblocks[MAX_C_BLOCKS]; | ||
54 | int numCblocks; /* number of nested Cblocks */ | ||
55 | TObject *functofind; /* auxiliar */ | ||
56 | GCnode rootproto; /* list of all prototypes */ | 56 | GCnode rootproto; /* list of all prototypes */ |
57 | GCnode rootcl; /* list of all closures */ | 57 | GCnode rootcl; /* list of all closures */ |
58 | GCnode roottable; /* list of all tables */ | 58 | GCnode roottable; /* list of all tables */ |