Re: [cc65] Incompatible types

Date view Thread view Subject view

From: M Ancher (ancher_at_ancher.org)
Date: 2003-02-23 22:40:01


On Sun, Feb 23, 2003 at 09:40:48PM +0100, Ullrich von Bassewitz wrote:
> cc65 does not allow to pass structs by value, and this is what your
> code does.
> Apart from cc65 not supporting it, passing structs by value has a high
> overhead, so I would try avoid it. This is of course little help if
> you don't
> want to change the code.

By quoting <http://www.cc65.org/>:
»C functions may not return structs. Struct assignment is possible.«

I got the impression that return value could not be a struct, but a
struct a parameter was ok. I propably misunderstud the homepage.

-- 
Martin Ancher <ancher_at_ancher.org>
http://ancher.org/
----------------------------------------------------------------------
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-02-23 22:39:07 CET