aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter/dfilter-int.h
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-10-08 13:26:53 +0100
committerJoão Valverde <j@v6e.pt>2021-10-08 19:18:56 +0100
commit2c701ddf6f6145a95eb19c9648d3beaedd7c3aa0 (patch)
tree28df962ed9b1072cde0900fc10832efcd0b4fffa /epan/dfilter/dfilter-int.h
parent9d87c4712eb51fefa2ed1f7b023945d18c8cc6ca (diff)
dfilter: Improve grammar to parse ranges
Do the integer conversion for ranges in the parser. This is more conventional, I think, and allows removing the unnecessary integer syntax tree node type. Try to minimize the number and complexity of lexical rules for ranges. But it seems we need to keep different states for integer and punctuation because of the need to disambiguate the ranges [-n-n] and [-n--n].
Diffstat (limited to 'epan/dfilter/dfilter-int.h')
-rw-r--r--epan/dfilter/dfilter-int.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dfilter/dfilter-int.h b/epan/dfilter/dfilter-int.h
index 2b982f799d..649ad82356 100644
--- a/epan/dfilter/dfilter-int.h
+++ b/epan/dfilter/dfilter-int.h
@@ -87,6 +87,9 @@ DfilterTrace(FILE *TraceFILE, char *zTracePrompt);
stnode_t *
dfilter_new_function(dfwork_t *dfw, const char *name);
+gboolean
+dfilter_str_to_gint32(dfwork_t *dfw, const char *s, gint32* pint);
+
const char *tokenstr(int token);
#endif