Path: utzoo!utgpu!watmath!clyde!att!rutgers!apple!bionet!agate!labrea!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!tnoibbc!gvb
From: gvb@tnoibbc.UUCP (Gerlach van Beinum)
Newsgroups: comp.lang.c
Subject: Re: how widespread is this cpp bug?
Keywords: cpp whitespace bug
Message-ID: <953@tnoibbc.UUCP>
Date: 2 Dec 88 08:32:00 GMT
References: <49179@pyramid.pyramid.com> <6625@csli.STANFORD.EDU>
Reply-To: gvb@tnoibbc.UUCP (Gerlach van Beinum)
Organization: Organisation for Applied Scientific Research, IBBC-TNO, The Netherlands
Lines: 31


	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@tnoibbc