new macros 'LUAI_DDEC'/'LUAI_DDEF' to better control declarations and

definitions of non-static variables
This commit is contained in:
Roberto Ierusalimschy
2009-11-19 17:06:52 -02:00
parent b4c1824824
commit 062e809e54
10 changed files with 31 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltests.h,v 2.24 2008/08/05 19:24:46 roberto Exp roberto $
** $Id: ltests.h,v 2.25 2009/04/17 22:00:01 roberto Exp roberto $
** Internal Header for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -32,13 +32,13 @@ typedef struct Memcontrol {
unsigned long memlimit;
} Memcontrol;
LUAI_DATA Memcontrol l_memcontrol;
Memcontrol l_memcontrol;
/*
** generic variable for debug tricks
*/
LUAI_DATA void *l_Trick;
void *l_Trick;
void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize);