"proper" output from cpp?

Paul Biron pbiron at weber.ucsd.edu
Mon Sep 17 09:05:09 AEST 1990


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 at 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



More information about the Comp.lang.c mailing list