Lines Matching refs:treePtr
131 static void Rebalance _ANSI_ARGS_((BTree *treePtr, Node *nodePtr));
214 register BTree *treePtr;
257 treePtr = (BTree *) ckalloc(sizeof(BTree));
258 treePtr->rootPtr = rootPtr;
259 treePtr->textPtr = textPtr;
261 return (TkTextBTree) treePtr;
273 * The tree given by treePtr is deleted. TreePtr should never
286 BTree *treePtr = (BTree *) tree;
288 DestroyNode(treePtr->rootPtr);
289 ckfree((char *) treePtr);
831 BTree *treePtr = (BTree *) tree;
836 nodePtr = treePtr->rootPtr;
2545 BTree *treePtr = (BTree *) tree;
2558 for (entryPtr = Tcl_FirstHashEntry(&treePtr->textPtr->tagTable, &search);
2615 nodePtr = treePtr->rootPtr;
2616 CheckNodeConsistency(treePtr->rootPtr);
2841 * The internal structure of treePtr may change.
2847 Rebalance(treePtr, nodePtr)
2848 BTree *treePtr; /* Tree that is being rebalanced. */
2886 treePtr->rootPtr = newPtr;
2938 treePtr->rootPtr = nodePtr->children.nodePtr;
2939 treePtr->rootPtr->parentPtr = NULL;
2952 Rebalance(treePtr, nodePtr->parentPtr);
3228 BTree *treePtr = (BTree *) tree;
3229 return treePtr->rootPtr->numLines - 1;