[Python-Dev] ANSIfication problems: signalmodule.c doesn't compile

Tim Peters tim_one@email.msn.com
Sun, 23 Jul 2000 14:29:56 -0400

[Fredrik Lundh]
> file signalmodule.c, line 146:
> #if RETSIGTYPE != void
>  return 0;
> #endif
> is that really a valid preprocessor expression?

No.  Checked in a fix a few minutes ago.

> if I understand the ANSI specification correctly, it should be
> interpreted as "0 != 0" (in other words, it doesn't quite do what
> the author expected),

No, it's simply not C.  "void" has no meaning at all in a constant integer
expression (which is what must appear after #if).

> but MSVC 5.0 thinks that this is fatal error.

Ditto 6.0, and they're both right <wink>.