diff options
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 2.43 2003/05/14 21:01:53 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.44 2003/07/07 13:32:52 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 | */ |
@@ -732,13 +732,13 @@ LUALIB_API int luaopen_io (lua_State *L) { | |||
732 | lua_pushvalue(L, -1); | 732 | lua_pushvalue(L, -1); |
733 | luaL_openlib(L, LUA_IOLIBNAME, iolib, 1); | 733 | luaL_openlib(L, LUA_IOLIBNAME, iolib, 1); |
734 | /* put predefined file handles into `io' table */ | 734 | /* put predefined file handles into `io' table */ |
735 | lua_pushstring(L, "stdin"); | 735 | lua_pushliteral(L, "stdin"); |
736 | lua_rawgeti(L, 2, IO_INPUT); | 736 | lua_rawgeti(L, 2, IO_INPUT); |
737 | lua_rawset(L, 3); | 737 | lua_rawset(L, 3); |
738 | lua_pushstring(L, "stdout"); | 738 | lua_pushliteral(L, "stdout"); |
739 | lua_rawgeti(L, 2, IO_OUTPUT); | 739 | lua_rawgeti(L, 2, IO_OUTPUT); |
740 | lua_rawset(L, 3); | 740 | lua_rawset(L, 3); |
741 | lua_pushstring(L, "stderr"); | 741 | lua_pushliteral(L, "stderr"); |
742 | *newfile(L) = stderr; | 742 | *newfile(L) = stderr; |
743 | lua_rawset(L, 3); | 743 | lua_rawset(L, 3); |
744 | return 1; | 744 | return 1; |