summaryrefslogtreecommitdiffstats
path: root/generic/tclPkg.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-12 11:27:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-12 11:27:37 (GMT)
commit40691feec1993222d76235c047d25b488d08310b (patch)
tree2493f0dc8127e59b48881d4e4108ebb93a38ba22 /generic/tclPkg.c
parent0af5420032e18a434670faed6ce8a932fc1a5b28 (diff)
parent05aa6581cccb3435b6e1e24b98d0f6f5a9df56eb (diff)
downloadtcl-40691feec1993222d76235c047d25b488d08310b.zip
tcl-40691feec1993222d76235c047d25b488d08310b.tar.gz
tcl-40691feec1993222d76235c047d25b488d08310b.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 'generic/tclPkg.c')
-rw-r--r--generic/tclPkg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclPkg.c b/generic/tclPkg.c
index 07f62a4..df90cea 100644
--- a/generic/tclPkg.c
+++ b/generic/tclPkg.c
@@ -949,7 +949,7 @@ Tcl_PackageObjCmd(
version = TclGetString(objv[3]);
}
}
- Tcl_PkgPresent(interp, name, version, exact);
+ Tcl_PkgPresentEx(interp, name, version, exact, NULL);
return TCL_ERROR;
break;
}
@@ -974,7 +974,7 @@ Tcl_PackageObjCmd(
if (CheckVersionAndConvert(interp, argv3, NULL, NULL) != TCL_OK) {
return TCL_ERROR;
}
- return Tcl_PkgProvide(interp, argv2, argv3);
+ return Tcl_PkgProvideEx(interp, argv2, argv3, NULL);
case PKG_REQUIRE:
require:
if (objc < 3) {