summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2006-09-22 01:26:21 (GMT)
committerandreas_kupries <akupries@shaw.ca>2006-09-22 01:26:21 (GMT)
commite071f14d95c6a3e37911f58a3ca71da73b6a72d2 (patch)
tree32acbff94cb87475dcf718f476fd8fb8e668cff2 /generic/tclTest.c
parente54225009c1133029084660b54b930783c1fbb94 (diff)
downloadtcl-e071f14d95c6a3e37911f58a3ca71da73b6a72d2.zip
tcl-e071f14d95c6a3e37911f58a3ca71da73b6a72d2.tar.gz
tcl-e071f14d95c6a3e37911f58a3ca71da73b6a72d2.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:
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c7
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;
}