Bläddra i källkod

some functions from test module must be exported

Roberto Ierusalimschy 10 år sedan
förälder
incheckning
6df197ec15
1 ändrade filer med 5 tillägg och 4 borttagningar
  1. 5 4
      ltests.h

+ 5 - 4
ltests.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: ltests.h,v 2.40 2014/10/01 11:54:56 roberto Exp roberto $
+** $Id: ltests.h,v 2.41 2014/11/24 14:56:56 roberto Exp roberto $
 ** Internal Header for Debugging of the Lua Implementation
 ** Internal Header for Debugging of the Lua Implementation
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -46,7 +46,7 @@ typedef struct Memcontrol {
   unsigned long objcount[LUA_NUMTAGS];
   unsigned long objcount[LUA_NUMTAGS];
 } Memcontrol;
 } Memcontrol;
 
 
-extern Memcontrol l_memcontrol;
+LUA_API Memcontrol l_memcontrol;
 
 
 
 
 /*
 /*
@@ -81,9 +81,10 @@ struct L_EXTRA { int lock; int *plock; };
 
 
 
 
 
 
-int luaB_opentests (lua_State *L);
+LUA_API int luaB_opentests (lua_State *L);
 
 
-void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize);
+LUA_API void *debug_realloc (void *ud, void *block,
+                             size_t osize, size_t nsize);
 
 
 #if defined(lua_c)
 #if defined(lua_c)
 #define luaL_newstate()		lua_newstate(debug_realloc, &l_memcontrol)
 #define luaL_newstate()		lua_newstate(debug_realloc, &l_memcontrol)