Re: More symbol export stuff -- GCC Visibility patch

David Faure <[email protected]>
Newsgroups gmane.comp.kde.devel.optimize
Organization KDE
Message-ID <[email protected]>
On Sunday 18 July 2004 22:59, Karl Vogel wrote:
> While playing with this symbol stuff.. I noticed that other libs were also 
> exporting way more than needed.
> 
> For instance... libkateinterfaces has exports for all the private methods & 
> private slots of all the classes it implements. 
> 
> I was able to reduce the symbols by manually adding an attribute to the 
> private parts (source parts.. not the other kind :-) ... ie.
> 
> #define HIDE  __attribute__((visibility ("hidden"))
> 
> and then..
> 
>   private:
> 	void methodX() HIDE;

It's already available in KDE, called KDE_NO_EXPORT, see kdelibs/kdecore/kdemacros.h

But I guess it's far from used enough at the moment.

-- 
David Faure, [email protected], sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.