From 5c2c6b09286048b39d51964391ef2aecfd247512 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 2 Jun 2021 20:38:46 +0200 Subject: json: catchall element support Treat '*' as catchall element, not as a symbol. Also add missing json test cases for wildcard set support. Signed-off-by: Florian Westphal --- src/json.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/json.c') diff --git a/src/json.c b/src/json.c index e588ef4c..b08c004a 100644 --- a/src/json.c +++ b/src/json.c @@ -889,6 +889,11 @@ static json_t *symbolic_constant_json(const struct symbol_table *tbl, return json_string(s->identifier); } +json_t *set_elem_catchall_expr_json(const struct expr *expr, struct output_ctx *octx) +{ + return json_string("*"); +} + static json_t *datatype_json(const struct expr *expr, struct output_ctx *octx) { const struct datatype *dtype = expr->dtype; -- cgit v1.2.3