[cc65] Another wish: Unsized Arrays in Structures

Date view Thread view Subject view

From: Christian Krüger (christian.krueger_at_pace.de)
Date: 2003-01-22 23:37:22

Hi again,

today I've tried to compile something like this:


typedef struct
  unsigned char width;
  unsigned char height;
  unsigned char data[];


...and get a friendly error:
Error: Size of data type is unknown

Which I understand - of course.. ;-)
..but I like to have 'clean' access to
known parameters and fast access without
indirection to 'unknown' sized data.

So I like to put the following on the wish
list: Unsized Arrays in Structures

(For a more detailed description look here:

Ok, ok it's a Microsoft specific extension ("Jehova, Jehova!"),
but I find usefull anyway (especially on 'weak' platforms like
the 6502) - and I think it could/should be disabled in strict
ANSI mode anyhow...

Somebody with me?

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-01-22 23:37:51 CET