This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Rename pwait for LynxOS


On Tue, 17 Aug 2004 10:16:23 -0400, DJ Delorie <dj@redhat.com> said:
> 
>> 4. pwait is reserved, package does not have the pwait check
> 
> This one is the obvious one.  The other case is that different
> packages have different tests, so sometimes pwait is not reserved by
> libiberty but is by someone else.  It becomes a maintenance nightmare.

Yes but in that case HAVE_PWAIT will not be defined unless the system
reserves pwait too.  And if pwait is reserved by the system the other
package will have to do its own renaming anyway.  So you end up with
three symbols libiberty_pwait for libiberty, other_pwait for the other
package and wait for the libc function.  I don't see what is wrong
with this setup.  Anyway, if that's not what you had in mind please
provide an example.

Adam


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