[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: A question on version numbers

From: Alexander L. Belikoff <alexander_at_belikoff.net>
Date: 2004-09-29 13:49:05 CEST

On Friday 24 September 2004 11:19, kfogel@collab.net wrote:
> "Simon Large" <slarge@blazepoint.co.uk> writes:
> > I believe anything except extremely old C dialects guarantees that int is
> > at least 16 bits and long is at least 32 bits. Unfortunately I can't find
> > the official spec right now. 32 bit long was certainly widely used when
> > the PC was a 16 bit machine. Maybe if you are building SVN to run on an
> > 8-bit micro
>
> You're right -- I just misread my ANSI C doc in a dumb way. A long
> int is guaranteed to be at least 32 bits. Sorry for the confusion.

Really?!?! I may be quite wrong, but AFAIR, the *only* thing ANSI C guarantees
is that long int is *no less* in size than int (which, in turn is no less
than short etc etc).

I understand that it may not be an issue here as no one is going to support
SVN on CP/M maching running on Zylog 8080, but relying on certain long size
guarantees tends to bite someone in the a$$ especially when porting to 64 bit
architectures... ;-)

-- 
Alexander L. Belikoff
PGP/GPG fingerprint: 0D58 A804 1AB1 4CD8 8DA9 424B A86E CD0D 8424 2701
(http://pgp5.ai.mit.edu for the key)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 29 15:09:22 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.