[Doxygen-users] Re: Documentation of Fortran code?
Brought to you by:
dimitri
From: Ole S. <ole...@gm...> - 2001-08-21 07:10:39
|
Hello John! John Sturton wrote: > > >We have used Doxygen to document FORTRAN code by using an INPUT_FILTER > > >to convert the original FORTRAN source to C-style function prototypes. > > Can you send or post me this INPUT_FILTER? > No, sorry I can't. :-( Is it a commercial program, or something you developed internally? > if you do mixed FORTRAN/C programming then you've probably got some > handy script somewhere that automatically creates a header file from > you FORTRAN source code, haven't you? Unfortunately, I don't. I use cfortran.h to mix C and Fortran, and I write the header files necessary by hand. > Dunno - what's cfortran.h?? It is a header file that allows a portable mixing between Fortran-77 and C (C++). http://www-zeus.desy.de/~burow/cfortran It needs that you write for every Fortran function which should be callable by C something like #define MYFUNC(A,B,C) CCALLSFFUN3(MYFUNC, myfunc, INT, STRING, PINT, A, B, C) when the F77 function is like FUNCTION MYFUNC(A, B, C) INTEGER A CHARACTER*(*) B INTEGER C C ... As far as I know, there is no tool available that is able to create the C header file automatically. Is there anything I could use for documentation in such an environment? How difficult is it to add Fortran to doxygen? Tschuessi Ole |