This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Another incompatibility of a CPPLIB based cpp?
- To: Zack Weinberg <zack at rabi dot columbia dot edu>, egcs-bugs at egcs dot cygnus dot com
- Subject: Another incompatibility of a CPPLIB based cpp?
- From: Manfred Hollstein <mhollstein at cygnus dot com>
- Date: Sat, 3 Jul 1999 15:59:11 +0200 (MEST)
- Reply-To: Manfred Hollstein <mhollstein at cygnus dot com>, Manfred Hollstein <manfred dot h at gmx dot net>
Zack,
I used to generate my window manager's rc files depending on various
stuff, e.g. the screen's geometry...
The following file when preprocessed using the old cccp.c based
preprocessor produces a "reasonable" output that is understood by
fvwm* and its modules:
/* foo - preprocess with: `gcc --print-file-name=cpp` foo */
#define GEOM_doit(w,h,x_pos,y_pos) w##x##h##x_pos##y_pos
#define GEOM(w,h,x_pos,y_pos) GEOM_doit(w,h,x_pos,y_pos)
#define APP_YPOS -0
*FvwmButtonsGeometry GEOM(210,70,-108,APP_YPOS)
/* END of foo. */
This is from the "old" cccp based preprocessor:
# 1 "foo"
*FvwmButtonsGeometry 210x70-108-0
While this is produced by the cpplib based preprocessor:
# 1 "foo"
*FvwmButtonsGeometry 210x70-108 -0
Note the ' ' before the -0 in the last line! Do you know which one is
correct, or do you know a work-around?
Thanks,
manfred