diff options
author | andreas_kupries <akupries@shaw.ca> | 2006-09-22 01:26:21 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2006-09-22 01:26:21 (GMT) |
commit | 2448707dca1d9dffdab99e6db36d47f4ac849c0a (patch) | |
tree | 32acbff94cb87475dcf718f476fd8fb8e668cff2 /generic/tclTest.c | |
parent | 46eeaabac457ed5157a0e04fe91ffb12314230a4 (diff) | |
download | tcl-2448707dca1d9dffdab99e6db36d47f4ac849c0a.zip tcl-2448707dca1d9dffdab99e6db36d47f4ac849c0a.tar.gz tcl-2448707dca1d9dffdab99e6db36d47f4ac849c0a.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.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; } |