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
This commit is contained in:
parent
28fb6a9ade
commit
802962e0dd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue