Declare "yylex()" in "text2pcap.h", so that there's a prototype in scope
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 17 May 2001 00:11:37 +0000 (00:11 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 17 May 2001 00:11:37 +0000 (00:11 +0000)
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3424 f5534014-38df-0310-8fa8-9805f1628bb7

text2pcap.h

index 8ccfcc45e4921474172eb853fc47636d2b55d8c5..ca6220a54757f77282a6cc9559546b858de38a25 100644 (file)
@@ -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