Subject: Re: how to handle namespace cleanup
To: J.T. Conklin <jtc@cygnus.com>
From: Bakul Shah <bakul@netcom.com>
List: tech-ports
Date: 12/06/1994 17:16:09
> My question is should the function, lets use isinf() for this example,
> be renamed _isinf() and stay in isinf.c, while the indirect symbol
> mapping is put in _isinf.c. Or should isinf.c be moved to _isinf.c,
> isinf() renamed to _isinf(), and the indirect symbol mapping put in
> isinf.c; with the second, the filenames match the functions inside
> them. Or does anyone have any better sugesstions?
Or compile them twice, changing a global define. Something like
#ifdef _EXTERNAL_
asm(" isinf .equ _isinf"); /* add more leading _ to taste */
#else
# ifdef _INTERNAL_
# define isinf _isinf
# endif
isinf(x)
...
{
..
}
#endif
Okay, compile them one more time than they are already compiled!