summaryrefslogtreecommitdiff
path: root/epan/dfilter
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2013-06-19 17:11:55 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2013-06-19 17:11:55 +0000
commit608ad7b5b63ad6478804b1843d146853844b449c (patch)
treef40a0f9534e2c786d2c87ccae05f3dc16ff732c4 /epan/dfilter
parentc621a6dbf1c75640faccc392ebe0c5fc2a338636 (diff)
downloadwireshark-608ad7b5b63ad6478804b1843d146853844b449c.tar.gz
Add a comment about how it would nice for display filter macro fields
to use auto-completion, but that it won't work because the string contains the $1, etc placeholders... svn path=/trunk/; revision=50038
Diffstat (limited to 'epan/dfilter')
-rw-r--r--epan/dfilter/dfilter-macro.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dfilter/dfilter-macro.c b/epan/dfilter/dfilter-macro.c
index 44aeea09a2..782d2d290a 100644
--- a/epan/dfilter/dfilter-macro.c
+++ b/epan/dfilter/dfilter-macro.c
@@ -603,6 +603,9 @@ UAT_CSTRING_CB_DEF(macro,text,dfilter_macro_t)
void dfilter_macro_init(void) {
static uat_field_t uat_fields[] = {
UAT_FLD_CSTRING_OTHER(macro,name,"Name",macro_name_chk,"The name of the macro."),
+ /* N.B. it would be nice if there was a field type for display filters (with
+ auto-completion & colouring), but this wouldn't work here as the filter string
+ will contain $1, etc... */
UAT_FLD_CSTRING_ISPRINT(macro,text,"Text","The text this macro resolves to."),
UAT_END_FIELDS
};
@@ -631,7 +634,7 @@ void dfilter_macro_get_uat(void** p) {
#ifdef DUMP_DFILTER_MACRO
/*
* The dfilter_macro_t has several characteristics that are
- * not immediattly obvious. The dump_dfilter_filter_macro_t()
+ * not immediately obvious. The dump_dfilter_filter_macro_t()
* function can be used to help "visualize" the contents of
* a dfilter_macro_t.
*