diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-10 09:55:55 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-10 09:55:55 (GMT) |
commit | 7cbe68b036c355fa147816e3c4fc90265cfab001 (patch) | |
tree | f3b4a9d039ac18997ebf4098ef7972d2995b6a3a /generic/tclTest.c | |
parent | 36181fd044d744aa523b130202dce6e1d453fe58 (diff) | |
download | tcl-7cbe68b036c355fa147816e3c4fc90265cfab001.zip tcl-7cbe68b036c355fa147816e3c4fc90265cfab001.tar.gz tcl-7cbe68b036c355fa147816e3c4fc90265cfab001.tar.bz2 |
Turn Tcl_PkgPresent/Tcl_PkgRequire into a macro.
Make sure that extensions which are compiled using Tcl version 9.0 alpha/beta headers only run with the exact same Tcl version (9.0a0), so they cannot accidently be used in production. Idea 'stolen' from iTcl 4.0, which did that during alpha/beta
Dde/Registry: eliminate usage of some older API, which might be removed/deprecated in the future.
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r-- | generic/tclTest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index dcfe8b0..80a845a 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -521,7 +521,7 @@ Tcltest_Init( } /* TIP #268: Full patchlevel instead of just major.minor */ - if (Tcl_PkgProvide(interp, "Tcltest", TCL_PATCH_LEVEL) == TCL_ERROR) { + if (Tcl_PkgProvideEx(interp, "Tcltest", TCL_PATCH_LEVEL, NULL) == TCL_ERROR) { return TCL_ERROR; } |