| www.delorie.com/archives/browse.cgi | search |
| From: | David Eberhard <toothpck AT xmission DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | packed? |
| Date: | Fri, 09 Jan 1998 00:58:06 -0700 |
| Organization: | XMission Internet (801 539 0900) |
| Lines: | 19 |
| Message-ID: | <34B5D88E.A5F81932@xmission.com> |
| NNTP-Posting-Host: | slc35.modem.xmission.com |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
I have been going over some source code for a linear-frame buffer and
in the source code, the author used some attribute called pack. What
is this? Here's some of the code:
#define PACKED __attribute__ ((packed))
#pragma pack(1)
/* SuperVGA mode information block */
typedef struct {
short ModeAttributes PACKED; // Mode attributes
char WinAAttributes PACKED; // Window A attributes
--snip--
#pragma pack()
Thanks for your help!
--
David Eberhard
toothpck AT xmission DOT com
"David's Computer Corner" at:
http://www.xmission.com/~toothpck/index.html
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |