summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-09 11:49:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-11-09 11:49:10 (GMT)
commita037934e2165dc52888a2daa656c9e5d5ddc980e (patch)
tree4db6d54f597ef9d005bf14ce9d1381f7edda6372
parent56e7df256a6fc22cd478e4be02a8dca93634e942 (diff)
downloadtcl-a037934e2165dc52888a2daa656c9e5d5ddc980e.zip
tcl-a037934e2165dc52888a2daa656c9e5d5ddc980e.tar.gz
tcl-a037934e2165dc52888a2daa656c9e5d5ddc980e.tar.bz2
Get rid of Tcl_DStringTrunc et al, as described in the TIP (Thanks, Don!).
-rw-r--r--generic/tcl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tcl.h b/generic/tcl.h
index 80c8dcb..54c6b73 100644
--- a/generic/tcl.h
+++ b/generic/tcl.h
@@ -997,7 +997,7 @@ typedef struct Tcl_DString {
#define Tcl_DStringLength(dsPtr) ((dsPtr)->length)
#define Tcl_DStringValue(dsPtr) ((dsPtr)->string)
-#ifndef TCL_NO_DEPRECATED
+#if !defined(TCL_NO_DEPRECATED) && TCL_MAJOR_VERSION < 9
# define Tcl_DStringTrunc Tcl_DStringSetLength
#endif /* !TCL_NO_DEPRECATED */
@@ -2615,7 +2615,7 @@ EXTERN void Tcl_GetMemoryInfo(Tcl_DString *dsPtr);
* Deprecated Tcl functions:
*/
-#ifndef TCL_NO_DEPRECATED
+#if !defined(TCL_NO_DEPRECATED) && TCL_MAJOR_VERSION < 9
/*
* These function have been renamed. The old names are deprecated, but we
* define these macros for backwards compatibilty.