aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-07-09 09:08:43 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-07-09 09:08:43 -0300
commit66ed154c8909db1fe9bce148c94ef68c1bd7f986 (patch)
tree998f79816eaa3343180f32e4d650643d366b192e /liolib.c
parentf52f357a5576aad0794e4c46b86bba5c75ddcf3d (diff)
downloadlua-66ed154c8909db1fe9bce148c94ef68c1bd7f986.tar.gz
lua-66ed154c8909db1fe9bce148c94ef68c1bd7f986.tar.bz2
lua-66ed154c8909db1fe9bce148c94ef68c1bd7f986.zip
details
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/liolib.c b/liolib.c
index a817fad2..45dc6cb3 100644
--- a/liolib.c
+++ b/liolib.c
@@ -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;