cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Patrick: Diff for /curl/lib/url.c between version 1.656 and 1.657

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Tue, 16 Oct 2007 19:18:47 +0200

 

> I thought size_t was always unsigned? It seems to be on the systems I
use (aix/linux/solaris/irix). For signed there's ssize_t.
> -Tor

It seems it's the case for most systems (probably a POSIX definition).
However I found many code snippets on the internet assuming that
"braindead systems" (named as such!) may have size_t signed.
You can find two of these examples at
http://www.xs4all.nl/~borkhuis/vxworks/malloc.h and
http://trac.mcs.anl.gov/projects/parallel-netcdf/browser/trunk/src/lib/m
pinetcdf.c?format=txt

Personnally, I cannot name one of those "braindead systems"... But I
only use Linux, Cygwin (both with gcc) and OS400 (IBM C compiler).

There are many trolls on the internet about this subject and I would'nt
start another. It may be wise to delegate the decision of supporting
size_t as a signed type to someone who has a wide vision of the current
platform set supporting curl... Daniel/DanF/... ?
Received on 2007-10-16