[cc65] Incomplete type declaration for structures

From: <davide.bologna1katamail.com>
Date: 2005-05-28 17:12:37
Hello to all,

I wrote a piece of code with two structure cross-referencing 
themselves. GCC compiles this with no problem while CC65 complain about 
the size of data type. To make you better understand the code is like 
this:

     struct y;
     struct x { struct y *py; };
     struct y { struct x *px; };

As I understand, forwarding the 'declaration' of struct y, you can 
declare struct y pointers. Obiously the struct y must be fully declared 
later. This behaviour is accepted in C standards but not in CC65.

As I am interested in this, I ask if there is a technical limit in 
implementing incomplete type or if it is not still implemented. In the 
second case I would be glad to implement it (if I am able enough, uh) 
so ideas and indications are welcome.


Bye
Davide
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat May 28 17:12:41 2005

This archive was generated by hypermail 2.1.8 : 2005-05-28 17:12:45 CEST