Another incompatibility of a CPPLIB based cpp?
Manfred Hollstein
mhollstein@cygnus.com
Sat Jul 3 07:06:00 GMT 1999
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
More information about the Gcc-bugs
mailing list