delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/28/22:15:29

From: "John M. Aldrich" <fighteer AT cs DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: as internal declarations - gfx demo
Date: Fri, 28 Aug 1998 18:49:36 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 28
Message-ID: <35E73400.CC24A33B@cs.net>
References: <m0zC8dG-000S4xC AT inti DOT gov DOT ar>
NNTP-Posting-Host: ppp206.cs.net
Mime-Version: 1.0
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.

All ANSI guarantees is that sizeof(short) >= 16 bits, and of course
sizeof(unsigned short)==sizeof(short).  For the definitive word on this
subject, consult the comp.lang.c FAQ
(http://www.eskimo.com/~scs/C-faq/top.html).

-- 
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT net>  UIN# 7406319

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? C++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---)
O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++
e(*)>++++ h!() !r !y+()
------END GEEK CODE BLOCK------

- Raw text -


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