diff --git a/liolib.c b/liolib.c index a817fad2..45dc6cb3 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.43 2003/05/14 21:01:53 roberto Exp roberto $ +** $Id: liolib.c,v 2.44 2003/07/07 13:32:52 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -732,13 +732,13 @@ LUALIB_API int luaopen_io (lua_State *L) { lua_pushvalue(L, -1); luaL_openlib(L, LUA_IOLIBNAME, iolib, 1); /* put predefined file handles into `io' table */ - lua_pushstring(L, "stdin"); + lua_pushliteral(L, "stdin"); lua_rawgeti(L, 2, IO_INPUT); lua_rawset(L, 3); - lua_pushstring(L, "stdout"); + lua_pushliteral(L, "stdout"); lua_rawgeti(L, 2, IO_OUTPUT); lua_rawset(L, 3); - lua_pushstring(L, "stderr"); + lua_pushliteral(L, "stderr"); *newfile(L) = stderr; lua_rawset(L, 3); return 1; diff --git a/ltests.c b/ltests.c index 6e60dd66..90430e67 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.160 2003/05/13 19:22:19 roberto Exp roberto $ +** $Id: ltests.c,v 1.161 2003/05/14 21:10:07 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -322,7 +322,7 @@ static int table_query (lua_State *L) { luaA_pushobject(L, gkey(gnode(t, i))); } else - lua_pushstring(L, ""); + lua_pushliteral(L, ""); luaA_pushobject(L, gval(gnode(t, i))); if (t->node[i].next) lua_pushintegral(L, t->node[i].next - t->node);