aboutsummaryrefslogtreecommitdiff
path: root/lualib.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-11 09:24:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-11 09:24:34 -0300
commit034de1fe73c24dcb75658b4c9ab16dd012ba3057 (patch)
tree8f1c1fecd4321bfda68aee97b8bb54d59b22c935 /lualib.h
parent430d6db92827ae2797f435dd5019b5cd115859ef (diff)
downloadlua-034de1fe73c24dcb75658b4c9ab16dd012ba3057.tar.gz
lua-034de1fe73c24dcb75658b4c9ab16dd012ba3057.tar.bz2
lua-034de1fe73c24dcb75658b4c9ab16dd012ba3057.zip
new names for functions that open C libraries
Diffstat (limited to 'lualib.h')
-rw-r--r--lualib.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/lualib.h b/lualib.h
index 1bb25c00..d393b66d 100644
--- a/lualib.h
+++ b/lualib.h
@@ -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"
20LUALIB_API int lua_baselibopen (lua_State *L); 20LUALIB_API int luaopen_base (lua_State *L);
21 21
22#define LUA_TABLIBNAME "table" 22#define LUA_TABLIBNAME "table"
23LUALIB_API int lua_tablibopen (lua_State *L); 23LUALIB_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"
27LUALIB_API int lua_iolibopen (lua_State *L); 27LUALIB_API int luaopen_io (lua_State *L);
28 28
29#define LUA_STRLIBNAME "string" 29#define LUA_STRLIBNAME "string"
30LUALIB_API int lua_strlibopen (lua_State *L); 30LUALIB_API int luaopen_string (lua_State *L);
31 31
32#define LUA_MATHLIBNAME "math" 32#define LUA_MATHLIBNAME "math"
33LUALIB_API int lua_mathlibopen (lua_State *L); 33LUALIB_API int luaopen_math (lua_State *L);
34 34
35#define LUA_DBLIBNAME "debug" 35#define LUA_DBLIBNAME "debug"
36LUALIB_API int lua_dblibopen (lua_State *L); 36LUALIB_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