aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-05-17 00:11:37 +0000
committerGuy Harris <guy@alum.mit.edu>2001-05-17 00:11:37 +0000
commit802962e0dd2178a220388b08bb10fa6c15ff94cf (patch)
tree237e00e9d7d36bc56f19fb18d2e57fca8d186a53
parent28fb6a9ade214f43b37369c6160dd4e014bfb520 (diff)
Declare "yylex()" in "text2pcap.h", so that there's a prototype in scope
when it's used by "text2pcap.c" - and so that the *same* prototype is in scope when it's defined by "text2pcap-scanner.c". Define "YY_NO_UNPUT" in "text2pcap.h", so we don't define "yyunput()" in "text2pcap-scanner.c"; it's not used, so some compilers whine about it. svn path=/trunk/; revision=3424
-rw-r--r--text2pcap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/text2pcap.h b/text2pcap.h
index 8ccfcc45e4..ca6220a547 100644
--- a/text2pcap.h
+++ b/text2pcap.h
@@ -6,7 +6,7 @@
*
* (c) Copyright 2001 Ashok Narayanan <ashokn@cisco.com>
*
- * $Id: text2pcap.h,v 1.1 2001/05/16 21:32:04 ashokn Exp $
+ * $Id: text2pcap.h,v 1.2 2001/05/17 00:11:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -44,4 +44,8 @@ typedef enum {
void parse_token(token_t token, char *str);
+int yylex(void);
+
+#define YY_NO_UNPUT
+
#endif