From: Michael Wallner Date: Mon, 18 Jan 2016 13:52:03 +0000 (+0100) Subject: fix dumper X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3fe5a4c7cf3e810dcfd79475a1a3aedbe8282378;p=m6w6%2Fext-psi fix dumper --- diff --git a/src/context.c b/src/context.c index 3f94d42..0c87fee 100644 --- a/src/context.c +++ b/src/context.c @@ -1243,7 +1243,7 @@ static inline void dump_impl_set_value(int fd, set_value *set, unsigned level) { dprintf(fd, ", "); dump_num_exp(fd, set->num); } - if (set->inner) { + if (set->inner && set->func->type != PSI_T_ELLIPSIS) { dprintf(fd, ",\n"); for (i = 0; i < set->count; ++i) { dump_impl_set_value(fd, set->inner[i], level+1); @@ -1391,6 +1391,9 @@ void PSI_ContextDump(PSI_Context *C, int fd) dprintf(fd, "%s($%s)", let->val->data.func->name, let->val->data.func->var->name); break; + case PSI_LET_NUMEXP: + dump_num_exp(fd, let->val->data.num); + break; EMPTY_SWITCH_DEFAULT_CASE(); }