diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-06-06 10:30:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-06-06 10:30:25 -0300 |
commit | d987cf1f812b131788029d6de0c81ed64020e522 (patch) | |
tree | d67230d0bd44584fc1616349ca14fb6ebfc94418 /ltests.h | |
parent | eca9fa02d2887d06cee5e2f742f7e3031ac76a51 (diff) | |
download | lua-d987cf1f812b131788029d6de0c81ed64020e522.tar.gz lua-d987cf1f812b131788029d6de0c81ed64020e522.tar.bz2 lua-d987cf1f812b131788029d6de0c81ed64020e522.zip |
new mark LUAI_DATA for extern data
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |