[16866] in Athena Bugs
Re: IRIX cpp
daemon@ATHENA.MIT.EDU (Robert A Basch)
Fri May 28 09:36:00 1999
Date: Fri, 28 May 1999 09:35:53 -0400
Message-Id: <199905281335.JAA02058@kiko.mit.edu>
From: Robert A Basch <rbasch@MIT.EDU>
To: Joseph Sokol-Margolis <seph@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: "[16865] in Athena Bugs"
The IRIX cpp doesn't recognize elif; from the cpp man page:
cpp is a K&R C language preprocessor designed for standalone use and to
be invoked as the first pass of all FORTRAN compilations and any K&R mode
C compilation with the -mp option. Thus, cpp's output is designed to be
in a form acceptable as input to the next pass of the C compiler.
Standalone use of cpp on C code is not suggested, since the functionality
of cpp has been incorporated into the C front-end. See m4(1) for a more
general macro processor.
This is a K&R C language preprocessor, not an ISO/ANSI C language
preprocessor: it is useful for those needing the old preprocessor. The #
operator, sometimes called the stringize operator, is not recognized as
such by cpp. The ## operator, sometimes called the pasting operator, is
not recognized as such by cpp. And the #elif command is not recognized
by cpp. There are other differences between this and ISO/ANSI C
preprocessors.
Bob