bug-grep
[Top][All Lists]
Advanced

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

Re: Use of 0 instead of NULL in src/kwset.c


From: Charles Levert
Subject: Re: Use of 0 instead of NULL in src/kwset.c
Date: Thu, 23 Jun 2005 17:42:10 -0400
User-agent: Mutt/1.4.1i

* On Thursday 2005-06-23 at 08:33:11 -0300, Tony Abou-Assaleh wrote:
> > The rest of GNU grep's source code uses NULL
> > all over the place.  Would anyone be opposed to
> > a 's/0/NULL/g' switch for these pointer values?
> > Are there any portability issues that are not
> > already triggered by the rest of the code?
> 
> Be careful not to replace any integer 0's with NULLs :O)

Duh!   :-)

The whole point would be to bring separation
between the integer 0 case and the NULL
pointer case.  And I want to have as little
as possible to do with that dreaded hungarian
notation to achieve that.  (As my first teacher
of linear algebra used to say regarding the
dubious practice of putting little arrows over
mathematical variables representing vectors:
"we're not here to play cowboys and indians!".)




reply via email to

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