Re: [cc65] parser bug?

From: Tilmann <test1d983.ath.cx>
Date: 2013-01-18 18:34:54
Quoting Ullrich von Bassewitz on 2013-01-18 17:48:17 (+0100):
> cc65 is mostly a C89 compiler. It has a few limitations (things that c89 has,
> but cc65 has not) and a few extensions, some from c99. Intermingled
> declarations and code are a c99 feature that is not implemented by cc65.
> 
> So it is by design that above code will not compile.

So, mixing declaration and _initialisation_ is valid, while as seen above
mixing declaration and _assignment_ is not. Again what learnt. (:
---snip---
void main() {
    unsigned char *a = (unsigned char *) 1024, c;
    c = 0;
}
---snip---


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jan 18 18:35:03 2013

This archive was generated by hypermail 2.1.8 : 2013-01-18 18:35:07 CET