]> git.draconx.ca Git - cdecl99.git/commit
Clean up declgen a bit.
authorNick Bowler <nbowler@draconx.ca>
Wed, 9 Feb 2022 04:37:53 +0000 (23:37 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 9 Feb 2022 08:17:48 +0000 (03:17 -0500)
commit1c892ba2a411da86a1d419bbc07f841fedb2aef9
treea208cfd347680aaf361426f008c95d1a15bb50d3
parentd99c70ac3b5768430d0b9f295ebbba1a94e2a6f2
Clean up declgen a bit.

Use wrapper functions to perform the "allocate a structure and
initialize its members" sequence which is a common sequence here,
and avoid the use of compound literals for this which improves
portability to older compilers.
test/declgen.c