pspp-dev
[Top][All Lists]
Advanced

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

Re: hash locate_matching_entry()


From: Ben Pfaff
Subject: Re: hash locate_matching_entry()
Date: Thu, 09 Oct 2008 20:24:45 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

John Darrington <address@hidden> writes:

> On Wed, Oct 08, 2008 at 10:36:47AM -0400, Jason Stover wrote:
>      John just clarified over IRC that the return value here is supposed to be
>      strcmp-ish: 0 for a match. 
>
> This is why I always encourage people to write 
>
> if ( 0 == strcmp (...)) 
>
> instead of 
>
> if ( !strcmp (...))

Well, with the new hmap and hmapx hash tables, you don't have to
use either form, since they are not based on callback functions
:-)
-- 
"Implementation details are beyond the scope of the Java virtual
 machine specification.  One should not assume that every virtual
 machine implementation contains a giant squid."
--"Mr. Bunny's Big Cup o' Java"




reply via email to

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