summaryrefslogtreecommitdiff
path: root/sh.l
diff options
context:
space:
mode:
Diffstat (limited to 'sh.l')
-rw-r--r--sh.l9
1 files changed, 6 insertions, 3 deletions
diff --git a/sh.l b/sh.l
index c38ea7c..289c97a 100644
--- a/sh.l
+++ b/sh.l
@@ -1,9 +1,7 @@
%{
+#include <stdio.h>
#include "sh.h"
#include "sh.tab.h"
-/* thanks, flex, for implicitly declaring identifiers */
-/* bonus points for something that isn't part of ISO C */
-extern int fileno(FILE *);
%}
NAME [_a-zA-Z0-9]
@@ -65,6 +63,11 @@ OPERATOR [()|;&<>]
{WHITESPACE} ;
%%
+int yywrap(void)
+{
+ return 1;
+}
+
void sh_silence_warning(void)
{
input();