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

Re: SVN 1.3.0-rc4 ...for NetWare... builds

From: <kfogel_at_collab.net>
Date: 2005-11-28 00:43:45 CET

Max Bowsher <maxb1@ukf.net> writes:
> I thought that C compilers were supposed to treat undefined macros as
> zero. I've always assumed that the reason autoconf macros usually are
> either 1 or undefined, is so you can safely test them with either #if or
> #ifdef, and get the same result.

My K&R is at the office, but I'm sure you are correct: ISO C89 and
above promise to treat an undefined identifier as zero (this may even
predate C89, I don't know). In fact, if you use a function-like macro
without its arguments, then it also takes the value zero.

Not that I'm against us tweaking Subversion to satisfy Netware's
compiler -- it's a small price to pay for greater portability. Like
crossing when the light is green and ignoring the oncoming car,
there's little reward for being "right" here :-).

-Karl

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 28 02:06:29 2005

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.