summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--epan/dfilter/scanner.l7
-rw-r--r--epan/diam_dict.l7
-rw-r--r--epan/dtd_parse.l7
-rw-r--r--epan/dtd_preparse.l7
-rw-r--r--epan/radius_dict.l7
-rw-r--r--epan/uat_load.l7
-rw-r--r--plugins/mate/mate_parser.l5
-rw-r--r--plugins/wimaxasncp/wimaxasncp_dict.l7
-rw-r--r--text2pcap-scanner.l5
-rw-r--r--ui/text_import_scanner.l7
-rw-r--r--wiretap/ascend_scanner.l7
-rw-r--r--wiretap/k12text.l6
12 files changed, 60 insertions, 19 deletions
diff --git a/epan/dfilter/scanner.l b/epan/dfilter/scanner.l
index b6c9605243..8f5f96a25d 100644
--- a/epan/dfilter/scanner.l
+++ b/epan/dfilter/scanner.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -68,8 +73,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include "config.h"
-
#include <stdlib.h>
#include <errno.h>
diff --git a/epan/diam_dict.l b/epan/diam_dict.l
index 7c4195caa8..e959793c6d 100644
--- a/epan/diam_dict.l
+++ b/epan/diam_dict.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -82,8 +87,6 @@
** Boston, MA 02110-1301, USA.
*/
-#include "config.h"
-
#include <glib.h>
#include <stdio.h>
#include <string.h>
diff --git a/epan/dtd_parse.l b/epan/dtd_parse.l
index ae67cd4a5d..1c8434f5fb 100644
--- a/epan/dtd_parse.l
+++ b/epan/dtd_parse.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -76,8 +81,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include "config.h"
-
#include <glib.h>
#include <string.h>
diff --git a/epan/dtd_preparse.l b/epan/dtd_preparse.l
index f51f1c7f7a..e3d0c6d9a3 100644
--- a/epan/dtd_preparse.l
+++ b/epan/dtd_preparse.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -85,8 +90,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include "config.h"
-
#include <glib.h>
#include <string.h>
#include <errno.h>
diff --git a/epan/radius_dict.l b/epan/radius_dict.l
index 656086e59e..2d446b1a8e 100644
--- a/epan/radius_dict.l
+++ b/epan/radius_dict.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -78,8 +83,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include "config.h"
-
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/epan/uat_load.l b/epan/uat_load.l
index ae8443de4d..8c8af5452f 100644
--- a/epan/uat_load.l
+++ b/epan/uat_load.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -75,8 +80,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include "config.h"
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
diff --git a/plugins/mate/mate_parser.l b/plugins/mate/mate_parser.l
index 706900b839..b0b857ec2d 100644
--- a/plugins/mate/mate_parser.l
+++ b/plugins/mate/mate_parser.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
diff --git a/plugins/wimaxasncp/wimaxasncp_dict.l b/plugins/wimaxasncp/wimaxasncp_dict.l
index be48324d4c..a1d16b3329 100644
--- a/plugins/wimaxasncp/wimaxasncp_dict.l
+++ b/plugins/wimaxasncp/wimaxasncp_dict.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -83,8 +88,6 @@
** Boston, MA 02110-1301, USA.
*/
-#include "config.h"
-
#include <glib.h>
#include <stdio.h>
#include <string.h>
diff --git a/text2pcap-scanner.l b/text2pcap-scanner.l
index 3c9f0b2498..e54e4279a9 100644
--- a/text2pcap-scanner.l
+++ b/text2pcap-scanner.l
@@ -1,5 +1,10 @@
/* -*-mode: flex-*- */
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We don't use input, so don't generate code for it.
*/
diff --git a/ui/text_import_scanner.l b/ui/text_import_scanner.l
index 740a38ea22..5182b7fe8e 100644
--- a/ui/text_import_scanner.l
+++ b/ui/text_import_scanner.l
@@ -1,5 +1,10 @@
/* -*-mode: flex-*- */
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -74,8 +79,6 @@
*
*******************************************************************************/
-#include "config.h"
-
#include <stdio.h>
#include <stdlib.h>
diff --git a/wiretap/ascend_scanner.l b/wiretap/ascend_scanner.l
index 887311ee54..8eb37fd08f 100644
--- a/wiretap/ascend_scanner.l
+++ b/wiretap/ascend_scanner.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -64,8 +69,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include "config.h"
-
#include <stdlib.h>
#include <string.h>
diff --git a/wiretap/k12text.l b/wiretap/k12text.l
index d9b022ab88..2667a89ab1 100644
--- a/wiretap/k12text.l
+++ b/wiretap/k12text.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -95,7 +100,6 @@
* - verify encapsulations
*/
-#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>