]> The Tcpdump Group git mirrors - libpcap/commitdiff
gencode.c: don't include grammar.h.
authorGuy Harris <[email protected]>
Wed, 11 Aug 2021 21:46:42 +0000 (14:46 -0700)
committerGuy Harris <[email protected]>
Wed, 11 Aug 2021 21:46:42 +0000 (14:46 -0700)
It defines things necessary for communication between the lexical
analyzer and parser, but doesn't define anything we (as the semantic
part of the compiler) should need.

gencode.c

index 6b9d1357ac4a8cfe7e04e28baaac93dbf7096f60..3279ee09764a19da15ad7a9b15d92558e3d3e14a 100644 (file)
--- a/gencode.c
+++ b/gencode.c
 #include <config.h>
 #endif
 
-/*
- * grammar.h requires gencode.h and sometimes breaks in a polluted namespace
- * (see ftmacros.h), so include it early.
- */
 #include "gencode.h"
-#include "grammar.h"
 
 #include <pcap-types.h>
 #ifdef _WIN32