summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-12 11:08:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-12 11:08:18 (GMT)
commit98fc2e08c445e88c982282eba4b2f7da09a583e9 (patch)
treef4cf227e14cdc2994b8c031ecf77513425c1b187 /unix
parent6379f60ed8aca0d3ce1aa00314d5249bf6da6f86 (diff)
downloadtcl-98fc2e08c445e88c982282eba4b2f7da09a583e9.zip
tcl-98fc2e08c445e88c982282eba4b2f7da09a583e9.tar.gz
tcl-98fc2e08c445e88c982282eba4b2f7da09a583e9.tar.bz2
Implement Tcl_Pkg* functions as macro's around Tcl_Pkg*Ex. This saves stack space, is (marginally) faster, while still being fully up/down compatible. It makes pkgb.so loadable in "novem" without the need to change the Tcl_PkgProvide() call to Tcl_PkgProvideEx().
Diffstat (limited to 'unix')
-rw-r--r--unix/dltest/pkgb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/dltest/pkgb.c b/unix/dltest/pkgb.c
index 99f189f..51aaad8 100644
--- a/unix/dltest/pkgb.c
+++ b/unix/dltest/pkgb.c
@@ -124,7 +124,7 @@ Pkgb_Init(interp)
}
Tcl_ResetResult(interp);
}
- code = Tcl_PkgProvideEx(interp, "Pkgb", "2.3", NULL);
+ code = Tcl_PkgProvide(interp, "Pkgb", "2.3");
if (code != TCL_OK) {
return code;
}
@@ -165,7 +165,7 @@ Pkgb_SafeInit(interp)
}
Tcl_ResetResult(interp);
}
- code = Tcl_PkgProvideEx(interp, "Pkgb", "2.3", NULL);
+ code = Tcl_PkgProvide(interp, "Pkgb", "2.3");
if (code != TCL_OK) {
return code;
}