Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"The following is not for the weak of heart or Fundamentalists." -- Dave Barry


devel / comp.std.c / Allowing a 16 bit ptrdiff_t

SubjectAuthor
o Allowing a 16 bit ptrdiff_tPhilipp Klaus Krause

1
Allowing a 16 bit ptrdiff_t

<sgsmf9$l41$1@solani.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=320&group=comp.std.c#320

  copy link   Newsgroups: comp.std.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: pkk...@spth.de (Philipp Klaus Krause)
Newsgroups: comp.std.c
Subject: Allowing a 16 bit ptrdiff_t
Date: Fri, 3 Sep 2021 10:30:14 +0200
Message-ID: <sgsmf9$l41$1@solani.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 3 Sep 2021 08:30:33 -0000 (UTC)
Injection-Info: solani.org;
logging-data="21633"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
X-Mozilla-News-Host: snews://news.solani.org:563
Content-Language: en-US
Cancel-Lock: sha1:J+LOwmN98OTGlDfnDRkhdynAaiU=
X-User-ID: eJwFwYEBwDAEBMCVBP9kHDT2H6F3MB5OOEHHYpWqjXgil+4hE22j7zq4K189FruUmSZ2Nn8FjxBw
 by: Philipp Klaus Krause - Fri, 3 Sep 2021 08:30 UTC

Since C99, ptrdiff_t needs to have at least 17 bit. IMO, this places an
unnecessary burden on 16-bit systems, and should be changed. The problem
was pointed out when the 17 bit requirement was introduced for C99, but
WG14 chose to go ahead anyway. By now time has shown that C compilers
targeting 16-bit systems just ignore that part of the standard, and
continue to use a 16-bit type.

http://www.colecovision.eu/stuff/proposal-ptrdiff.html

Philipp

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor