This is the mail archive of the
mailing list for the GCC project.
Re: PCH magic numbers
On Tue, Aug 05, 2003 at 07:36:04PM -0700, Devang Patel wrote:
> On Tuesday, August 5, 2003, at 7:19 PM, Phil Edwards wrote:
> >How are the 3 characters at the end of the magic string to be
> >3-digit decimal number, 2-digit hex with a leading zero, ...? Do the
> >have categories like SMTP response codes, or do they just go from 000
> >to 999?
> They represent prog. language. C = 0, Objective-C = 1 and C++ = 2.
No, that's the 5th character, and it's ASCII. I'm talking about
the following 3 characters. Look in gcc/c-pch.c:get_ident().
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
- Brian W. Kernighan