aboutsummaryrefslogtreecommitdiffstats
path: root/epan/uat_load.l
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-04-25 17:40:29 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-04-25 17:40:29 +0000
commit75c64234402e5e4de8ecc7b3bb20d7ad35a9f2ac (patch)
treec78189b236a540b92d55b797c7ec1bf798db3f76 /epan/uat_load.l
parentce375116cb4e5eaac75640843a0f5074f6710188 (diff)
Bug 2493: Fix (Part 2):
To prevent Windows compiler errors when using flex 2.5.35. Fixes "missing unistd.h" and yywrap "mismatched parameter" warnings [Upcoming Part 3: ignore 'signed /unsigned mismatch' errors] git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25173 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/uat_load.l')
-rw-r--r--epan/uat_load.l16
1 files changed, 11 insertions, 5 deletions
diff --git a/epan/uat_load.l b/epan/uat_load.l
index ec93d11100..1045d8e757 100644
--- a/epan/uat_load.l
+++ b/epan/uat_load.l
@@ -1,9 +1,4 @@
/*
- * We want to stop processing when we get to the end of the input.
- */
-%option noyywrap
-
-/*
* We don't use unput, so don't generate code for it.
*/
%option nounput
@@ -349,3 +344,14 @@ gboolean uat_load_str(uat_t* uat_in, char* entry, char** err) {
return TRUE;
}
}
+
+/*
+ * We want to stop processing when we get to the end of the input.
+ * (%option noyywrap is not used because if used then
+ * some flex versions (eg: 2.5.35) generate code which causes
+ * warnings by the Windows VC compiler).
+ */
+
+int yywrap(void) {
+ return 1;
+}