Re: [HACKERS] Scanner/Parser question - what does _P imply?

2007-01-25 Thread Jan Wieck
On 1/18/2007 10:35 AM, Tom Lane wrote: [EMAIL PROTECTED] writes: Many of the keywords listed in keywords.c are defined with symbolic names that end in '_P' (underscore P). What differentiates those keywords from the other keywords? What does the 'P' stand for? P = Parser. The reason for the

Re: [HACKERS] Scanner/Parser question - what does _P imply?

2007-01-25 Thread korryd
Some years ago there was discussion of consistently P-ifying *all* those macros, but it didn't get done; I think Thomas or somebody objected that it would make gram.y needlessly harder to read. Are there many people who read gram.y on a regular base? I can't seem to put it down :-)

[HACKERS] Scanner/Parser question - what does _P imply?

2007-01-18 Thread korryd
I can't find an authoritative answer to this question. Many of the keywords listed in keywords.c are defined with symbolic names that end in '_P' (underscore P). What differentiates those keywords from the other keywords? What does the 'P' stand for? Are those PostgreSQL-specific keywords

Re: [HACKERS] Scanner/Parser question - what does _P imply?

2007-01-18 Thread Tom Lane
[EMAIL PROTECTED] writes: Many of the keywords listed in keywords.c are defined with symbolic names that end in '_P' (underscore P). What differentiates those keywords from the other keywords? What does the 'P' stand for? P = Parser. The reason for the _P is just to avoid conflicts with

Re: [HACKERS] Scanner/Parser question - what does _P imply?

2007-01-18 Thread korryd
P = Parser. The reason for the _P is just to avoid conflicts with other definitions of the macro name, either in our own code or various platforms' header files. We haven't been totally consistent about it, but roughly speaking we've stuck _P on when it was either known or seemed likely