aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimaxasncp/wimaxasncp_dict.l
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-04-25 17:40:29 +0000
committerBill Meier <wmeier@newsguy.com>2008-04-25 17:40:29 +0000
commit0d4b874b44dd082eaa61b5b403069d0e3cd38453 (patch)
treec78189b236a540b92d55b797c7ec1bf798db3f76 /plugins/wimaxasncp/wimaxasncp_dict.l
parentff523807655f111ba5ae1f84a030ee8a147c3997 (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] svn path=/trunk/; revision=25173
Diffstat (limited to 'plugins/wimaxasncp/wimaxasncp_dict.l')
-rw-r--r--plugins/wimaxasncp/wimaxasncp_dict.l16
1 files changed, 11 insertions, 5 deletions
diff --git a/plugins/wimaxasncp/wimaxasncp_dict.l b/plugins/wimaxasncp/wimaxasncp_dict.l
index 6d8a4a3364..798946ffea 100644
--- a/plugins/wimaxasncp/wimaxasncp_dict.l
+++ b/plugins/wimaxasncp/wimaxasncp_dict.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
@@ -731,6 +726,17 @@ void wimaxasncp_dict_print(FILE *fh, wimaxasncp_dict_t *d) {
}
}
+/*
+ * 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;
+}
+
#ifdef TEST_WIMAXASNCP_DICT_STANDALONE
int main(int argc, char **argv) {
wimaxasncp_dict_t *d;