]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Accumulate output length in structure.
authorNick Bowler <nbowler@draconx.ca>
Fri, 23 Jun 2023 04:05:41 +0000 (00:05 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 23 Jun 2023 05:03:44 +0000 (01:03 -0400)
commit225fb0d496bd8f9fcbc2f800819a83c71d763a61
tree3de9b0b16a460a3b3390a41fff23cf02e81bc661
parent7df5e2a15f784ab786f56ca25d739c8b546ccde8
libcdecl: Accumulate output length in structure.

Instead of cascading the lengths back via function return values, since
we now have a state structure we can just track the total length in one
place.  This is quite a lot conceptually simpler and cuts out a good
chunk of code.
src/cdecl-internal.h
src/declare.c
src/explain.c
src/output.c