diff options
Diffstat (limited to 'tools/d2c/args')
-rw-r--r-- | tools/d2c/args/manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/d2c/args/manager.c b/tools/d2c/args/manager.c index eca3bab..8706694 100644 --- a/tools/d2c/args/manager.c +++ b/tools/d2c/args/manager.c @@ -1030,6 +1030,9 @@ bool define_arg_expr(const arg_expr_t *expr, int fd, const coding_bits *bits, co result = compute_arg_expr_size(expr, bits, list, &max_size); + if (result && expr->comp_count > 1) + dprintf(fd, "("); + for (i = 0; i < expr->comp_count && result; i++) { cname = expr->comp_items[i]; @@ -1082,6 +1085,9 @@ bool define_arg_expr(const arg_expr_t *expr, int fd, const coding_bits *bits, co } + if (result && expr->comp_count > 1) + dprintf(fd, ")"); + break; case CET_UNARY: |