chiark / gitweb /
src/c-types-proto.lisp, src/c-types-impl.lisp: Qualifier name protocol.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 29 May 2016 14:08:43 +0000 (15:08 +0100)
commitff4e398b224974d6283f71aa78daef4210371e32
treef50f9a0e34af9897a77eb12318733aca7ec78442
parent65b1d9d7baec2f81b713122356955d195971f1aa
src/c-types-proto.lisp, src/c-types-impl.lisp: Qualifier name protocol.

Add a new generic function `c-qualifier-keyword' to convert a Lisp
qualifier (confusingly, a Lisp keyword) into its C equivalent.
Currently, this just lowercases the name, but future keywords won't
necessarily have such simple mappings.

Also add `c-type-qualifier-keywords' to collect and convert the list of
keywords attached to a type, and use it in the type printing functions.
Take the opportunity to add more discretionary newlines in the pretty-
printing.
doc/SYMBOLS
doc/clang.tex
src/c-types-impl.lisp
src/c-types-proto.lisp