I'm working on putting NBS into CVS. All trivial *except* that the C
interface and the fortran interface use the same .c file and the same
functions. You compile the fortran bindings by default and the C bindings
with -Dc_string.
How do I get configure to do that? [the mk script makes a copy of the
nbs.c file to nbc.c compiles the nbc.c file with -Dc_string]. I think the
point is that the authors did not want to put an extra layer of
redirection into the fortran interface (which you would get if you just
had a fortran binding .c file that called the C binding). It may simply be
easier to add that intermediate layer now and take the hit since
"computers are fast now". (although simple is still effort since there are
55 functions in nbc.c that need "fixing" and 24 in nbclow.c...)
Alternatively, if you can make a .in file result in two output files with
different switches that would work too.
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|