/usr/lib/fortc/msoft.m4 is in libxgks-dev 2.6.1+dfsg.2-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | divert(-1)
define(`M4__SYSTEM', MICROSOFT)
define(`M4__STRING_DESCRIPTOR_INCLUDES',
`extern long fslen(int); /* returns declared fortran string length of nth arg */
')
# transformation from fortran name to name of C module
define(`NAMEF',`$1`'M4__define(`STR_COUNT',1)') # for microsoft, just use same name
# transformation from string name to corresponding argument name
define(`STRINGF',`$1')
# extra arguments, if any, for string length
define(`STRINGX',`')
# declaration to be used for argument name descriptor
define(`STRINGD',`
char *$1;')
# declarations and initializations of canonical local variables
define(`STRINGL',`
int $1`'_len = fslen(STR_COUNT`'M4__define(`STR_COUNT',incr(STR_COUNT)));') # all strings must be null-terminated
# extra arguments, if any, for argument lengths
define(`REALX',`')
define(`INTEGERX',`')
define(`FUNCTIONX',`')
define(`DOUBLEX',`')
# FORTRAN declaration for a long integer (e.g. integer*4 for Microsoft)
define(`LONG_INT',`integer*4')
# FORTRAN declaration for a short integer (e.g. integer*2)
define(`SHORT_INT',`integer*2')
# FORTRAN declaration for an integer byte (e.g. integer*1 or byte)
define(`BYTE_INT',`integer*1')
# FORTRAN declaration for double precision (e.g. real for a Cray)
define(`DOUBLE_PRECISION',`double precision')
# FORTRAN syntax for including a file
define(`F_INCLUDE',`$include: "$1"')
# interface declarations for C routines to be called, needed for FORTRAN
define(`M4__C_INTERFACE_DECLARATIONS',
`F_INCLUDE(msoft.int)
')
divert(0)dnl
|