Because dkf (rightfully) only supports accessing
those functions through the stub table, there is
no need to export them from the dll.
dkf wrote in [Tcl Bug #2965424] comments
> I also only support it if it is compiled with
> stub support; people building statically
> are unsupported (and there's certainly no
> ABI migration strategy there in any case)
So, why not make them all MODULE_SCOPE,
then the only way to access them is through
the stub table.
Here is a patch doing that. The genStubs.tcl
modification is taken over from tdbc. It is
influenced as well by Joe english
(see Patch #941042 remarks), so
I guess that Joe and Kevin will
be happy as well about this change.
Related to [Bugs #3064962] Suboptimal linkage of stubbed functions.
Kevin, how is your opinion on this?
re-generated patch against current HEAD
Hmm, minor patching issue, the following hunk fails on tclOO.decls, because there's already a line with "
scspec EXTERN". Should it replace it, or is there something more subtle ?
--- generic/tclOO.decls 5 Mar 2010 15:32:16 -0000 1.7
+++ generic/tclOO.decls 13 Sep 2010 21:18:11 -0000
@@ -8,6 +8,7 @@
interface tclOO
hooks tclOOInt
+scspec TCLOOAPI
declare 0 generic {
Tcl_Object Tcl_CopyObjectInstance(Tcl_Interp *interp,
>Should it replace it, or is there something more subtle ?
The line should be replaced, there is nothing more subtile than that.
Thanks!, I'll see if i can create a new patch.
Uploaded new patch against current trunk
Available now in freq-3010352-impl branch
Patch for TclOO (8.5 version)
Committed to trunk. Also, here is a new patch for
TclOO (8.5 version) doing the same, therefore
re-assigning to dkf.