diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-06-21 17:05:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-06-21 17:05:29 -0300 |
commit | 0c49857c1ab08a5adfe1e21e5370e8aa132e4da1 (patch) | |
tree | 293301c3531f061c3a8bf7b7da898309dd3af21e /lauxlib.h | |
parent | 6b41e84da577b2d31cc659255b036bd0c2d6483f (diff) | |
download | lua-0c49857c1ab08a5adfe1e21e5370e8aa132e4da1.tar.gz lua-0c49857c1ab08a5adfe1e21e5370e8aa132e4da1.tar.bz2 lua-0c49857c1ab08a5adfe1e21e5370e8aa132e4da1.zip |
new scheme to search paths
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.65 2004/05/31 19:27:14 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.66 2004/06/02 17:37:03 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,6 +25,8 @@ typedef struct luaL_reg { | |||
25 | } luaL_reg; | 25 | } luaL_reg; |
26 | 26 | ||
27 | 27 | ||
28 | typedef int (*luaL_Loader)(void *data, const char *name); | ||
29 | |||
28 | LUALIB_API void luaL_openlib (lua_State *L, const char *libname, | 30 | LUALIB_API void luaL_openlib (lua_State *L, const char *libname, |
29 | const luaL_reg *l, int nup); | 31 | const luaL_reg *l, int nup); |
30 | LUALIB_API int luaL_getmetafield (lua_State *L, int obj, const char *e); | 32 | LUALIB_API int luaL_getmetafield (lua_State *L, int obj, const char *e); |
@@ -54,6 +56,9 @@ LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...); | |||
54 | 56 | ||
55 | 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[]); |
56 | 58 | ||
59 | LUALIB_API int luaL_searchpath (lua_State *L, const char *name, | ||
60 | const char *path, luaL_Loader f, void *data); | ||
61 | |||
57 | LUALIB_API int luaL_ref (lua_State *L, int t); | 62 | LUALIB_API int luaL_ref (lua_State *L, int t); |
58 | 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); |
59 | 64 | ||