summaryrefslogtreecommitdiffstats
path: root/filter/f-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/f-util.c')
-rw-r--r--filter/f-util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/filter/f-util.c b/filter/f-util.c
index b070d95..2bc7873 100644
--- a/filter/f-util.c
+++ b/filter/f-util.c
@@ -32,6 +32,15 @@ f_new_inst(void)
return ret;
}
+struct f_inst *
+f_new_dynamic_attr(int code)
+{
+ struct f_inst *f = f_new_inst();
+ f->aux = T_INT;
+ f->a2.i = code;
+ return f;
+}
+
char *
filter_name(struct filter *filter)
{