Re: [cc65] k&r c

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-06-14 15:40:07


Hi!

Sorry for being so unresponsive in the last few weeks, I will try to do better
in the future...

On Fri, Jun 07, 2002 at 03:46:50PM +0200, Christian Groessler wrote:
> I recently tried to compile a k&r c program with cc65 and found some
> inconstistent behaviour.
[...]

This is fixed in the development version now. The behaviour is now as follows:

  - In a K&R function with an implicit int return type, a return without a
    value is not flagged as an error.

  - In all other cases, it is.

This means that the following code snippets will still generate errors, which
is a good idea, I think:

      	int foo (s)
      	    int s;
      	{
      	    return;
      	}

      	char* bar (s, x)
	    char* s;
	{
	    return;
	}

The resulting changes were quite large, so I've decided against a patch for
the 2.8.0 version. There are not many K&R sources around today, so I assume we
can live with that.

Regards


	Uz


--
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-06-14 15:42:26 CEST