bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Re: gnulib read-file module


From: Daniel Stenberg
Subject: Re: [Bug-wget] Re: gnulib read-file module
Date: Fri, 9 Jul 2010 22:36:04 +0200 (CEST)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

On Fri, 9 Jul 2010, Simon Josefsson wrote:

I don't know how to best resolve this -- GnuTLS contains a dozen of internal functions (mostly from gnulib, like the one you noticed) that cannot be marked 'static' because they are used from multiple .c files in GnuTLS. So they end up being exported into a static library. I suppose almost any non-trivial static library has the same problem. Any suggestions?

I would advice that all non-static global symbols use the regular name-space procedures: you use a prefix for them that are specific for your library. As you say, it doesn't matter that you don't "export" them since in a static lib case they're all basically "exported".

Common approaches are to use "prefix__" (double underscore) for global private functions or "_prefix_" (initial underscore in front of prefix).

--

 / daniel.haxx.se



reply via email to

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