aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-06-06 10:30:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-06-06 10:30:25 -0300
commitd987cf1f812b131788029d6de0c81ed64020e522 (patch)
treed67230d0bd44584fc1616349ca14fb6ebfc94418 /ltests.h
parenteca9fa02d2887d06cee5e2f742f7e3031ac76a51 (diff)
downloadlua-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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ltests.h b/ltests.h
index ff843092..f609ad69 100644
--- a/ltests.h
+++ b/ltests.h
@@ -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
34extern Memcontrol memcontrol; 34LUAI_DATA Memcontrol memcontrol;
35 35
36 36
37/* 37/*
38** generic variable for debug tricks 38** generic variable for debug tricks
39*/ 39*/
40extern int Trick; 40LUAI_DATA int Trick;
41 41
42 42
43void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); 43void *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
62extern int islocked; 62LUAI_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;