• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tcl_ext/tktreectrl/tktreectrl/generic/

Lines Matching refs:tagInfo

4115     TagInfo *tagInfo,		/* Tag list. May be NULL. */
4122 if (tagInfo == NULL) {
4125 tagInfo = (TagInfo *) TreeAlloc_Alloc(tree->allocData, TagInfoUid,
4128 tagInfo = (TagInfo *) ckalloc(sizeof(TagInfo));
4130 tagInfo->tagSpace = TREE_TAG_SPACE;
4136 tagInfo = (TagInfo *) TreeAlloc_Alloc(tree->allocData, TagInfoUid,
4139 tagInfo = (TagInfo *) ckalloc(TAG_INFO_SIZE(tagSpace));
4141 tagInfo->tagSpace = tagSpace;
4143 tagInfo->numTags = 0;
4146 for (j = 0; j < tagInfo->numTags; j++) {
4147 if (tagInfo->tagPtr[j] == tags[i])
4150 if (j >= tagInfo->numTags) {
4152 if (tagInfo->tagSpace == tagInfo->numTags) {
4153 tagInfo->tagSpace += TREE_TAG_SPACE;
4155 tagInfo = (TagInfo *) TreeAlloc_Realloc(tree->allocData,
4156 TagInfoUid, (char *) tagInfo,
4157 TAG_INFO_SIZE(tagInfo->tagSpace - TREE_TAG_SPACE),
4158 TAG_INFO_SIZE(tagInfo->tagSpace));
4160 tagInfo = (TagInfo *) ckrealloc((char *) tagInfo,
4161 TAG_INFO_SIZE(tagInfo->tagSpace));
4164 tagInfo->tagPtr[tagInfo->numTags++] = tags[i];
4167 return tagInfo;
4189 TagInfo *tagInfo, /* Tag list. May be NULL. */
4196 if (tagInfo == NULL)
4197 return tagInfo;
4199 for (j = 0; j < tagInfo->numTags; j++) {
4200 if (tagInfo->tagPtr[j] == tags[i]) {
4201 tagInfo->tagPtr[j] =
4202 tagInfo->tagPtr[tagInfo->numTags - 1];
4203 tagInfo->numTags--;
4208 if (tagInfo->numTags == 0) {
4209 TagInfo_Free(tree, tagInfo);
4210 tagInfo = NULL;
4212 return tagInfo;
4234 TagInfo *tagInfo, /* Tag list. May be NULL. */
4243 if (tagInfo == NULL)
4245 for (i = 0; i < tagInfo->numTags; i++) {
4246 Tk_Uid tag = tagInfo->tagPtr[i];
4290 TagInfo *tagInfo /* Tag list. May be NULL. */
4295 if (tagInfo != NULL) {
4296 int tagSpace = tagInfo->tagSpace;
4303 memcpy((void *) copy->tagPtr, tagInfo->tagPtr, tagInfo->numTags * sizeof(Tk_Uid));
4304 copy->numTags = tagInfo->numTags;
4329 TagInfo *tagInfo /* Tag list. May be NULL. */
4332 if (tagInfo != NULL)
4334 TreeAlloc_Free(tree->allocData, TagInfoUid, (char *) tagInfo,
4335 TAG_INFO_SIZE(tagInfo->tagSpace));
4337 ckfree((char *) tagInfo);
4350 TagInfo *tagInfo = NULL;
4361 tagInfo = TagInfo_Add(tree, tagInfo, &tag, 1);
4363 *tagInfoPtr = tagInfo;
4370 TagInfo *tagInfo
4376 if (tagInfo == NULL)
4380 for (i = 0; i < tagInfo->numTags; i++) {
4382 Tcl_NewStringObj((char *) tagInfo->tagPtr[i], -1));
4893 TagInfo *tagInfo /* Tags to test. */
4913 if (tagInfo == NULL) {
4915 tagInfo = &dummy;
4920 for (tagPtr = tagInfo->tagPtr, count = tagInfo->numTags;
4946 for (tagPtr = tagInfo->tagPtr, count = tagInfo->numTags;
4964 for (tagPtr = tagInfo->tagPtr, count = tagInfo->numTags;
4976 result = _TagExpr_Eval(expr, tagInfo);
4983 result = _TagExpr_Eval(expr, tagInfo);
5053 TagInfo *tagInfo /* Tags to test. */
5057 return _TagExpr_Eval(expr, tagInfo);