diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-02 20:38:46 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-06-02 23:46:11 +0200 |
commit | 5c2c6b09286048b39d51964391ef2aecfd247512 (patch) | |
tree | 03295d9dc27ec95a40a8ceb1012e69c356058732 /src/json.c | |
parent | 4359cb82833a6907f9ee9803be270db89ceaf758 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |