Lines Matching refs:summaryPtr

44     Summary *summaryPtr;		/* First in malloc-ed list of info
231 rootPtr->summaryPtr = NULL;
337 DeleteSummaries(nodePtr->summaryPtr);
360 DeleteSummaries(summaryPtr)
361 register Summary *summaryPtr; /* First in list of node's tag
365 while (summaryPtr != NULL) {
366 nextPtr = summaryPtr->nextPtr;
367 ckfree((char *) summaryPtr);
368 summaryPtr = nextPtr;
1319 register Summary *summaryPtr, *prevPtr;
1348 for (prevPtr = NULL, summaryPtr = nodePtr->summaryPtr;
1349 summaryPtr != NULL;
1350 prevPtr = summaryPtr, summaryPtr = summaryPtr->nextPtr) {
1351 if (summaryPtr->tagPtr == tagPtr) {
1355 if (summaryPtr != NULL) {
1356 summaryPtr->toggleCount += delta;
1357 if (summaryPtr->toggleCount > 0 &&
1358 summaryPtr->toggleCount < tagPtr->toggleCount) {
1361 if (summaryPtr->toggleCount != 0) {
1369 summaryPtr->toggleCount, tagPtr->toggleCount);
1377 nodePtr->summaryPtr = summaryPtr->nextPtr;
1379 prevPtr->nextPtr = summaryPtr->nextPtr;
1381 ckfree((char *) summaryPtr);
1401 summaryPtr = (Summary *) ckalloc(sizeof(Summary));
1402 summaryPtr->tagPtr = tagPtr;
1403 summaryPtr->toggleCount = tagPtr->toggleCount - delta;
1404 summaryPtr->nextPtr = rootNodePtr->summaryPtr;
1405 rootNodePtr->summaryPtr = summaryPtr;
1410 summaryPtr = (Summary *) ckalloc(sizeof(Summary));
1411 summaryPtr->tagPtr = tagPtr;
1412 summaryPtr->toggleCount = delta;
1413 summaryPtr->nextPtr = nodePtr->summaryPtr;
1414 nodePtr->summaryPtr = summaryPtr;
1440 for (prevPtr = NULL, summaryPtr = node2Ptr->summaryPtr;
1441 summaryPtr != NULL;
1442 prevPtr = summaryPtr, summaryPtr = summaryPtr->nextPtr) {
1443 if (summaryPtr->tagPtr == tagPtr) {
1447 if (summaryPtr == NULL) {
1450 if (summaryPtr->toggleCount != tagPtr->toggleCount) {
1463 node2Ptr->summaryPtr = summaryPtr->nextPtr;
1465 prevPtr->nextPtr = summaryPtr->nextPtr;
1467 ckfree((char *) summaryPtr);
1504 register Summary *summaryPtr;
1520 for (summaryPtr = nodePtr->summaryPtr ; summaryPtr != NULL;
1521 summaryPtr = summaryPtr->nextPtr) {
1522 if (summaryPtr->tagPtr == tagPtr) {
1585 register Summary *summaryPtr;
1601 for (summaryPtr = nodePtr->summaryPtr ; summaryPtr != NULL;
1602 summaryPtr = summaryPtr->nextPtr) {
1603 if (summaryPtr->tagPtr == tagPtr) {
1880 register Summary *summaryPtr;
1951 for (summaryPtr = nodePtr->summaryPtr; summaryPtr != NULL;
1952 summaryPtr = summaryPtr->nextPtr) {
1954 (summaryPtr->tagPtr == searchPtr->tagPtr)) {
1971 for (summaryPtr = nodePtr->summaryPtr; summaryPtr != NULL;
1972 summaryPtr = summaryPtr->nextPtr) {
1974 || (summaryPtr->tagPtr == searchPtr->tagPtr)) {
2044 register Summary *summaryPtr;
2143 for (summaryPtr = node2Ptr->summaryPtr; summaryPtr != NULL;
2144 summaryPtr = summaryPtr->nextPtr) {
2146 (summaryPtr->tagPtr == searchPtr->tagPtr)) {
2180 for (summaryPtr = nodePtr->summaryPtr; summaryPtr != NULL;
2181 summaryPtr = summaryPtr->nextPtr) {
2183 || (summaryPtr->tagPtr == searchPtr->tagPtr)) {
2310 register Summary *summaryPtr;
2314 for (summaryPtr = siblingPtr->summaryPtr; summaryPtr != NULL;
2315 summaryPtr = summaryPtr->nextPtr) {
2316 if (summaryPtr->tagPtr == tagPtr) {
2317 toggles += summaryPtr->toggleCount;
2419 register Summary *summaryPtr;
2423 for (summaryPtr = siblingPtr->summaryPtr; summaryPtr != NULL;
2424 summaryPtr = summaryPtr->nextPtr) {
2425 if (summaryPtr->toggleCount & 1) {
2426 IncCount(summaryPtr->tagPtr, summaryPtr->toggleCount,
2546 register Summary *summaryPtr;
2575 for (summaryPtr = nodePtr->summaryPtr; summaryPtr != NULL;
2576 summaryPtr = summaryPtr->nextPtr) {
2577 if (summaryPtr->tagPtr == tagPtr) {
2585 for (summaryPtr = nodePtr->summaryPtr; summaryPtr != NULL;
2586 summaryPtr = summaryPtr->nextPtr) {
2587 if (summaryPtr->tagPtr == tagPtr) {
2588 count += summaryPtr->toggleCount;
2690 register Summary *summaryPtr, *summaryPtr2;
2749 for (summaryPtr = childNodePtr->summaryPtr; summaryPtr != NULL;
2750 summaryPtr = summaryPtr->nextPtr) {
2751 for (summaryPtr2 = nodePtr->summaryPtr; ;
2754 if (summaryPtr->tagPtr->tagRootPtr == nodePtr) {
2758 summaryPtr->tagPtr->name,
2761 if (summaryPtr->tagPtr == summaryPtr2->tagPtr) {
2779 for (summaryPtr = nodePtr->summaryPtr; summaryPtr != NULL;
2780 summaryPtr = summaryPtr->nextPtr) {
2781 if (summaryPtr->tagPtr->toggleCount == summaryPtr->toggleCount) {
2783 summaryPtr->tagPtr->name);
2795 if (segPtr->body.toggle.tagPtr == summaryPtr->tagPtr) {
2804 for (summaryPtr2 = childNodePtr->summaryPtr;
2807 if (summaryPtr2->tagPtr == summaryPtr->tagPtr) {
2813 if (toggleCount != summaryPtr->toggleCount) {
2815 toggleCount, summaryPtr->toggleCount);
2817 for (summaryPtr2 = summaryPtr->nextPtr; summaryPtr2 != NULL;
2819 if (summaryPtr2->tagPtr == summaryPtr->tagPtr) {
2821 summaryPtr->tagPtr->name);
2880 newPtr->summaryPtr = NULL;
2892 newPtr->summaryPtr = NULL;
2940 DeleteSummaries(nodePtr->summaryPtr);
3030 DeleteSummaries(otherPtr->summaryPtr);
3081 register Summary *summaryPtr, *summaryPtr2;
3092 for (summaryPtr = nodePtr->summaryPtr; summaryPtr != NULL;
3093 summaryPtr = summaryPtr->nextPtr) {
3094 summaryPtr->toggleCount = 0;
3119 for (summaryPtr = nodePtr->summaryPtr; ;
3120 summaryPtr = summaryPtr->nextPtr) {
3121 if (summaryPtr == NULL) {
3122 summaryPtr = (Summary *) ckalloc(sizeof(Summary));
3123 summaryPtr->tagPtr = tagPtr;
3124 summaryPtr->toggleCount = 1;
3125 summaryPtr->nextPtr = nodePtr->summaryPtr;
3126 nodePtr->summaryPtr = summaryPtr;
3129 if (summaryPtr->tagPtr == tagPtr) {
3130 summaryPtr->toggleCount++;
3142 for (summaryPtr2 = childPtr->summaryPtr; summaryPtr2 != NULL;
3144 for (summaryPtr = nodePtr->summaryPtr; ;
3145 summaryPtr = summaryPtr->nextPtr) {
3146 if (summaryPtr == NULL) {
3147 summaryPtr = (Summary *) ckalloc(sizeof(Summary));
3148 summaryPtr->tagPtr = summaryPtr2->tagPtr;
3149 summaryPtr->toggleCount = summaryPtr2->toggleCount;
3150 summaryPtr->nextPtr = nodePtr->summaryPtr;
3151 nodePtr->summaryPtr = summaryPtr;
3154 if (summaryPtr->tagPtr == summaryPtr2->tagPtr) {
3155 summaryPtr->toggleCount += summaryPtr2->toggleCount;
3171 for (summaryPtr = nodePtr->summaryPtr; summaryPtr != NULL; ) {
3172 if (summaryPtr->toggleCount > 0 &&
3173 summaryPtr->toggleCount < summaryPtr->tagPtr->toggleCount) {
3174 if (nodePtr->level == summaryPtr->tagPtr->tagRootPtr->level) {
3179 summaryPtr->tagPtr->tagRootPtr = nodePtr->parentPtr;
3181 summaryPtr2 = summaryPtr;
3182 summaryPtr = summaryPtr->nextPtr;
3185 if (summaryPtr->toggleCount == summaryPtr->tagPtr->toggleCount) {
3190 summaryPtr->tagPtr->tagRootPtr = nodePtr;
3193 summaryPtr2->nextPtr = summaryPtr->nextPtr;
3194 ckfree((char *) summaryPtr);
3195 summaryPtr = summaryPtr2->nextPtr;
3197 nodePtr->summaryPtr = summaryPtr->nextPtr;
3198 ckfree((char *) summaryPtr);
3199 summaryPtr = nodePtr->summaryPtr;
3573 register Summary *summaryPtr;
3583 for (summaryPtr = linePtr->parentPtr->summaryPtr; ;
3584 summaryPtr = summaryPtr->nextPtr) {
3585 if (summaryPtr == NULL) {
3592 if (summaryPtr->tagPtr == segPtr->body.toggle.tagPtr) {