| www.delorie.com/archives/browse.cgi | search |
| Date: | Mon, 14 Feb 94 11:54:14 -0500 |
| From: | DJ Delorie <dj AT ctron DOT com> |
| To: | jcrigler AT orl DOT mmc DOT com |
| Cc: | pgf AT cayman DOT com, jcrigler AT orl DOT mmc DOT com, djgpp AT sun DOT soe DOT clarkson DOT edu, |
| jcrigler AT orl DOT mmc DOT com | |
| Subject: | Re: get vga info: int 10, ah == 1b |
> > where do i need to put the "__attribute__ ((packed))" keywords? the
> > shotgun approach to programming says do this:
> > struct {
> > char a __attribute__ ((packed));
> > short b __attribute__ ((packed));
> > } foo __attribute__ ((packed));
> > but i'll bet they're not all necessary...
> > ]
The first two are needed, the last one might be also but I doubt it.
Look in <coff.h>, which uses packed structures.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |