summaryrefslogtreecommitdiffstats
path: root/generic/tclStrIdxTree.h
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-05-11 15:07:41 (GMT)
committersebres <sebres@users.sourceforge.net>2017-05-11 15:07:41 (GMT)
commitea1ae51d2d146dc75fd8132f6a7d9b9a24c3cb03 (patch)
tree7ab39c0fcf36a66c5b3e2df1e253e03740cfc88d /generic/tclStrIdxTree.h
parent95d531e781ad6869e929820b306df7206c3f67b8 (diff)
downloadtcl-ea1ae51d2d146dc75fd8132f6a7d9b9a24c3cb03.zip
tcl-ea1ae51d2d146dc75fd8132f6a7d9b9a24c3cb03.tar.gz
tcl-ea1ae51d2d146dc75fd8132f6a7d9b9a24c3cb03.tar.bz2
[clock] tclStrIdxTree extended with possibility to hold client data; also changed in clock - indices starts with 1 instead of 0, and 0(NULL) instead of -1 used as sign of ambiguous keys.
Diffstat (limited to 'generic/tclStrIdxTree.h')
-rw-r--r--generic/tclStrIdxTree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclStrIdxTree.h b/generic/tclStrIdxTree.h
index 305053c..9f26907 100644
--- a/generic/tclStrIdxTree.h
+++ b/generic/tclStrIdxTree.h
@@ -27,9 +27,9 @@ typedef struct TclStrIdx {
struct TclStrIdxTree childTree;
struct TclStrIdx *nextPtr;
struct TclStrIdx *prevPtr;
- Tcl_Obj *key;
- int length;
- int value;
+ Tcl_Obj *key;
+ int length;
+ ClientData value;
} TclStrIdx;
@@ -152,7 +152,7 @@ MODULE_SCOPE const char*
const char *start, const char *end);
MODULE_SCOPE int TclStrIdxTreeBuildFromList(TclStrIdxTree *idxTree,
- int lstc, Tcl_Obj **lstv);
+ int lstc, Tcl_Obj **lstv, ClientData *values);
MODULE_SCOPE Tcl_Obj*
TclStrIdxTreeNewObj();