[cc65] Double star?

Date view Thread view Subject view

From: M Ancher (ancher_at_ancher.org)
Date: 2003-02-25 19:50:24


Hi again.

I'm still in porting mode. :)

This is the code i show my problem:

...
typedef struct WClassStruct {
	struct WClassStruct **superClasses; // array of this classes superclasses
	WClassA* firstPart;
	WClassB* secondPart;
	struct WClassStruct *nextClass; // next class in hash table linked list
} WClass;
...
WClass *wclass, *superClass;
...
xmemmove(wclass->superClasses, superClass->superClasses, size);
...

When I compile the line starting with "xmemmove", I get the error:
"Error: Incompatible pointer types".

I assume it is the double stars (**) before "superClasses" that makes
the problem. I've never seen double stars in C before. Is there an
alternative way to code this?

-- 
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-25 19:51:12 CET