| www.delorie.com/archives/browse.cgi | search |
| Date: | Sun, 21 Sep 1997 15:26:34 +0000 ( ) |
| From: | "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in> |
| To: | Jan Baumgart <jan AT gonzo DOT schwaben DOT de> |
| Cc: | djgpp AT delorie DOT com |
| Subject: | Re: Packed structs ? |
| In-Reply-To: | <EGrB3B.3HA@ikarus.schwaben.de> |
| Message-Id: | <Pine.LNX.3.91.970921152246.944B-100000@aditya.unigoa.ernet.in> |
| Mime-Version: | 1.0 |
On Fri, 19 Sep 1997, Jan Baumgart wrote:
> Is there a keyword to tell DJGPP to pack one _single_ struct, this means
> non-alignment of the variables, thus leaving no "holes" between them ?
struct tag
{
type1 member1;
type2 member2 __attribute__ ((packed));
type3 member3 __attribute__ ((packed));
...
type membern __attribute__ ((packed)):
} struct_instance;
You can read more about this in the gcc documentation under
C (C++) Extensions
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |