Re: [cc65] Another wish: Unsized Arrays in Structures

Date view Thread view Subject view

From: Spiro Trikaliotis (trik-news_at_gmx.de)
Date: 2003-01-23 17:46:01


Hello again,

Tim Schürmann schrieb:

> Spiro Trikaliotis schrieb:
[...]
> > well, the type TestStruct exists, but there isn't memory for it.
[...]
> struct {
> ...
> } TestStruct;
[...]
> defines both a variable TestStruct. It is not nessesary to allocate memory (only
> for the *data array - see also the original mail from Christian Krüger).

well, it's you who should carefully read Christian Krüger's original mail:
There was a "typedef" in front of the struct, so there is a little difference,
Christian only defines a type but doesn't allocate memory.

HTH,
   Spiro.

----------------------------------------------------------------------
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-23 17:47:11 CET