libtool-patches
[Top][All Lists]
Advanced

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

Fwd: libtool ./ChangeLog libltdl/ltdl.c


From: Gary V . Vaughan
Subject: Fwd: libtool ./ChangeLog libltdl/ltdl.c
Date: Fri, 25 Oct 2002 03:34:52 +0100


Begin forwarded message:

From: Gary V. Vaughan <address@hidden>
Date: Fri Oct 25, 2002  2:57:07 AM Europe/London
To: Robert Boehne <address@hidden>
Subject: Re: libtool ./ChangeLog libltdl/ltdl.c

Various (maybe old) compilers define NULL in weird ways, or in weird places, so you can never be sure what you are going to get: ((void *)0), (char *) 0, 0 etc. I seem to recall having encountered a real problem with this many years ago with a C++ compiler that had NULL defined weirdly.

The only sure fire way of not falling foul of these quirks is to use an explicit zero I think. I incorporated that into my programming style several years ago, and had forgotten precisely why until I read:

http://mail.gnu.org/pipermail/libtool-patches/2002-October/002093.html

HTH,
        Gary.

On Friday, October 25, 2002, at 02:28 AM, Robert Boehne wrote:

I didn't think so, maybe there was a similar one
previously?  Regardless, what is the reason for
initializing a pointer with 0 rather than NULL?

Rob


"Gary V. Vaughan" wrote:

Didn't we decide to revert this patch?

On Wednesday, October 23, 2002, at 02:39 AM, Robert Boehne wrote:

CVSROOT:      /cvsroot/libtool
Module name:  libtool
Branch:       branch-1-4
Changes by:   Robert Boehne <address@hidden> 02/10/22 21:39:55

Modified files:
      .              : ChangeLog
      libltdl        : ltdl.c

Log message:
      * libltdl/ltdl.c: Init char * to NULL, not 0. And, for
      some char * values, set *[var] = 0 to *[var] = '0'.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libtool/libtool/
.diff?only_with_tag=branch-1-
4&tr1=ChangeLog&tr2=1.922.2.109&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libtool/libtool/libltdl/
.diff?only_with_tag=branch-1-
4&tr1=ltdl.c&tr2=1.134.2.14&r1=text&r2=text



_______________________________________________
Libtool-commit mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/libtool-commit


   ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
   ( '/  Research Scientist  http://www.oranda.demon.co.uk
,_())____
   / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'
  `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook
=`---d__/

_______________________________________________
Libtool-commit mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/libtool-commit


--
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____ / )= GNU Hacker http://www.gnu.org/software/libtool \' `& `(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/


--
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____ / )= GNU Hacker http://www.gnu.org/software/libtool \' `& `(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/





reply via email to

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