summaryrefslogtreecommitdiffstats
path: root/generic/tkConfig.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-11 08:49:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-11 08:49:10 (GMT)
commit93c2250b76cfde6cbc1f1401ce8ddbd3a2897399 (patch)
tree7eaf719658cc851ca8f0e2903fd64fad1d4f6948 /generic/tkConfig.c
parent0cbbe5eeb5a312da166ebe21b7800fb47353621b (diff)
downloadtk-93c2250b76cfde6cbc1f1401ce8ddbd3a2897399.zip
tk-93c2250b76cfde6cbc1f1401ce8ddbd3a2897399.tar.gz
tk-93c2250b76cfde6cbc1f1401ce8ddbd3a2897399.tar.bz2
After TIP #481 reaches Tcl9.0, TkGetStringFromObj() becomes obsolete. This commit shows how.
Diffstat (limited to 'generic/tkConfig.c')
-rw-r--r--generic/tkConfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkConfig.c b/generic/tkConfig.c
index b590ab9..a3ccb50 100644
--- a/generic/tkConfig.c
+++ b/generic/tkConfig.c
@@ -663,7 +663,7 @@ DoObjConfig(
}
if (internalPtr != NULL) {
if (valuePtr != NULL) {
- value = TkGetStringFromObj(valuePtr, &length);
+ value = Tcl_GetStringFromObj(valuePtr, &length);
newStr = (char *)ckalloc(length + 1);
strcpy(newStr, value);
} else {