lua

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

commit 42b947296b82d33b3ad2806eee096a87cf236161
parent f37e65d1cb53db19d2d18cfccd8cdd4527a557d6
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 23 Apr 1996 09:42:47 -0300

"fileno" is not ansi.

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

diff --git a/lua.c b/lua.c @@ -3,7 +3,7 @@ ** Linguagem para Usuarios de Aplicacao */ -char *rcs_lua="$Id: lua.c,v 1.7 1995/10/31 17:05:35 roberto Exp roberto $"; +char *rcs_lua="$Id: lua.c,v 1.8 1996/03/12 13:14:52 roberto Exp roberto $"; #include <stdio.h> #include <string.h> @@ -41,7 +41,7 @@ static void lua_getargv (void) static void manual_input (void) { - if (isatty(fileno(stdin))) + if (isatty(0)) { char buffer[250]; while (fgets(buffer, sizeof(buffer), stdin) != 0)