lua

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

commit e3cddc950cc84755437e3c2302d12f6c3fcb691b
parent 630acb204869f367e31a57d850b3669f49430064
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu,  6 Jun 2002 09:42:46 -0300

C is not C++...

Diffstat:
Mliolib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/liolib.c b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.7 2002/06/05 17:24:04 roberto Exp roberto $ +** $Id: liolib.c,v 2.8 2002/06/05 17:42:03 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -99,12 +99,12 @@ static int setnewfile (lua_State *L, FILE *f) { static int io_close (lua_State *L) { FILE *f; + int status = 1; if (lua_isnone(L, 1)) { lua_pushstring(L, IO_OUTPUT); lua_rawget(L, lua_upvalueindex(1)); } f = tofile(L, 1); - int status = 1; if (f != stdin && f != stdout && f != stderr) { lua_settop(L, 1); /* make sure file is on top */ lua_pushliteral(L, CLOSEDFILEHANDLE);