Re: [cc65] Two possible bugs

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-10-08 18:32:38


Hi!

On Wed, Oct 08, 2003 at 10:43:32AM -0400, Keates, Mark wrote:
> The listing below causes these two errors:
>
> test.c(3): Error: Preprocessor expression expected

I don't get this one here, not with 2.9.2 and not with the development
version. Is it possible that BIG_ENDIAN is defined elsewhere?

> test.c(16): Error: Incompatible types

The compiler cannot pass structs by value, and this is what you're trying to
do.

> Is the second error a limitation of CC65?

Yes. I think it's not too difficult to remove this limitation (passing structs
as parameters, that is), but it's usually a bad idea to do it.

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 : 2003-10-08 18:35:46 CEST