diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-11 09:24:34 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-11 09:24:34 -0300 |
commit | 034de1fe73c24dcb75658b4c9ab16dd012ba3057 (patch) | |
tree | 8f1c1fecd4321bfda68aee97b8bb54d59b22c935 /liolib.c | |
parent | 430d6db92827ae2797f435dd5019b5cd115859ef (diff) | |
download | lua-034de1fe73c24dcb75658b4c9ab16dd012ba3057.tar.gz lua-034de1fe73c24dcb75658b4c9ab16dd012ba3057.tar.bz2 lua-034de1fe73c24dcb75658b4c9ab16dd012ba3057.zip |
new names for functions that open C libraries
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 2.33 2003/02/27 12:39:05 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.34 2003/03/06 19:36:44 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -749,7 +749,7 @@ static const luaL_reg syslib[] = { | |||
749 | 749 | ||
750 | 750 | ||
751 | 751 | ||
752 | LUALIB_API int lua_iolibopen (lua_State *L) { | 752 | LUALIB_API int luaopen_io (lua_State *L) { |
753 | createmeta(L); | 753 | createmeta(L); |
754 | luaL_openlib(L, LUA_OSLIBNAME, syslib, 0); | 754 | luaL_openlib(L, LUA_OSLIBNAME, syslib, 0); |
755 | lua_pushliteral(L, FILEHANDLE); | 755 | lua_pushliteral(L, FILEHANDLE); |