This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __* in installed headers


On 06 Aug 1998 08:00:14 -0700, Ulrich Drepper wrote:
>Hi,
>
>Does anybody see a reason why we shouldn't get rid of the __*
>prototypes in the official headers?  The reason is that I found more
>and more cases where people think they should use these functions
>since they are documented.  Of course this will break now that these
>functions are not exported anymore.  [And compiling will be faster
>since fewer symbols have to be kept.]
>
>The solution I have in mind is to move over the __* prototypes to the
>headers in include/ and make sure we search while compiling glibc
>always there first.

I agree with the idea but I don't like your proposed implementation.  It
seems to me it would cause maintenance headaches; we'd need to keep
prototypes in sync between different headers in different directories.  A
tidier way to do it would be to change the wrapper headers in include/ so
they #define the external names to the internal ones before including the
public headers.  (This also enforces use of strong symbols inside the
library.)

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]