summaryrefslogtreecommitdiffstats
path: root/generic/tclStringRep.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclStringRep.h')
-rw-r--r--generic/tclStringRep.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tclStringRep.h b/generic/tclStringRep.h
index 1ef1957..7ad4662 100644
--- a/generic/tclStringRep.h
+++ b/generic/tclStringRep.h
@@ -45,6 +45,8 @@
* can be officially modified by altering the definition of Tcl_UniChar in
* tcl.h, but do not do that unless you are sure what you're doing!
*/
+#define TCL_HAS_UNICODE 1 /* This string has Unicode representation */
+#define TCL_HAS_BIGUNICODE 2 /* This string contains characters > \uffff */
typedef struct {
int numChars; /* The number of chars in the string. -1 means
@@ -57,8 +59,7 @@ typedef struct {
* termination char). */
int maxChars; /* Max number of chars that can fit in the
* space allocated for the unicode array. */
- int hasUnicode; /* Boolean determining whether the string has
- * a Unicode representation. */
+ int flags; /* Combination of TCL_HAS_UNICODE and TCL_HAS_BIGUNICODE */
Tcl_UniChar unicode[1]; /* The array of Unicode chars. The actual size
* of this field depends on the 'maxChars'
* field above. */