diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-06-29 13:57:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-06-29 13:57:56 -0300 |
commit | 753625c3f377b013d00a8bd20f4492338e2d87b8 (patch) | |
tree | 71375a4499b90c171a1e050f0d085b89502431af /lauxlib.h | |
parent | 42b74ccf1d8c2bb181be6900b068a3a011e106a9 (diff) | |
download | lua-753625c3f377b013d00a8bd20f4492338e2d87b8.tar.gz lua-753625c3f377b013d00a8bd20f4492338e2d87b8.tar.bz2 lua-753625c3f377b013d00a8bd20f4492338e2d87b8.zip |
new interface for search-path function
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.66 2004/06/02 17:37:03 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.67 2004/06/21 20:05:29 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 | */ |
@@ -25,7 +25,7 @@ typedef struct luaL_reg { | |||
25 | } luaL_reg; | 25 | } luaL_reg; |
26 | 26 | ||
27 | 27 | ||
28 | typedef int (*luaL_Loader)(void *data, const char *name); | 28 | typedef int (*luaL_Loader)(lua_State *L, const char *name); |
29 | 29 | ||
30 | LUALIB_API void luaL_openlib (lua_State *L, const char *libname, | 30 | LUALIB_API void luaL_openlib (lua_State *L, const char *libname, |
31 | const luaL_reg *l, int nup); | 31 | const luaL_reg *l, int nup); |
@@ -56,8 +56,8 @@ LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...); | |||
56 | 56 | ||
57 | LUALIB_API int luaL_findstring (const char *st, const char *const lst[]); | 57 | LUALIB_API int luaL_findstring (const char *st, const char *const lst[]); |
58 | 58 | ||
59 | LUALIB_API int luaL_searchpath (lua_State *L, const char *name, | 59 | LUALIB_API const char *luaL_searchpath (lua_State *L, const char *name, |
60 | const char *path, luaL_Loader f, void *data); | 60 | const char *path); |
61 | 61 | ||
62 | LUALIB_API int luaL_ref (lua_State *L, int t); | 62 | LUALIB_API int luaL_ref (lua_State *L, int t); |
63 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref); | 63 | LUALIB_API void luaL_unref (lua_State *L, int t, int ref); |