X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/225fb0d496bd8f9fcbc2f800819a83c71d763a61..1b96e9580714d7a677d10a8e286b3f8a2bddc6f5:/src/explain.c diff --git a/src/explain.c b/src/explain.c index 26d39e7..6d6aa87 100644 --- a/src/explain.c +++ b/src/explain.c @@ -29,10 +29,7 @@ static void explain_specs(struct output_state *dst, struct cdecl_declspec *s, unsigned mask) { - size_t rc; - - rc = cdecl__emit_specs(dst, s, mask); - cdecl__emit(dst, " " + !rc); + cdecl__emit(dst, cdecl__emit_specs(dst, s, mask)); } /* @@ -79,8 +76,7 @@ explain_array(struct output_state *dst, struct cdecl_array *a) if (a->vla) { rc = cdecl__emit(dst, a->vla); } else { - rc = snprintf(dst->dst, dst->dstlen, "%.0" PRIuMAX, a->length); - cdecl__advance(dst, rc); + rc = cdecl__emit_uint(dst, a->length); } cdecl__emit(dst, " of " + !rc);