bug-gnulib
[Top][All Lists]
Advanced

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

Re: use of program_name


From: Dave Love
Subject: Re: use of program_name
Date: Fri, 06 Jan 2006 00:44:39 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.4 (gnu/linux)

Paul Eggert <address@hidden> writes:

> If we put a similar declaration in
> error.c, it would cause two different definitions of program_name, and
> some non-Unix linkers reject this.  (The C Standard allows them to
> reject it.)

Sorry, I thought Unix linkers actually did reject it, which was part
of my problem, but I don't know why I thought so.

I suppose a library could provide the initialization in a separate
object.  But now that I think about it, polluting the namespace with
things like `error' isn't good news, and I should probably try to use
Heimdal's libroken.  And bizarrely-enough, now that I think of it
again, there was a similar issue there with the equivalent
functionality, but without the same interface/compatibility issue.

I think you can ignore me on this anyway.




reply via email to

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