]> git.draconx.ca Git - cdecl99.git/commit
Kill the "horizontal" declarator chain.
authorNick Bowler <nbowler@draconx.ca>
Wed, 6 Jul 2011 02:43:42 +0000 (22:43 -0400)
committerNick Bowler <nbowler@draconx.ca>
Wed, 6 Jul 2011 02:43:42 +0000 (22:43 -0400)
commit5b6fc836137be0073e1a15895c6375429762c147
tree47218dae4c4c6c727c30e0f29ea618e7f972b6e8
parentfc08e91e04cff34f5e3c6510223d79fbf0826b19
Kill the "horizontal" declarator chain.

The "next" pointer in declarators is used in exactly one place: the list
of declarators of a declaration.  Move this chain to the toplevel so
that we get a list of declarations instead: now every struct cdecl has
exatly one declarator.

This helps eliminate the nasty hack in "explain" to print multiple
declarators.
src/cdecl.h
src/cdecl99.c
src/parse.y