Version scripts for kdelibs
Luciano Montanaro
mikelima at virgilio.it
Wed Oct 22 15:37:56 CEST 2003
I see some work has been done to limit the visibility of internal symbols
in kdelibs.
KJS and KHTM now have version scripts, would it be useful to add version
scripts for kdecore and kdeui, for example?
I think it should be possible to at least hide the *Private classes.
I'm not sure it is worth it, but a simple grep for Private shows 500 hits
in "nm -D libkdecore.so.4.2.0", and probably more symbols could be marked
private too.
in kdemacros.h there is the definition of the KDE_NOEXPORT macro, that is
probably the best solution longer term. I see it redefined in kdefx/kcpuinfo,
shouldn't it include kdemacros instead?
Finally, in my very short investigation, I think I found a couple more classes
that should be safe to hide in KHTML.
If these changes are considered useful, I'd like to work on them.
Luciano
Index: libkhtml.map
===================================================================
RCS file: /home/kde/kdelibs/khtml/libkhtml.map,v
retrieving revision 1.5
diff -p -u -r1.5 libkhtml.map
--- libkhtml.map 19 Jan 2003 23:55:26 -0000 1.5
+++ libkhtml.map 22 Oct 2003 12:31:49 -0000
@@ -15,6 +15,8 @@
vtable*KJS::*;
KJSProxy*;
KJSCPUGuard*;
+ KHTMLViewPrivate::*;
+ KHTMLPartPrivate::*;
khtml::*
};
};
--
- I want a Software Patents Free Europe too! And you? -
--------------------------------------------------------------
EuropeSwPatentFree - http://EuropeSwPatentFree.internautas.org
--------------------------------------------------------------
More information about the Kde-optimize
mailing list