Re: odd use of preprocessor

2011-11-07 Thread Alex Rønne Petersen
On 06-11-2011 21:36, Ellery Newcomer wrote: On 11/06/2011 01:50 PM, Alex Rønne Petersen wrote: On 06-11-2011 20:43, Ellery Newcomer wrote: poking about in elfutils headers, I've come across the following idiom several times /* Error values. */ enum { DW_TAG_invalid = 0 #define

Re: odd use of preprocessor

2011-11-06 Thread Alex Rønne Petersen
On 06-11-2011 20:43, Ellery Newcomer wrote: poking about in elfutils headers, I've come across the following idiom several times /* Error values. */ enum { DW_TAG_invalid = 0 #define DW_TAG_invalid DW_TAG_invalid }; anyone know if anything strange is going on here that would

Re: odd use of preprocessor

2011-11-06 Thread Ellery Newcomer
On 11/06/2011 01:50 PM, Alex Rønne Petersen wrote: On 06-11-2011 20:43, Ellery Newcomer wrote: poking about in elfutils headers, I've come across the following idiom several times /* Error values. */ enum { DW_TAG_invalid = 0 #define DW_TAG_invalid DW_TAG_invalid };

Re: odd use of preprocessor

2011-11-06 Thread Michel Fortin
On 2011-11-06 19:43:15 +, Ellery Newcomer ellery-newco...@utulsa.edu said: /* Error values. */ enum { DW_TAG_invalid = 0 #define DW_TAG_invalid DW_TAG_invalid }; It's strange all right. The only reason I can come with is that they want to prevent someone else from defining