From: "John M. Aldrich" 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: NNTP-Posting-Host: ppp206.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Salvador Eduardo Tropea (SET) wrote: > > Endlisnis 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 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------