Mail Archives: djgpp/2000/06/01/05:49:09
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> said:
> On Wed, 31 May 2000, Richard Dawe wrote:
>
> > BTW the __dpmi_paddr structure isn't padded. None of the structures in
> > dpmi.h seem to be. I wonder if they should be, perhaps for DJGPP 2.04?
>
> What for? What are the problems with them being unpadded?
>
> (Btw, nothing prevents the compiler from padding them at will, and I
> think it actually will do that. Did you look at sizeof(__dpmi_paddr)?)
Padding wouldn't hurt. But I think he meant wrong alignment of
'__dpmi_paddr.selector'. Without some #pragma's around '__dpmi_paddr',
the long-call *could* cause a crash.
Gisle V.
- Raw text -