delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/28/13:58:46

Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: Endlisnis <s257m AT unb DOT ca>
Date: Fri, 28 Aug 1998 18:56:57 +0000
MIME-Version: 1.0
Subject: Re: as internal declarations - gfx demo
Reply-to: george DOT foot AT merton DOT oxford DOT ac DOT uk
CC: djgpp AT delorie DOT com
Message-Id: <E0zCSn7-0005A4-00@sable.ox.ac.uk>

On 28 Aug 98 at 11:11, Endlisnis wrote:

> Salvador Eduardo Tropea (SET) wrote:
> > > > Hi,
> > > > I translated these to C include files, using "unsigned
> > > > int" for "dw" and "unsigned char" for "db" like it was used for NASM.
> > >     IMPORTANT:  "unsigned int" is 32-bits!!   You should put "unsinged short",
> > > that is 16-bits (int all ANSI C versions).
> > I think ANSI-C doesn't imply unsigned short == 16 bits.
> 	What does ANSI-C say about all varaible sizes?

"long" is at least as wide as "int", which is at least as wide as 
"short".  In addition, "short" is at least 16 bits wide and "long" is 
at least 32 bits wide.

    16 bits  <=  short  <=  int  <=  long  >=  32 bits

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019