aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascend_scanner.l
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-04-05 16:31:49 -0700
committerGuy Harris <guy@alum.mit.edu>2016-04-05 23:32:18 +0000
commit368e3b8bd75cdbb67a905eb0de226c07f8c4e4e1 (patch)
treeb860dfd7536b3a833bdd2a92dc2a85b83a211311 /wiretap/ascend_scanner.l
parent8b9cae5ff37d4d075992551dd37e8237841e74ae (diff)
Set the extra type the right way.
Use %option extra_type= rather than #defining YY_EXTRA_TYPE. Change comments to reflect that the state structure is used both by the lexical analyzer and the parser. Change-Id: I19a81de61cbd6e86d71154f376ef0681cc6d42fb Reviewed-on: https://code.wireshark.org/review/14826 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/ascend_scanner.l')
-rw-r--r--wiretap/ascend_scanner.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/wiretap/ascend_scanner.l b/wiretap/ascend_scanner.l
index df2393d488..260d820b46 100644
--- a/wiretap/ascend_scanner.l
+++ b/wiretap/ascend_scanner.l
@@ -20,6 +20,11 @@
%option noyywrap
/*
+ * The type for the state we keep for the scanner (and parser).
+ */
+%option extra-type="ascend_state_t *"
+
+/*
* Prefix scanner routines with "ascend" rather than "yy", so this scanner
* can coexist with other scanners.
*/