summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-25 08:20:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-25 08:20:31 (GMT)
commitf768cd1df73e1d1801bef8b03e89609d1bb6f885 (patch)
tree8c4f3c6a1559545c092ea0f81baf1a9a7de2d5d0 /generic/tclStringObj.c
parent0dba465244f6e7cc0396e739ead01dd2575aaf2b (diff)
downloadtcl-f768cd1df73e1d1801bef8b03e89609d1bb6f885.zip
tcl-f768cd1df73e1d1801bef8b03e89609d1bb6f885.tar.gz
tcl-f768cd1df73e1d1801bef8b03e89609d1bb6f885.tar.bz2
Put back Tcl_AppendUnicodeToObj()
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index 7cee05d..b5c6520 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -1331,7 +1331,7 @@ Tcl_AppendToObj(
/*
*----------------------------------------------------------------------
*
- * TclAppendUnicodeToObj --
+ * Tcl_AppendUnicodeToObj --
*
* This function appends a Unicode string to an object in the most
* efficient manner possible. Length must be >= 0.
@@ -1346,7 +1346,7 @@ Tcl_AppendToObj(
*/
void
-TclAppendUnicodeToObj(
+Tcl_AppendUnicodeToObj(
Tcl_Obj *objPtr, /* Points to the object to append to. */
const Tcl_UniChar *unicode, /* The unicode string to append to the
* object. */
@@ -1355,7 +1355,7 @@ TclAppendUnicodeToObj(
String *stringPtr;
if (Tcl_IsShared(objPtr)) {
- Tcl_Panic("%s called with shared object", "TclAppendUnicodeToObj");
+ Tcl_Panic("%s called with shared object", "Tcl_AppendUnicodeToObj");
}
if (length == 0) {
@@ -3012,7 +3012,7 @@ TclStringRepeat(
Tcl_AppendObjToObj(objResultPtr, objResultPtr);
done *= 2;
}
- TclAppendUnicodeToObj(objResultPtr, Tcl_GetUnicode(objResultPtr),
+ Tcl_AppendUnicodeToObj(objResultPtr, Tcl_GetUnicode(objResultPtr),
(count - done) * length);
} else {
/*
@@ -4116,7 +4116,7 @@ TclStringReplace(
Tcl_AppendObjToObj(result, insertPtr);
}
if (first + count < (size_t)numChars) {
- TclAppendUnicodeToObj(result, ustring + first + count,
+ Tcl_AppendUnicodeToObj(result, ustring + first + count,
numChars - first - count);
}