diff options
Diffstat (limited to 'lualib.h')
-rw-r--r-- | lualib.h | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lualib.h,v 1.24 2002/06/18 17:42:52 roberto Exp roberto $ | 2 | ** $Id: lualib.h,v 1.25 2002/07/09 18:49:13 roberto Exp roberto $ |
3 | ** Lua standard libraries | 3 | ** Lua standard libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -17,23 +17,23 @@ | |||
17 | 17 | ||
18 | 18 | ||
19 | #define LUA_COLIBNAME "coroutine" | 19 | #define LUA_COLIBNAME "coroutine" |
20 | LUALIB_API int lua_baselibopen (lua_State *L); | 20 | LUALIB_API int luaopen_base (lua_State *L); |
21 | 21 | ||
22 | #define LUA_TABLIBNAME "table" | 22 | #define LUA_TABLIBNAME "table" |
23 | LUALIB_API int lua_tablibopen (lua_State *L); | 23 | LUALIB_API int luaopen_table (lua_State *L); |
24 | 24 | ||
25 | #define LUA_IOLIBNAME "io" | 25 | #define LUA_IOLIBNAME "io" |
26 | #define LUA_OSLIBNAME "os" | 26 | #define LUA_OSLIBNAME "os" |
27 | LUALIB_API int lua_iolibopen (lua_State *L); | 27 | LUALIB_API int luaopen_io (lua_State *L); |
28 | 28 | ||
29 | #define LUA_STRLIBNAME "string" | 29 | #define LUA_STRLIBNAME "string" |
30 | LUALIB_API int lua_strlibopen (lua_State *L); | 30 | LUALIB_API int luaopen_string (lua_State *L); |
31 | 31 | ||
32 | #define LUA_MATHLIBNAME "math" | 32 | #define LUA_MATHLIBNAME "math" |
33 | LUALIB_API int lua_mathlibopen (lua_State *L); | 33 | LUALIB_API int luaopen_math (lua_State *L); |
34 | 34 | ||
35 | #define LUA_DBLIBNAME "debug" | 35 | #define LUA_DBLIBNAME "debug" |
36 | LUALIB_API int lua_dblibopen (lua_State *L); | 36 | LUALIB_API int luaopen_debug (lua_State *L); |
37 | 37 | ||
38 | 38 | ||
39 | /* to help testing the libraries */ | 39 | /* to help testing the libraries */ |
@@ -41,4 +41,13 @@ LUALIB_API int lua_dblibopen (lua_State *L); | |||
41 | #define lua_assert(c) /* empty */ | 41 | #define lua_assert(c) /* empty */ |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | |||
45 | /* compatibility code */ | ||
46 | #define lua_baselibopen luaopen_base | ||
47 | #define lua_tablibopen luaopen_table | ||
48 | #define lua_iolibopen luaopen_io | ||
49 | #define lua_strlibopen luaopen_string | ||
50 | #define lua_mathlibopen luaopen_math | ||
51 | #define lua_dblibopen luaopen_debug | ||
52 | |||
44 | #endif | 53 | #endif |