chiark / gitweb /
src/c-types-impl.lisp (intern-c-type): Canonify class and initargs.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 8 Jun 2018 18:58:28 +0000 (19:58 +0100)
commit175d7ea7a7f768e7fea3ec62b5981c8fbb3ab164
tree7255212c708c7c7349941acf2247d79b62cf48c0
parentff344fb7a4598447cd6527c84f01d658f3fc9f11
src/c-types-impl.lisp (intern-c-type): Canonify class and initargs.

Make sure the class and initargs are canonical before probing the
`*c-type-intern-map*'.

  * The class should ideally be represented by name.

  * The initargs should be in ascending order by keyword name.

In particular, this fixes a bug where `qualify-c-type' erroneously
returns a fresh type when asked to attach an empty list of qualifiers to
an already-interned type.
src/c-types-impl.lisp