Mail Archives: djgpp/1998/02/08/01:19:37
> If I try to include this in a simple program, gcc complains about the
> use of semicolons in a structure and (it seems) about the use of
> 'BYTE'. Is the above just meant to be a very formal looking piece of
> pseudocode, or can one actually declare bytes and words (2 bytes?) in
> this manner?
BYTE and WORD are not defined be default, so most coders put something
like:
typedef unsigned char byte;
typedef unsigned int word;
In their code for gfx routines. However, in DJGPP, an int is 4 bytes by
default, so you should change the int to a short. byte and word are not
C identifiers, but are holdovers from asm (I think).
--
/*
pneyz / Smoof Team pneyz AT bethany DOT edu
"Fine Malt Coding" http://ns.bethany.edu/pneyz/
*/
- Raw text -