summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-06-02 20:38:46 +0200
committerFlorian Westphal <fw@strlen.de>2021-06-02 23:46:11 +0200
commit5c2c6b09286048b39d51964391ef2aecfd247512 (patch)
tree03295d9dc27ec95a40a8ceb1012e69c356058732 /src/json.c
parent4359cb82833a6907f9ee9803be270db89ceaf758 (diff)
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 <fw@strlen.de>
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c5
1 files changed, 5 insertions, 0 deletions
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;