www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/30/11:35:53

Message-ID: <32F0CA8F.75A1@eik.bme.hu>
Date: Thu, 30 Jan 1997 17:21:35 +0100
From: "DR. Andras Solyom" <solyom AT eik DOT bme DOT hu>
Reply-To: solyom AT eik DOT bme DOT hu
Organization: Technical University of Budapest
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Help: Packing structures
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970130142145 DOT 18343A-100000 AT is>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019