From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Padding Question Date: Fri, 06 Dec 1996 23:38:39 -0800 Organization: Alcyone Systems Lines: 19 Message-ID: <32A91EFF.6C6FD6F0@alcyone.com> References: <32A810D9 DOT 366E9B4E AT m-net DOT arbornet DOT org> <32A85B15 DOT 4015 AT skygames DOT com> <32A8F16C DOT 596F AT cs DOT com> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp John M. Aldrich wrote: > #pragma is an evil, hackish way to make gcc pack structures. The DJGPP > Frequently Asked Questions list (v2/faq202b.zip), chapter 22.9, tells > you exactly how to go about packing structs in DJGPP, and refers you to > the gcc reference which details the syntax of the __attribute__() > extension. I'm curious -- what's "unevil" or "unhackish" about using attributes to pack structures? Both are completely unportable, but it seems to me that the #pragma will work in the widest number of cases (i.e., taking into account old gcc bugs). -- Erik Max Francis | max AT alcyone DOT com Alcyone Systems | http://www.alcyone.com/max/ San Jose, California | 37 20 07 N 121 53 38 W &tSftDotIotE | R^4: the 4th R is respect "But since when can wounded eyes see | If we weren't who we were"