delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/04/05:45:19

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Tõnu Aas" <tonu AT ids DOT ee>
Newsgroups: comp.os.msdos.djgpp
References: <baec0bf0 DOT 0403012323 DOT 10896c3 AT posting DOT google DOT com> <esd840d8dde7matafu4vd11bsvagshadkl AT 4ax DOT com> <baec0bf0 DOT 0403020529 DOT 8f42598 AT posting DOT google DOT com> <Xk01c.25898$aZ3 DOT 23018 AT fed1read04> <4045a682$1 AT news DOT infonet DOT ee> <8d4d405go3mm3kvb70drkoat31ukdep52o AT 4ax DOT com>
Subject: Re: 16 bit integers
Date: Thu, 4 Mar 2004 12:32:51 +0200
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: ids.ids.ee
Message-ID: <404705d5$1@news.infonet.ee>
X-Trace: news.infonet.ee 1078396373 ids.ids.ee (4 Mar 2004 12:32:53 +0200)
Organization: INFONET.EE
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> Portable assumptions are: char holds at least 8 bits, int at least 16,
> long at least 32: pick the appropriate size for the range of integers
> you have to deal with. Avoid C99 stdint.h if you want to be portable
> to most existing implementations.

You can create your own stdint.h if "existing implementations" havent one.
Its much easier than using #ifdefs all over you code to maintain
portability.

Tõnu.


- Raw text -


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