chiark / gitweb /
src/c-types-parse.lisp (parse-declarator): Refactor argument list parsing.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 16 Dec 2015 05:57:20 +0000 (05:57 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 29 May 2016 14:09:03 +0000 (15:09 +0100)
commitf450a3f29645da8e88213d865b9796567a381b9e
tree0bb67cfc26dd44a63c2607c9d6e6784e92fd0b7b
parentb4a2b5d965de89f09018a34b86dc2603a6b7cece
src/c-types-parse.lisp (parse-declarator): Refactor argument list parsing.

The `argument-list' parser is now less monolithic: the work of parsing
individual arguments is given to new functions `arg-decl' and
`argument'.

Also, the interface between `argument-list' and its parent
`postfix-lparen' is changed.  Instead of simply returning its argument
list, `argument-list' now returns a function which can be applied to a
base type to produce the appropriate function type.

None of this changes any externally observable behaviour.
src/c-types-parse.lisp