]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Fix spacing after pointer qualifiers (again).
authorNick Bowler <nbowler@draconx.ca>
Sun, 14 Jan 2024 05:42:20 +0000 (00:42 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sun, 14 Jan 2024 05:46:50 +0000 (00:46 -0500)
commitd325d75dac5339f0c25b741122cde5698c62f04e
tree242d08275a0034d65e8edf31d13ba3c0ce819d49
parentb1e5676a0b41e67990dc949923aa4d5bdb3f1a73
libcdecl: Fix spacing after pointer qualifiers (again).

Some renderings of pointer qualifiers have an unwanted trailing space,
for example:

  > type const pointer to array of int
  int (* const )[]

This exact bug was fixed before, more than 10 years ago, but as no test
case was added it took some time to notice the problem when the fix was
inadvertently deleted.  This time, we fix it again, and also add some
test cases to verify the output.
src/declare.c
tests/decl-good.at