Re: [cc65] two little bugs

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2009-08-20 21:07:15
On Thu, Aug 20, 2009 at 08:50:56PM +0200, Ullrich von Bassewitz wrote:
> I've had a look into the standard, but all I could find in the hurry was
>
>     - remove implicit function declaration
>
> in the list of differences to C89 in the foreword. I will recheck this and
> revert the change if necessary.

Ok, found it.

ISO/IEC 9899:1999 (E), 6.5.1 "Primary expressions":

  2 An identifier is a primary expression, provided it has been declared as
    designating an object (in which case it is an lvalue) or a function (in
    which case it is a function designator).76)

Footnote 76 says:

  76) Thus, an undeclared identifier is a violation of the syntax.

BTW: If anybody is interested in the C standard, here is an almost exact copy
as a free download:

    http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

This is the last comitee draft for technical corrigendum 3. Since there were
not many differences between TC2 and TC3, the last draft probably even better
than the original standard (which I payed €€ for).

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Aug 20 21:09:53 2009

This archive was generated by hypermail 2.1.8 : 2009-08-20 21:09:55 CEST