On Mon Jun 14 2010 at 07:00:05 +0000, David Holland wrote: > On Sun, Jun 13, 2010 at 03:17:02PM +0000, Antti Kantee wrote: > > Fix previous in emul.c -- only numbers are operands for cpp comparisons. > > Apparently non-numbers logically produce arch-dependent behaviour. > > Not at all. > > C99 6.10.1 #4: > > [...] After all replacements due to macro expansion and the defined > unary operator have been performed, all remaining identifiers > (including those lexically identical to keywords) are replaced with > the pp-number 0, and then each preprocessing token is converted into > a token. The resulting tokens compose the controlling constant > expression which is evaluated according to the rules of 6.6. [...]
So, you being the person who attempted to write cpp with sed, what comparison does "amd64 == sun3" actually result in? What about "i386 == sun3" (the former returned true, the latter didn't).