how widespread is this cpp bug?
Gerlach van Beinum
gvb at tnoibbc.UUCP
Fri Dec 2 18:32:00 AEST 1988
One way we use this 'bug' is in Fortran callable C-programs.
Most Fortran implementations in unix make external names
of subroutines and functions by adding an '_' at the end.
So if you want to write a Fortran callable subroutine foo
you have to call it foo_(). You can use the bug in the
following way :
#define F77_TRAILER _
foo/**/F77_TRAILER()
{
....
....
}
By changing the define F77_TRAILER you can remove the
trailer from all the names
Gerlach van Beinum
TNO-IBBC
gvb at tnoibbc
More information about the Comp.lang.c
mailing list