aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lstate.h b/lstate.h
index eb0068fe..ebf4e4af 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.53 2010/02/09 11:55:37 roberto Exp roberto $ 2** $Id: lstate.h,v 2.54 2010/03/13 15:55:42 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*/
@@ -58,6 +58,7 @@ struct lua_longjmp; /* defined in ldo.c */
58#define KGC_NORMAL 0 58#define KGC_NORMAL 0
59#define KGC_FORCED 1 /* gc was forced by the program */ 59#define KGC_FORCED 1 /* gc was forced by the program */
60#define KGC_EMERGENCY 2 /* gc was forced by an allocation failure */ 60#define KGC_EMERGENCY 2 /* gc was forced by an allocation failure */
61#define KGC_GEN 3 /* generational collection */
61 62
62 63
63typedef struct stringtable { 64typedef struct stringtable {
@@ -142,9 +143,9 @@ typedef struct global_State {
142 struct lua_State *mainthread; 143 struct lua_State *mainthread;
143 UpVal uvhead; /* head of double-linked list of all open upvalues */ 144 UpVal uvhead; /* head of double-linked list of all open upvalues */
144 const lua_Number *version; /* pointer to version number */ 145 const lua_Number *version; /* pointer to version number */
145 struct Table *mt[NUM_TAGS]; /* metatables for basic types */
146 TString *tmname[TM_N]; /* array with tag-method names */
147 TString *envn; /* environment variable name */ 146 TString *envn; /* environment variable name */
147 TString *tmname[TM_N]; /* array with tag-method names */
148 struct Table *mt[NUM_TAGS]; /* metatables for basic types */
148} global_State; 149} global_State;
149 150
150 151