]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Simplify declarator traversal logic.
authorNick Bowler <nbowler@draconx.ca>
Wed, 28 Jun 2023 05:07:59 +0000 (01:07 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sun, 2 Jul 2023 00:16:06 +0000 (20:16 -0400)
commitf522ffe295db90f2072c70ae3583a5f0d064677d
tree9fc1e638aa7598dd4f4564d17423a4f00a69c4c7
parent6cc6418811ac7b38fbe1ceed1de949d33439b51c
libcdecl: Simplify declarator traversal logic.

It seems unnecessary to handle the case where the traversal function
modifies the subtree differently from the case where the function does
not modify the subtree.

So we only have to deal with two cases for the traversal function's
return value, which allows us to simplify a bit.
src/parse-decl.c