Skip site navigation (1) Skip section navigation (2)

Re: what is suffix _P in gram.y

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: what is suffix _P in gram.y
Date: 2008-01-27 20:27:24
Message-ID: 20080127202724.GA27205@svana.org (view raw or flat)
Thread:
Lists: pgsql-hackers
On Sun, Jan 27, 2008 at 09:10:31PM +0100, Pavel Stehule wrote:
> Hello,
> 
> is it means " some PostgreSQL specific"?

Not really. The main thing is that many symbols in gram.y eventually
get turned into a #define and if the symbol is a normal looking word
that may be used in another context it's common to suffix it with a _P
(the P stands for something but I forget what. Predicate?). That way
you don't run into unexpected surprises when it compiles with other
headers...

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog(at)svana(dot)org>   http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
>  -- John F Kennedy

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2008-01-27 20:33:15
Subject: Re: what is suffix _P in gram.y
Previous:From: Guillaume SmetDate: 2008-01-27 20:11:45
Subject: Re: CLUSTER and synchronized scans and pg_dump et al

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group