delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/30/02:30:47

From: Adam Brown <adambrown1 AT geocities DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: as internal declarations - gfx demo
Date: Sun, 30 Aug 1998 00:17:04 +0200
Organization: IP Worldcom
Message-ID: <35E87DE0.7123@geocities.com>
References: <m0zC8dG-000S4xC AT inti DOT gov DOT ar>
Reply-To: adambrown1 AT geocities DOT com
NNTP-Posting-Host: portls84.worldcom.ch
Mime-Version: 1.0
Lines: 15
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Salvador Eduardo Tropea (SET) wrote:
> 
> Endlisnis <s257m AT unb DOT ca> wrote:
> > Rylan 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.

Yes it does. But it does not fix a length for int.
es 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

Okay, sorry.

- Raw text -


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