diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-03-29 19:40:33 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-03-29 19:40:33 (GMT) |
commit | 60e9b38dfbeb8b382fd60528363fe726331ac4db (patch) | |
tree | 3153ad797c7318cfb8eb5ff6bb81efaf0a83be04 /generic/tclInt.h | |
parent | 5b062d1806f1da051de058a1c426551933fb5952 (diff) | |
download | tcl-60e9b38dfbeb8b382fd60528363fe726331ac4db.zip tcl-60e9b38dfbeb8b382fd60528363fe726331ac4db.tar.gz tcl-60e9b38dfbeb8b382fd60528363fe726331ac4db.tar.bz2 |
Add UTF-16 versions of Tcl_NumUtfChars/Tcl_UtfAtIndex to the stub table. Should have been part of TIP #542. Needed for Tk's "glyph_indexing_2" branch
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index 1eb486e..edd0172 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -4666,12 +4666,12 @@ MODULE_SCOPE const TclFileAttrProcs tclpFileAttrProcs[]; * of counting along a string of all one-byte characters. The ANSI C * "prototype" for this macro is: * - * MODULE_SCOPE void TclNumUtfChars(int numChars, const char *bytes, + * MODULE_SCOPE void TclNumUtfCharsM(int numChars, const char *bytes, * size_t numBytes); *---------------------------------------------------------------- */ -#define TclNumUtfChars(numChars, bytes, numBytes) \ +#define TclNumUtfCharsM(numChars, bytes, numBytes) \ do { \ size_t _count, _i = (numBytes); \ unsigned char *_str = (unsigned char *) (bytes); \ |