From jamie@zfatal.cern.ch Wed Apr  1 20:31:25 1995
Received: from dxmint.cern.ch by dkuug.dk with SMTP id AA01591
  (5.65c8/IDA-1.4.4j for <sc22wg5@dkuug.dk>); Wed, 29 Mar 1995 18:32:06 +0200
Received: from zfatal.cern.ch by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
	id AA03332; Wed, 29 Mar 1995 18:31:27 +0200
Received: by zfatal.cern.ch (AIX 3.2/UCB 5.64/4.03)
          id AA28496; Wed, 29 Mar 1995 18:31:26 +0200
From: jamie@zfatal.cern.ch (Jamie Shiers)
Message-Id: <9503291631.AA28496@zfatal.cern.ch>
Subject: (SC22WG5.783) c preprossor for conditional compilation (fwd)
To: SC22WG5@dkuug.dk
Date: Wed, 29 Mar 1995 18:31:25 +0200 (METDST)
Cc: jamie@zfatal.cern.ch (Jamie Shiers)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1453      
X-Charset: ASCII
X-Char-Esc: 29

> 
> Hi,
> 
> I agree with Jamie that using the c preprossesor is a good idea.
> However, my experience leaves me in doubt whether it is viable.
> In particular when using the c preprossesor for fortran code
> on the Alpha AXP running open VMS I had a rude shock...
>     all spaces where converted to a single space

This is true with DEC C version 4. Apparently, it will be fixed
in DEC C version 5.

Meanwhile, you can get a free public domain C preprocessor
from VXCERN::CERNVAX:[PRO.EXE]FPP.EXE
     VXCERN::CERNAXP:[PRO.EXE]FPP.EXE

(it really is a C preprocessor, even if called FPP).

> 
> I called DEC and was informed that the C standard defines
> this behaviour for the preprocessor.  Clearly this will
> not work for fortran (the first 7 spaces get converted to one
> space.  A line like
>        character* 10 myvar
> 
> gets converted to
>  character* 10 myvar
> 
> Does anyone know for sure what the current C standard says
> about the behaviour of the preprocessor regarding multiple spaces ?

My guru tells me that this behaviour (i.e. collapsing blanks)
is not required by the ANSI standard (but I guess is not prohibited either).

Luckily, we also have the Free Software Foundation...

> 
> Rochelle Lauer
> Yale University High Energy Physics
> 
> 
> 

You can find some information about our plans in

http://asdwww.cern.ch/pl/technical/index.html

although the information is somewhat preliminary and not
very polished.

-- 
Jamie
