summaryrefslogtreecommitdiff
path: root/usr.bin/lex
diff options
context:
space:
mode:
authorRui Paulo <rpaulo@FreeBSD.org>2010-10-13 10:31:32 +0000
committerRui Paulo <rpaulo@FreeBSD.org>2010-10-13 10:31:32 +0000
commit60982546cd23b961ee5f22e312d9af5365bc4a52 (patch)
tree9c222f6b74211f25c00d785c4d3d9eef076309bc /usr.bin/lex
parentafe53dff1e902b5e0d48273e389c0611bef3eae4 (diff)
downloadsrc-test-60982546cd23b961ee5f22e312d9af5365bc4a52.tar.gz
src-test-60982546cd23b961ee5f22e312d9af5365bc4a52.zip
Don't define the input() function ifdef YY_NO_INPUT.
This was previously done for the input() function. Submitted by: Norberto Lopes <nblopes.ml at gmail.com>
Notes
Notes: svn path=/head/; revision=213764
Diffstat (limited to 'usr.bin/lex')
-rw-r--r--usr.bin/lex/flex.skl2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/lex/flex.skl b/usr.bin/lex/flex.skl
index 21117118fd621..69d9ca2cac4c6 100644
--- a/usr.bin/lex/flex.skl
+++ b/usr.bin/lex/flex.skl
@@ -979,6 +979,7 @@ void yyFlexLexer::yyunput( int c, char* yy_bp )
%-
+#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput()
#else
@@ -1054,6 +1055,7 @@ int yyFlexLexer::yyinput()
return c;
}
+#endif /* ifndef YY_NO_INPUT */
%-