[HACKERS] what is suffix _P in gram.y

2008-01-27 Thread Pavel Stehule
Hello,

is it means  some PostgreSQL specific?

regards

Pavel Stehule

---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings


Re: [HACKERS] what is suffix _P in gram.y

2008-01-27 Thread Martijn van Oosterhout
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   [EMAIL PROTECTED]   http://svana.org/kleptog/
 Those who make peaceful revolution impossible will make violent revolution 
 inevitable.
  -- John F Kennedy


signature.asc
Description: Digital signature


Re: [HACKERS] what is suffix _P in gram.y

2008-01-27 Thread Pavel Stehule
On 27/01/2008, Tom Lane [EMAIL PROTECTED] wrote:
 Pavel Stehule [EMAIL PROTECTED] writes:
  is it means  some PostgreSQL specific?

 I think the original idea was P-for-Parser.  It's just there for tokens
 whose macros would otherwise be likely to collide with other symbols.

 regards, tom lane


ok. unterstand

thank you

Pavel Stehule

---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
   subscribe-nomail command to [EMAIL PROTECTED] so that your
   message can get through to the mailing list cleanly