lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 66ed154c8909db1fe9bce148c94ef68c1bd7f986
parent f52f357a5576aad0794e4c46b86bba5c75ddcf3d
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed,  9 Jul 2003 09:08:21 -0300

details

Diffstat:
Mliolib.c | 8++++----
Mltests.c | 4++--
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git 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 @@ -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, "<undef>"); + lua_pushliteral(L, "<undef>"); luaA_pushobject(L, gval(gnode(t, i))); if (t->node[i].next) lua_pushintegral(L, t->node[i].next - t->node);