From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: structures size Date: Sat, 06 May 2000 17:41:46 +0400 Organization: MTU-Intel ISP Lines: 28 Message-ID: <3914211A.3E5E1D02@mtu-net.ru> References: <3911D576 DOT 947D53CF AT mtu-net DOT ru> <3913074E DOT 9405129F AT bigfoot DOT com> <39133B43 DOT 5BC03E9 AT mtu-net DOT ru> <3913F41A DOT D8DD3A7D AT bigfoot DOT com> NNTP-Posting-Host: ppp97-192.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 957620510 21735 212.188.97.192 (6 May 2000 13:41:50 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 6 May 2000 13:41:50 GMT X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: ru,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Richard Dawe wrote: > > Hello. > > "Alexei A. Frounze" wrote: > > > > Richard Dawe wrote: > > > Is it better because you can nest packing pragmas this way? > > > > Yup. This was the idea I have in mind. Seems to be a bit better. Right? > > I prefer "__attribute__((packed))" myself on the actual structure, AFAIK it must be added to each structure member and that is not very nice. > but > nestable packing pragmas seem like a good idea if you're using them in > header files. Is this push/pop a gcc extension? I'm not sure it's a GCC extension. Watcom C/C++ has the same stuff. I think it's a common thing. bye. Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru