Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/lex don't roll your own declaration of isatty; use <...
details: https://anonhg.NetBSD.org/src/rev/f8f40f0d88dc
branches: trunk
changeset: 501718:f8f40f0d88dc
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 06 02:09:31 2001 +0000
description:
don't roll your own declaration of isatty; use <unistd.h>; needs to be checked
for c++
diffstat:
usr.bin/lex/flex.skl | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r c0c51e34e49c -r f8f40f0d88dc usr.bin/lex/flex.skl
--- a/usr.bin/lex/flex.skl Sat Jan 06 00:35:54 2001 +0000
+++ b/usr.bin/lex/flex.skl Sat Jan 06 02:09:31 2001 +0000
@@ -1,7 +1,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
- * $NetBSD: flex.skl,v 1.15 2000/06/17 11:56:21 assar Exp $
+ * $NetBSD: flex.skl,v 1.16 2001/01/06 02:09:31 christos Exp $
*/
#define FLEX_SCANNER
@@ -1190,7 +1190,7 @@
%-
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
-extern int isatty YY_PROTO(( int ));
+#include <unistd.h>
#endif
#endif
@@ -1203,7 +1203,6 @@
#endif
%+
-extern "C" int isatty YY_PROTO(( int ));
void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file )
%*
Home |
Main Index |
Thread Index |
Old Index