summaryrefslogtreecommitdiffstats
path: root/generic/tcl.decls
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-10 09:55:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-10 09:55:55 (GMT)
commit7cbe68b036c355fa147816e3c4fc90265cfab001 (patch)
treef3b4a9d039ac18997ebf4098ef7972d2995b6a3a /generic/tcl.decls
parent36181fd044d744aa523b130202dce6e1d453fe58 (diff)
downloadtcl-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/tcl.decls')
-rw-r--r--generic/tcl.decls18
1 files changed, 10 insertions, 8 deletions
diff --git a/generic/tcl.decls b/generic/tcl.decls
index fe1d763..6f46e61 100644
--- a/generic/tcl.decls
+++ b/generic/tcl.decls
@@ -962,10 +962,11 @@ declare 270 {
const char *Tcl_ParseVar(Tcl_Interp *interp, const char *start,
const char **termPtr)
}
-declare 271 {
- const char *Tcl_PkgPresent(Tcl_Interp *interp, const char *name,
- const char *version, int exact)
-}
+# Removed in 9.0, converted to macro
+#declare 271 {
+# const char *Tcl_PkgPresent(Tcl_Interp *interp, const char *name,
+# const char *version, int exact)
+#}
declare 272 {
const char *Tcl_PkgPresentEx(Tcl_Interp *interp,
const char *name, const char *version, int exact,
@@ -977,10 +978,11 @@ declare 273 {
const char *version)
}
# TIP #268: The internally used new Require function is in slot 573.
-declare 274 {
- const char *Tcl_PkgRequire(Tcl_Interp *interp, const char *name,
- const char *version, int exact)
-}
+# Removed in 9.0, converted to macro
+#declare 274 {
+# const char *Tcl_PkgRequire(Tcl_Interp *interp, const char *name,
+# const char *version, int exact)
+#}
declare 275 {
void Tcl_SetErrorCodeVA(Tcl_Interp *interp, va_list argList)
}