#line feature in C preprocessor

utzoo!decvax!duke!mcnc!rlgvax!guy utzoo!decvax!duke!mcnc!rlgvax!guy
Sat Feb 19 03:41:36 AEST 1983


References: sentry1.1425

By the way, re cpp: the V7 "cpy.y" has bugs in the actions for the
!<number>, ~<number>, and -<number> rules: they should read $$ = <op>$2
instead of $$ = <op>$1.  The first two are fixed in the 4.1BSD "cpp", and
the third is fixed in the System III "cpp".  For example, the sequence

#if ((-1)*3) == -3
FOO
#else
BAR
#endif

emits

BAR

on the 4.1BSD "cpp", but

FOO

on the System III "cpp".
					Guy Harris
					RLG Corporation
					...!decvax!mcnc!rlgvax!guy



More information about the Comp.lang.c mailing list