Mail Archives: djgpp/1997/01/30/11:35:53
Eli Zaretskii wrote:
>
> On Thu, 30 Jan 1997, DR. Andras Solyom wrote:
>
> > Eli, is this covered in the FAQ?
>
> The latest release 2.10 of the FAQ explains that declaring the entire
> struct with packed attribute only works in C; in C++ you need to declare
> every struct member with that attribute. Is that enough?
If I think about very carefully this can be OK. But does this imply that
the construct:
struct foo {
int l1 PACKED, l2 PACKED;
....
};
also guaranties packing? (I did not try this one. For those who did not
read my previous posting, PACKING is a #define for __attribute__
((packed)) ).
Will newbies understand it?
- Raw text -