diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-09-06 14:19:51 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-09-06 14:19:51 -0300 |
| commit | ce67a9be315398efd38c0c334cdd8244fcab57a4 (patch) | |
| tree | aa90be0ed3a17a64b5d3ecb386be2115d7eaf1d7 | |
| parent | 506c89cef8b197440b07060811379c9cb4413e68 (diff) | |
| download | lua-ce67a9be315398efd38c0c334cdd8244fcab57a4.tar.gz lua-ce67a9be315398efd38c0c334cdd8244fcab57a4.tar.bz2 lua-ce67a9be315398efd38c0c334cdd8244fcab57a4.zip | |
avoid exporting undefined functions
| -rw-r--r-- | lauxlib.h | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.h,v 1.83 2005/08/26 17:32:05 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.84 2005/08/26 17:36:32 roberto Exp roberto $ |
| 3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -15,7 +15,10 @@ | |||
| 15 | #include "lua.h" | 15 | #include "lua.h" |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | #if !defined(LUA_COMPAT_GETN) | 18 | #if defined(LUA_COMPAT_GETN) |
| 19 | LUALIB_API int (luaL_getn) (lua_State *L, int t); | ||
| 20 | LUALIB_API void (luaL_setn) (lua_State *L, int t, int n); | ||
| 21 | #else | ||
| 19 | #define luaL_getn(L,i) ((int)lua_objlen(L, i)) | 22 | #define luaL_getn(L,i) ((int)lua_objlen(L, i)) |
| 20 | #define luaL_setn(L,i,j) ((void)0) /* no op! */ | 23 | #define luaL_setn(L,i,j) ((void)0) /* no op! */ |
| 21 | #endif | 24 | #endif |
| @@ -71,9 +74,6 @@ LUALIB_API int (luaL_checkoption) (lua_State *L, int narg, const char *def, | |||
| 71 | LUALIB_API int (luaL_ref) (lua_State *L, int t); | 74 | LUALIB_API int (luaL_ref) (lua_State *L, int t); |
| 72 | LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref); | 75 | LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref); |
| 73 | 76 | ||
| 74 | LUALIB_API int (luaL_getn) (lua_State *L, int t); | ||
| 75 | LUALIB_API void (luaL_setn) (lua_State *L, int t, int n); | ||
| 76 | |||
| 77 | LUALIB_API int (luaL_loadfile) (lua_State *L, const char *filename); | 77 | LUALIB_API int (luaL_loadfile) (lua_State *L, const char *filename); |
| 78 | LUALIB_API int (luaL_loadbuffer) (lua_State *L, const char *buff, size_t sz, | 78 | LUALIB_API int (luaL_loadbuffer) (lua_State *L, const char *buff, size_t sz, |
| 79 | const char *name); | 79 | const char *name); |
