static _int_malloc et al
Ulrich Drepper
drepper@redhat.com
Tue Jan 7 08:13:00 GMT 2003
Roland McGrath wrote:
> Is there any special reason _int_malloc et al should be static rather than
> just hidden? I anticipate at some point using these routines from another
> part of libc, in the Hurd port at least.
Why wouldn you want to tie yourself to a specific implementation of
malloc? The _int_* functions have no interface which is in any way
universal and should be preserved if the implementation changes.
I've changed the code to use static since the generated code uses tail
calls. This can perhaps be achieved with hidden as well but for the
above reasons I need more convincing.
--
--------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
More information about the Libc-hacker
mailing list