src/c-types-impl.lisp: Handle `void' argument lists specially.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 15 Aug 2015 16:55:29 +0000 (17:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 15 Aug 2015 16:55:29 +0000 (17:55 +0100)
commit4d89d941ae5c674e85ae5402361cb893c07ce65b
tree6b1cf7d2531a2bd6c348b3df24c6bef9dca52647
parentfc5d94866b46d979d84cfdf8ea20e94e44976340
src/c-types-impl.lisp: Handle `void' argument lists specially.

We'll treat them as equivalent to empty lists.  Otherwise it's just too
easy to declare a message as

void msg(void)

and end up with a horrible mess when the translator tries to turn that
into a direct method of the form

void msg(Thing *me, void)

which works less then brilliantly.

And, on output, we'll write an empty list as `void'.  This situation
doesn't arise in the current translator (I think), but might well do in
extensions.
src/c-types-impl.lisp