diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:28:12 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 14:28:12 -0300 |
commit | 35023355f21d2c508e2614dc8383d7535dd3a80a (patch) | |
tree | 060e939e2e89f30d7b4c35467692a082e59fc684 /liolib.c | |
parent | 39b79783297bee79db9853b63d199e120a009a8f (diff) | |
download | lua-35023355f21d2c508e2614dc8383d7535dd3a80a.tar.gz lua-35023355f21d2c508e2614dc8383d7535dd3a80a.tar.bz2 lua-35023355f21d2c508e2614dc8383d7535dd3a80a.zip |
details for wchar
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.107 2001/02/22 17:15:18 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.108 2001/02/23 17:17:25 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 | */ |
@@ -638,7 +638,7 @@ static int errorfb (lua_State *L) { | |||
638 | luaL_addstring(&b, l_s("\n")); | 638 | luaL_addstring(&b, l_s("\n")); |
639 | } | 639 | } |
640 | luaL_pushresult(&b); | 640 | luaL_pushresult(&b); |
641 | lua_getglobal(L, l_s(LUA_ALERT)); | 641 | lua_getglobal(L, LUA_ALERT); |
642 | if (lua_isfunction(L, -1)) { /* avoid loop if _ALERT is not defined */ | 642 | if (lua_isfunction(L, -1)) { /* avoid loop if _ALERT is not defined */ |
643 | lua_pushvalue(L, -2); /* error message */ | 643 | lua_pushvalue(L, -2); /* error message */ |
644 | lua_rawcall(L, 1, 0); | 644 | lua_rawcall(L, 1, 0); |
@@ -671,7 +671,7 @@ static const luaL_reg iolib[] = { | |||
671 | {l_s("tmpname"), io_tmpname}, | 671 | {l_s("tmpname"), io_tmpname}, |
672 | {l_s("write"), io_write}, | 672 | {l_s("write"), io_write}, |
673 | {l_s("writeto"), io_writeto}, | 673 | {l_s("writeto"), io_writeto}, |
674 | {l_s(LUA_ERRORMESSAGE), errorfb} | 674 | {LUA_ERRORMESSAGE, errorfb} |
675 | }; | 675 | }; |
676 | 676 | ||
677 | 677 | ||