[daip] ZTRLOG.C

Eric Greisen egreisen at cv3.cv.nrao.edu
Fri Dec 29 13:14:14 EST 2000


A lot of Fortran routines are calling ZTRLOG.C with Fortran character
strings.  Given that this is completely dangerous I am amazed we have
gotten away with it.  (Fortran compilers have to pass the string
lengths as separate hidden arguments and are free to choose where
they put them in the arg list.  This wroks fine for calling other
Fortran that also declare the character string argument correctly, but
does not work to C that knoews nothing about Fortran strings.)  We
have hidden this - it is the usual reason there is a ZXXXXX.FOR and
ZXXXX2.C pair.  The former converts CHARACTER*n to HOLLERITH and
paases that.

I am going to fix - in TST only this bug.  Let's hope that all the
Fortrans are now putting the length args after the other args - many
used to insert them in the list.

This will affect the installation procs.

Eric



More information about the Daip mailing list