diff options
| author | Lua Team <team@lua.org> | 2003-04-11 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2003-04-11 12:00:00 +0000 |
| commit | f0e4e22f5c119865eb5a8d3844a40df2d5980b3b (patch) | |
| tree | c4df063a747e9c99f8aba1678588a030993780a9 /include/lualib.h | |
| parent | 1981b7c90eb09e956e969cda5c473be4560af573 (diff) | |
| download | lua-github-5.0.tar.gz | |
Lua 5.05.0
Diffstat (limited to 'include/lualib.h')
| -rw-r--r-- | include/lualib.h | 44 |
1 files changed, 33 insertions, 11 deletions
diff --git a/include/lualib.h b/include/lualib.h index fe48cb10..e22c4c30 100644 --- a/include/lualib.h +++ b/include/lualib.h @@ -1,5 +1,5 @@ /* -** $Id: lualib.h,v 1.14 2000/10/27 16:15:53 roberto Exp $ +** $Id: lualib.h,v 1.28 2003/03/18 12:24:26 roberto Exp $ ** Lua standard libraries ** See Copyright Notice in lua.h */ @@ -12,23 +12,45 @@ #ifndef LUALIB_API -#define LUALIB_API extern +#define LUALIB_API LUA_API #endif -#define LUA_ALERT "_ALERT" +#define LUA_COLIBNAME "coroutine" +LUALIB_API int luaopen_base (lua_State *L); -LUALIB_API void lua_baselibopen (lua_State *L); -LUALIB_API void lua_iolibopen (lua_State *L); -LUALIB_API void lua_strlibopen (lua_State *L); -LUALIB_API void lua_mathlibopen (lua_State *L); -LUALIB_API void lua_dblibopen (lua_State *L); +#define LUA_TABLIBNAME "table" +LUALIB_API int luaopen_table (lua_State *L); +#define LUA_IOLIBNAME "io" +#define LUA_OSLIBNAME "os" +LUALIB_API int luaopen_io (lua_State *L); +#define LUA_STRLIBNAME "string" +LUALIB_API int luaopen_string (lua_State *L); -/* Auxiliary functions (private) */ +#define LUA_MATHLIBNAME "math" +LUALIB_API int luaopen_math (lua_State *L); -const char *luaI_classend (lua_State *L, const char *p); -int luaI_singlematch (int c, const char *p, const char *ep); +#define LUA_DBLIBNAME "debug" +LUALIB_API int luaopen_debug (lua_State *L); + + +LUALIB_API int luaopen_loadlib (lua_State *L); + + +/* to help testing the libraries */ +#ifndef lua_assert +#define lua_assert(c) /* empty */ +#endif + + +/* compatibility code */ +#define lua_baselibopen luaopen_base +#define lua_tablibopen luaopen_table +#define lua_iolibopen luaopen_io +#define lua_strlibopen luaopen_string +#define lua_mathlibopen luaopen_math +#define lua_dblibopen luaopen_debug #endif |
