diff options
author | andreas_kupries <andreas_kupries@noemail.net> | 2006-09-22 01:26:20 (GMT) |
---|---|---|
committer | andreas_kupries <andreas_kupries@noemail.net> | 2006-09-22 01:26:20 (GMT) |
commit | 44cc6dd45c93a8c04feeb48ceae17c11dcb71726 (patch) | |
tree | 32acbff94cb87475dcf718f476fd8fb8e668cff2 /generic/tclTest.c | |
parent | ef5c6eb9131915179d1101e7398fca1e09e2e3f2 (diff) | |
download | tcl-44cc6dd45c93a8c04feeb48ceae17c11dcb71726.zip tcl-44cc6dd45c93a8c04feeb48ceae17c11dcb71726.tar.gz tcl-44cc6dd45c93a8c04feeb48ceae17c11dcb71726.tar.bz2 |
* generic/tcl.decls: Implemented TIP #268, conditionally.
* generic/tclBasic.c: Define TCL_TIP268 to activate the new
* generic/tclDecls.h: features.
* generic/tclInt.h:
* generic/tclPkg.c:
* generic/tclStubInit.c:
* generic/tclTest.c:
* library/init.tcl
* library/package.tcl:
* tests/pkg.test:
* tests/platform.test:
* tests/safe.test:
* doc/PkgRequire.3:
FossilOrigin-Name: 78a272c42aaf7c6c9472f55bef7a82605b1cc2c6
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r-- | generic/tclTest.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index 52ab14e..73ef0ab 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclTest.c,v 1.62.2.12 2006/03/19 22:47:29 vincentdarley Exp $ + * RCS: @(#) $Id: tclTest.c,v 1.62.2.13 2006/09/22 01:26:23 andreas_kupries Exp $ */ #define TCL_TEST @@ -548,7 +548,12 @@ Tcltest_Init(interp) "-appinitprocclosestderr", "-appinitprocsetrcfile", (char *) NULL }; +#ifndef TCL_TIP268 if (Tcl_PkgProvide(interp, "Tcltest", TCL_VERSION) == TCL_ERROR) { +#else + /* TIP #268: Full patchlevel instead of just major.minor */ + if (Tcl_PkgProvide(interp, "Tcltest", TCL_PATCH_LEVEL) == TCL_ERROR) { +#endif return TCL_ERROR; } |