Path: utzoo!attcan!uunet!cs.utexas.edu!usc!ucsd!network.ucsd.edu!weber.ucsd.edu!pbiron From: pbiron@weber.ucsd.edu (Paul Biron) Newsgroups: comp.lang.c Subject: "proper" output from cpp? Message-ID: <2936@network.ucsd.edu> Date: 16 Sep 90 23:05:09 GMT Sender: news@network.ucsd.edu Reply-To: pbiron@weber.ucsd.edu (Paul Biron) Organization: Division of Social Sciences, UCSD Lines: 45 Nntp-Posting-Host: weber.ucsd.edu Hi, Can someone tell me whether this is "proper" output from cpp: % cat << EOF | /lib/cpp #define ABC abc #define XYZ xyz ABC.XYZ EOF # 1 "" abc .xyz Note the extra space AFTER abc and before the '.' This is the output from cpp on the NeXT (v1.0a) [which is based on some version of gcc]. The output on every other machine I can get my hands on (which include an HP 9000/800 series running HP-UX 7.0, a Sun Sparc running SunOS 4.0 and some kind of VAX running 4.3 BSD) is: % cat << EOF | /lib/cpp #define ABC abc #define XYZ xyz ABC.XYZ EOF # 1 "" abc.xyz Is there actually a "proper" output for this kind of use of cpp? Thanx, Paul Biron pbiron@ucsd.edu (619) 534-5758 Central University Library, Mail Code C-075-R Social Sciences DataBase Project University of California, San Diego, La Jolla, Ca. 92093