aboutsummaryrefslogtreecommitdiff
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
parentf52f357a5576aad0794e4c46b86bba5c75ddcf3d (diff)
downloadlua-66ed154c8909db1fe9bce148c94ef68c1bd7f986.tar.gz
lua-66ed154c8909db1fe9bce148c94ef68c1bd7f986.tar.bz2
lua-66ed154c8909db1fe9bce148c94ef68c1bd7f986.zip
details
-rw-r--r--liolib.c8
-rw-r--r--ltests.c4
2 files changed, 6 insertions, 6 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;
diff --git a/ltests.c b/ltests.c
index 6e60dd66..90430e67 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.160 2003/05/13 19:22:19 roberto Exp roberto $ 2** $Id: ltests.c,v 1.161 2003/05/14 21:10:07 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -322,7 +322,7 @@ static int table_query (lua_State *L) {
322 luaA_pushobject(L, gkey(gnode(t, i))); 322 luaA_pushobject(L, gkey(gnode(t, i)));
323 } 323 }
324 else 324 else
325 lua_pushstring(L, "<undef>"); 325 lua_pushliteral(L, "<undef>");
326 luaA_pushobject(L, gval(gnode(t, i))); 326 luaA_pushobject(L, gval(gnode(t, i)));
327 if (t->node[i].next) 327 if (t->node[i].next)
328 lua_pushintegral(L, t->node[i].next - t->node); 328 lua_pushintegral(L, t->node[i].next - t->node);