Re: [HACKERS] s_lock.h busted - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] s_lock.h busted
Date
Msg-id 21939.900963703@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] s_lock.h busted  (dg@illustra.com (David Gould))
List pgsql-hackers
dg@illustra.com (David Gould) writes:
> Arrrrgggghhh!!!!
> These were meant to be in the conditional blocks at the end of the file so
> that if (and only if) no definition existed we would get a default. So:
> #ifndef S_UNLOCK
> #define S_UNLOCK(lock)  (*(lock) = 0)
> #endif
> #ifndef S_INIT_LOCK
> #define S_INIT_LOCK(lock)       S_UNLOCK(lock)
> #endif

Right, but those default definitions were *already there*.

The lines I was complaining about were added immediately after the
default definitions, and overrode *any* prior definition of the macros.
As far as I can see they were just a typo/thinko.

            regards, tom lane

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Finding primary keys in a table
Next
From: David Hartwig
Date:
Subject: Re: [HACKERS] Current sources?