| delorie.com/archives/browse.cgi | search |
| Message-Id: | <3.0.1.32.20001205160827.006c45cc@wingate> |
| X-Sender: | n_abing#ns DOT roxas-online DOT net DOT ph AT wingate |
| X-Mailer: | Windows Eudora Pro Version 3.0.1 (32) |
| Date: | Tue, 05 Dec 2000 16:08:27 +0800 |
| To: | djgpp AT delorie DOT com |
| From: | "Nimrod A. Abing" <n_abing AT ns DOT roxas-online DOT net DOT ph> |
| Subject: | Re: what is __attribute__ ((packed)); |
| Cc: | gorden AT ms9 DOT url DOT com DOT tw |
| In-Reply-To: | <90i19j$b9u@netnews.hinet.net> |
| Mime-Version: | 1.0 |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
At 08:34 AM 12/05/2000 +0800, you wrote:
>typedef struct VESA_INFO /* VESA information block structure */
>{
> unsigned char VESASignature[4] __attribute__ ((packed));
> unsigned short VESAVersion __attribute__ ((packed));
> unsigned long OEMStringPtr __attribute__ ((packed));
> unsigned char Capabilities[4] __attribute__ ((packed));
> unsigned long VideoModePtr __attribute__ ((packed));
> unsigned short TotalMemory __attribute__ ((packed));
> unsigned short OemSoftwareRev __attribute__ ((packed));
> unsigned long OemVendorNamePtr __attribute__ ((packed));
> unsigned long OemProductNamePtr __attribute__ ((packed));
> unsigned long OemProductRevPtr __attribute__ ((packed));
> unsigned char Reserved[222] __attribute__ ((packed));
> unsigned char OemData[256] __attribute__ ((packed));
>} VESA_INFO;
>
>__attribute__ ((packed)); what's that
See section 18.5 of the DJGPP FAQ.
HTH. Bye.
nimrod_a_abing
--------------
+========================================+
| Home page: www.geocities.com/n_abing |
+========================================+
ICQ: 54665893
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |