[PATCH] teach show_special() to handle tokens introduced by evaluate_comparison()
commitf8034e0d13215c25bf04660535f5d95e4017eb52
authorAlexander Viro <viro@www.linux.org.uk>
Fri, 13 Aug 2004 02:22:25 +0000 (12 19:22 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Apr 2005 04:02:45 +0000 (7 21:02 -0700)
tree026fb143395e6d8a377ae643d58dbaef1e673d93
parentd77cf76c6941b34eb45dd08ea0aa5febbe07c700
[PATCH] teach show_special() to handle tokens introduced by evaluate_comparison()

Fix handling of replaced comparisons in expression.  We are handling
unsigned comparisons by replacing the expr->op with new special values
(SPECIAL_UNSIGNED_{LT,GT,LTE,GTE}) which works fine, but confuses the
hell out of show_special().  As the result, test-linearize simply
segfaults on any code that contains unsigned comparison.

This patch fixes that by teaching show_special() to handle these guys
and making sure that tokenizer doesn't get confused (it uses the same
set of strings to recognize punctuators).

Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
token.h
tokenize.c