mirror of https://github.com/lua/lua
details
This commit is contained in:
parent
f52f357a55
commit
66ed154c89
8
liolib.c
8
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;
|
||||
|
|
4
ltests.c
4
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);
|
||||
|
|
Loading…
Reference in New Issue