From 802962e0dd2178a220388b08bb10fa6c15ff94cf Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 17 May 2001 00:11:37 +0000 Subject: 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 --- text2pcap.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'text2pcap.h') 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 * - * $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 @@ -44,4 +44,8 @@ typedef enum { void parse_token(token_t token, char *str); +int yylex(void); + +#define YY_NO_UNPUT + #endif -- cgit v1.2.3