Peter and all,
On 2005 Apr 13 , at 12.06, Peter W. Draper wrote:
>> We could either have a macro STAR_FC_LITERAL_BACKSLASH which adds the
>> FCFLAGS to have backslashes treated literally; or have
>> STAR_FC_LITERAL_BACKSLASH(yes|no) to have them treated literally or
>> not
>> according to whim; or have it so that it simply tests what the
>> compiler
>> is set to do by default and #defines a suitable flag (probably
>> FC_LITERAL_BACKSLASH) in config.h for a .F file to switch on.
>>
> es, I think the latter too. Best to just check what the compiler is
> currently offering and live with that. We could add this to say CNF and
> have a single include file that declares a character constant to be
> '\\'
> or '\' as necessary.
OK, done. See
<http://www.astro.gla.ac.uk/users/norman/star/ssn78/ssn78.htx/N-
x1a1b4.html>
I've done this rather quickly. I've checked it on OSX (where
backslashes escape) and with './configure FC=f77' on Tru64 (where they
don't), and appear to get the correct results in both cases.
Norman
--
----------------------------------------------------------------------
Norman Gray : Physics & Astronomy, Glasgow University, UK
http://www.astro.gla.ac.uk/users/norman/ : www.starlink.ac.uk
|