]> git.draconx.ca Git - cdecl99.git/commitdiff
libcdecl: Don't dynamically allocate null declarators.
authorNick Bowler <nbowler@draconx.ca>
Sun, 23 Jul 2023 19:37:32 +0000 (15:37 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sun, 23 Jul 2023 19:37:32 +0000 (15:37 -0400)
Since identifiers now come with their own declarator allocations,
nothing actually modifies any part of an allocated null declarator.

And since null declarators are always the same (with all members zero),
we don't even need to allocate them at all.  Just use a single static
allocation and make every reference to a null declarator point to that.

Then we just need to not free null declarators in the various places
where that currently happens.


No differences found