Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2001 14:48:23 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        hackers@freebsd.org
Subject:   fixing flex definitions?
Message-ID:  <20010305144823.B8663@fw.wintelcom.net>

next in thread | raw e-mail | index | archive | help
The flex scanner template has this in it:

#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif

Which seems to be the wrong thing to do.

Would this be an ok fix?  I'm worried about the YY_PROTO() messing
things up anyone know what the point of doing it this way is?

Index: flex.skl
===================================================================
RCS file: /home/ncvs/src/usr.bin/lex/flex.skl,v
retrieving revision 1.4
diff -u -u -r1.4 flex.skl
--- flex.skl	1999/10/27 07:56:44	1.4
+++ flex.skl	2001/03/05 22:49:01
@@ -1180,7 +1180,8 @@
 %-
 #ifndef YY_ALWAYS_INTERACTIVE
 #ifndef YY_NEVER_INTERACTIVE
-extern int isatty YY_PROTO(( int ));
+/* for isatty() */
+#include <unistd.h>	
 #endif
 #endif
 

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010305144823.B8663>