bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext 0.10.40 compatibility problem with Solaris 8 + gcc + Bash


From: Paul Jarc
Subject: Re: gettext 0.10.40 compatibility problem with Solaris 8 + gcc + Bash
Date: Fri, 09 Nov 2001 17:33:56 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

Paul Eggert <address@hidden> wrote:
> From: Bruno Haible <address@hidden>
>>> #if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined 
>>> __cplusplus || PROTOTYPES
>>
>> The problem with this is that 'PROTOTYPES' is an identifier in the
>> user's namespace....
>> Actually I must also protect the PARAMS macro.
>
> Ah.  I was confused by PARAMS into thinking that I was in the user's
> namespace.
>
> OK, how about appending '|| __PROTOTYPES' instead?  That won't stomp
> on the user's namespace.

Instead, it'll stomp on the C implementation's namespace.

Since C doesn't reserve any part of the namespace for third-party
library implementors, the least intrusive thing a library can do is to
take a well-defined chunk out of the user's namespace - i.e., use a
prefix like myproject_ for *all* externally-visible identifiers.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]