diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-26 14:36:32 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-26 14:36:32 -0300 |
commit | 3390f9a35ac66d01c7bb0114083a4cb384783ff5 (patch) | |
tree | b1726d230beac862c99b0b1f2361484b2cf7ad3b /lauxlib.h | |
parent | 9273fbd131eb0be7d4e7ca4f44345b41f8a557cf (diff) | |
download | lua-3390f9a35ac66d01c7bb0114083a4cb384783ff5.tar.gz lua-3390f9a35ac66d01c7bb0114083a4cb384783ff5.tar.bz2 lua-3390f9a35ac66d01c7bb0114083a4cb384783ff5.zip |
detail
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.82 2005/08/18 20:36:26 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.83 2005/08/26 17:32:05 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 | */ |
@@ -29,17 +29,17 @@ | |||
29 | #define LUA_ERRFILE (LUA_ERRERR+1) | 29 | #define LUA_ERRFILE (LUA_ERRERR+1) |
30 | 30 | ||
31 | 31 | ||
32 | typedef struct luaL_reg { | 32 | typedef struct luaL_Reg { |
33 | const char *name; | 33 | const char *name; |
34 | lua_CFunction func; | 34 | lua_CFunction func; |
35 | } luaL_reg; | 35 | } luaL_Reg; |
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | LUALIB_API void (luaI_openlib) (lua_State *L, const char *libname, | 39 | LUALIB_API void (luaI_openlib) (lua_State *L, const char *libname, |
40 | const luaL_reg *l, int nup); | 40 | const luaL_Reg *l, int nup); |
41 | LUALIB_API void (luaL_register) (lua_State *L, const char *libname, | 41 | LUALIB_API void (luaL_register) (lua_State *L, const char *libname, |
42 | const luaL_reg *l); | 42 | const luaL_Reg *l); |
43 | LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); | 43 | LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); |
44 | LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); | 44 | LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); |
45 | LUALIB_API int (luaL_typerror) (lua_State *L, int narg, const char *tname); | 45 | LUALIB_API int (luaL_typerror) (lua_State *L, int narg, const char *tname); |
@@ -164,6 +164,8 @@ LUALIB_API void (luaL_pushresult) (luaL_Buffer *B); | |||
164 | #define lua_getref(L,ref) lua_rawgeti(L, LUA_REGISTRYINDEX, (ref)) | 164 | #define lua_getref(L,ref) lua_rawgeti(L, LUA_REGISTRYINDEX, (ref)) |
165 | 165 | ||
166 | 166 | ||
167 | #define luaL_reg luaL_Reg | ||
168 | |||
167 | #endif | 169 | #endif |
168 | 170 | ||
169 | 171 | ||