libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coverage for libltdl/slist.c and fallout


From: Bob Friesenhahn
Subject: Re: Coverage for libltdl/slist.c and fallout
Date: Mon, 30 Nov 2009 14:06:17 -0600 (CST)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Mon, 30 Nov 2009, Gary V. Vaughan wrote:

IIRC, it was trying to build libltdl with some old C++ compiler (maybe
Solaris 7 or so, but I don't recall clearly) which complained about the
use of NULL which drove me to using '0' in slist.c.  I googled for
NULL vs 0, and it seems there it has become a religious issue.

The definition of NULL in system headers has been inconsistent and sometimes the definition of NULL is not so friendly for C++. However, both C and C++ will consistently accept 0 both to initialize and compare with a pointer value.

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]