diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 15:39:51 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-22 15:39:51 -0200 |
commit | 7d1499ba88fbb9275b6e5dea6005a49ff15347dd (patch) | |
tree | 3effbdda4848b26de22e12d8dd14d6c9e3da518b /liolib.c | |
parent | 29ede6aa13144ff7b69c57a87be1ee93f57ae896 (diff) | |
download | lua-7d1499ba88fbb9275b6e5dea6005a49ff15347dd.tar.gz lua-7d1499ba88fbb9275b6e5dea6005a49ff15347dd.tar.bz2 lua-7d1499ba88fbb9275b6e5dea6005a49ff15347dd.zip |
new macro luaL_openl
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.50 1999/11/09 17:59:35 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.51 1999/11/22 13:12:07 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 | */ |
@@ -632,8 +632,7 @@ static void openwithtags (lua_State *L) { | |||
632 | } | 632 | } |
633 | 633 | ||
634 | void lua_iolibopen (lua_State *L) { | 634 | void lua_iolibopen (lua_State *L) { |
635 | /* register lib functions */ | 635 | luaL_openl(L, iolib); |
636 | luaL_openlib(L, iolib, (sizeof(iolib)/sizeof(iolib[0]))); | ||
637 | openwithtags(L); | 636 | openwithtags(L); |
638 | } | 637 | } |
639 | 638 | ||