diff options
-rw-r--r-- | llex.h | 4 | ||||
-rw-r--r-- | lobject.h | 4 | ||||
-rw-r--r-- | lopcodes.h | 6 | ||||
-rw-r--r-- | ltable.h | 4 | ||||
-rw-r--r-- | ltests.h | 8 | ||||
-rw-r--r-- | ltm.h | 4 |
6 files changed, 15 insertions, 15 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.h,v 1.53 2005/04/07 13:09:07 roberto Exp roberto $ | 2 | ** $Id: llex.h,v 1.54 2005/04/25 19:24:10 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -37,7 +37,7 @@ enum RESERVED { | |||
37 | 37 | ||
38 | 38 | ||
39 | /* array with token `names' */ | 39 | /* array with token `names' */ |
40 | extern const char *const luaX_tokens []; | 40 | LUAI_DATA const char *const luaX_tokens []; |
41 | 41 | ||
42 | 42 | ||
43 | typedef union { | 43 | typedef union { |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.13 2005/05/05 20:47:02 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.14 2005/05/31 14:25:18 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -357,7 +357,7 @@ typedef struct Table { | |||
357 | 357 | ||
358 | 358 | ||
359 | 359 | ||
360 | extern const TValue luaO_nilobject; | 360 | LUAI_DATA const TValue luaO_nilobject; |
361 | 361 | ||
362 | #define ceillog2(x) (luaO_log2((x)-1) + 1) | 362 | #define ceillog2(x) (luaO_log2((x)-1) + 1) |
363 | 363 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.119 2005/05/04 20:42:28 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.120 2005/05/20 15:53:42 roberto Exp roberto $ |
3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -248,7 +248,7 @@ enum OpArgMask { | |||
248 | OpArgK /* argument is a constant or register/constant */ | 248 | OpArgK /* argument is a constant or register/constant */ |
249 | }; | 249 | }; |
250 | 250 | ||
251 | extern const lu_byte luaP_opmodes[NUM_OPCODES]; | 251 | LUAI_DATA const lu_byte luaP_opmodes[NUM_OPCODES]; |
252 | 252 | ||
253 | #define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 3)) | 253 | #define getOpMode(m) (cast(enum OpMode, luaP_opmodes[m] & 3)) |
254 | #define getBMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3)) | 254 | #define getBMode(m) (cast(enum OpArgMask, (luaP_opmodes[m] >> 4) & 3)) |
@@ -257,7 +257,7 @@ extern const lu_byte luaP_opmodes[NUM_OPCODES]; | |||
257 | #define testTMode(m) (luaP_opmodes[m] & (1 << 7)) | 257 | #define testTMode(m) (luaP_opmodes[m] & (1 << 7)) |
258 | 258 | ||
259 | 259 | ||
260 | extern const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ | 260 | LUAI_DATA const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */ |
261 | 261 | ||
262 | 262 | ||
263 | /* number of list items to accumulate before a SETLIST instruction */ | 263 | /* number of list items to accumulate before a SETLIST instruction */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.h,v 2.6 2005/03/16 16:58:41 roberto Exp roberto $ | 2 | ** $Id: ltable.h,v 2.7 2005/04/25 19:24:10 roberto Exp roberto $ |
3 | ** Lua tables (hash) | 3 | ** Lua tables (hash) |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -18,7 +18,7 @@ | |||
18 | #define key2tval(n) (cast(const TValue *, gkey(n))) | 18 | #define key2tval(n) (cast(const TValue *, gkey(n))) |
19 | 19 | ||
20 | 20 | ||
21 | extern const Node luaH_dummynode; | 21 | LUAI_DATA const Node luaH_dummynode; |
22 | 22 | ||
23 | LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); | 23 | LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); |
24 | LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); | 24 | LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 2.13 2005/04/13 17:24:20 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 2.14 2005/05/03 19:01:17 roberto Exp roberto $ |
3 | ** Internal Header for Debugging of the Lua Implementation | 3 | ** Internal Header for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -31,13 +31,13 @@ typedef struct Memcontrol { | |||
31 | unsigned long memlimit; | 31 | unsigned long memlimit; |
32 | } Memcontrol; | 32 | } Memcontrol; |
33 | 33 | ||
34 | extern Memcontrol memcontrol; | 34 | LUAI_DATA Memcontrol memcontrol; |
35 | 35 | ||
36 | 36 | ||
37 | /* | 37 | /* |
38 | ** generic variable for debug tricks | 38 | ** generic variable for debug tricks |
39 | */ | 39 | */ |
40 | extern int Trick; | 40 | LUAI_DATA int Trick; |
41 | 41 | ||
42 | 42 | ||
43 | void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); | 43 | void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); |
@@ -59,7 +59,7 @@ int lua_checkpc (lua_State *L, pCallInfo ci); | |||
59 | #undef lua_unlock | 59 | #undef lua_unlock |
60 | #undef LUAI_EXTRASPACE | 60 | #undef LUAI_EXTRASPACE |
61 | 61 | ||
62 | extern int islocked; | 62 | LUAI_DATA int islocked; |
63 | #define LUAI_EXTRASPACE sizeof(double) | 63 | #define LUAI_EXTRASPACE sizeof(double) |
64 | #define getlock(l) (*(cast(int **, l) - 1)) | 64 | #define getlock(l) (*(cast(int **, l) - 1)) |
65 | #define luai_userstateopen(l) getlock(l) = &islocked; | 65 | #define luai_userstateopen(l) getlock(l) = &islocked; |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltm.h,v 2.4 2005/05/05 15:34:03 roberto Exp roberto $ | 2 | ** $Id: ltm.h,v 2.5 2005/05/20 15:53:42 roberto Exp roberto $ |
3 | ** Tag methods | 3 | ** Tag methods |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -43,7 +43,7 @@ typedef enum { | |||
43 | 43 | ||
44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) | 44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) |
45 | 45 | ||
46 | extern const char *const luaT_typenames[]; | 46 | LUAI_DATA const char *const luaT_typenames[]; |
47 | 47 | ||
48 | 48 | ||
49 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); | 49 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); |