From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-02-05 23:21:47
On Wed, Feb 05, 2003 at 09:26:20PM +0100, 3843416 wrote: > kann sich einer vorstellen, warum folgendes programm nicht funzt ? There are two problems with your code: > void setcharcolors(ROYWINCOL_T colors); cc65 does not allow to pass structures by value. This is explicitly stated in the docs: C Functions may not return structs (or unions), and structs may not be passed as parameters by value. However, struct assignment *is* possible. > setcharcolors({1,0}); This is not valid C according to the C89 standard. 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.
This archive was generated by hypermail 2.1.3 : 2003-02-05 23:23:46 CET