| delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: structures size |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <fbb9hso0kgjhjivntmjv7jg9ebasmas4bp@4ax.com> |
| References: | <Pine DOT A41 DOT 4 DOT 05 DOT 10005041827250 DOT 48816-100000 AT ieva05 DOT lanet DOT lv> <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> <3914211A DOT 3E5E1D02 AT mtu-net DOT ru> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| Lines: | 28 |
| X-Trace: | /KHlxNN0AtpmqUZ2e+i8uHE3Q1j3NxV2HAgDOjL0Gp6n80DqHeNDyB+ZrqRAM8YL89Tkc25mOYds!qZq9hWsd8X0f+JJKY079bnl5id1l54Z0Y97+zJx2yRxl77HboeTNkKDLP+q+Bgg2kgTpgApdhi2n!KFDM66g= |
| X-Complaints-To: | abuse AT gte DOT net |
| X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
| X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
| NNTP-Posting-Date: | Sat, 06 May 2000 23:43:00 GMT |
| Distribution: | world |
| Date: | Sat, 06 May 2000 23:43:01 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Sat, 06 May 2000 17:41:46 +0400, "Alexei A. Frounze"
<alex DOT fru AT mtu-net DOT ru> wrote:
>Richard Dawe wrote:
>
>> I prefer "__attribute__((packed))" myself on the actual structure,
This only works if your header is never #include'd in a C++ program.
>AFAIK it must be added to each structure member and that is not very nice.
Is this a bit nicer?
#define PACKED __attribute__((packed))
typedef struct Foo
{
short bar PACKED;
long baz PACKED;
} Foo;
--
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html
This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses. http://www.mcafee.com/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |