summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-23 16:19:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-23 16:19:54 (GMT)
commitaf426f828e2e3391d7b4ed399040300821a156e9 (patch)
tree1cc50c6ddb1c3fe7d041623fa0e929d70a0c814c /generic/tclInt.h
parent369bc9b1594ea304387a97eef5658a5998699534 (diff)
downloadtcl-af426f828e2e3391d7b4ed399040300821a156e9.zip
tcl-af426f828e2e3391d7b4ed399040300821a156e9.tar.gz
tcl-af426f828e2e3391d7b4ed399040300821a156e9.tar.bz2
Put back TclNumUtfChars() macro as TclNumUtfCharsM()
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 73d6386..3aa2626 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -4768,14 +4768,14 @@ MODULE_SCOPE const TclFileAttrProcs tclpFileAttrProcs[];
*----------------------------------------------------------------
*/
-#define TclNumUtfChars_UNUSED(numChars, bytes, numBytes) \
+#define TclNumUtfCharsM(numChars, bytes, numBytes) \
do { \
int _count, _i = (numBytes); \
unsigned char *_str = (unsigned char *) (bytes); \
while (_i && (*_str < 0xC0)) { _i--; _str++; } \
_count = (numBytes) - _i; \
if (_i) { \
- _count += Tcl_NumUtfChars((bytes) + _count, _i); \
+ _count += TclNumUtfChars((bytes) + _count, _i); \
} \
(numChars) = _count; \
} while (0);