Mail Archives: djgpp/1996/12/10/17:01:44
Erik Max Francis wrote:
> But that was my whole point. If you're counting on packed structures, you
> have to do something compiler-specific to get them -- in DJGPP, that's
> either with a #pragma or an attribute. Considering that they are _both_
> inherently nonportable, and in both cases you know the conditions which
> they will be usable, I don't see why the one is any better than the other.
> Ultimately it comes down to the fact that both alternatives are
> nonportable.
Ahh, but most compilers will silently ignore unrecognized #prama's (or
only
give a mild warning). However, if you use __attribute__ constructs
instead
(useful for more than just packing), other compilers will spit the dummy
and
complain about syntax/parsing errors etc and this will make porting
EASIER
because your attention is brought to the problem immediatly by the
compiler
rather than later on when your once working code stops working when
ported.
Bill
--
Leave others their otherness.
- Raw text -