bug-standards
[Top][All Lists]
Advanced

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

Re: Prefixing C function names with ‘_’


From: Ludovic Courtès
Subject: Re: Prefixing C function names with ‘_’
Date: Tue, 26 Sep 2017 09:19:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Richard Stallman <address@hidden> skribis:

>   > > GNU libraries are system libraries, so they should use _ for their
>   > > internal names.  The developers should avoid real conflicts on GNU,
>   > > and on non-GNU systems that they choose to support.  That includes
>   > > coordinating with the libc developers when that is useful.
>
>   > To me the only “system library” in this specific sense would be libc.
>
> We disagree there.
>
>   > Concretely, there’s no discussion taking place between developers
>   > GnuTLS, libguile, or the GNU Scientific Library and libc people before
>   > picking a symbol.
>
> That is a good point -- they ought to coordinate about this.

Right, but (1) it’s unlikely to happen, and (2) on non-GNU systems that
follow POSIX, these GNU libraries could end up with name clashes.

So given that both glibc and POSIX reserve names with leading
underscores, this advice could lead to real problems.

Ludo’.



reply via email to

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