cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/21/15:21:28

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

- Raw text -


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