ARGSUSED */
(annotPtr)
| 947 | * Results: |
| 948 | * None. |
| 949 | * |
| 950 | * Side effects: |
| 951 | * AnnotPtr will be unlinked from its tree. Note: it is up to the |
| 952 | * caller to free the storage for annotPtr, if that is desired. |
| 953 | * |
| 954 | *---------------------------------------------------------------------- |
| 955 | */ |
| 956 | |
| 957 | /* ARGSUSED */ |
| 958 | void |
| 959 | TkBTreeRemoveAnnotation(annotPtr) |
| 960 | TkAnnotation *annotPtr; /* Pointer to annotation, which must |
| 961 | * have been linked into tree by a previous |
| 962 | * call to TkBTreeAddAnnotation. */ |
| 963 | { |
| 964 | register TkAnnotation *prevPtr; |
| 965 | |
| 966 | if (annotPtr->linePtr->annotPtr == annotPtr) { |
| 967 | annotPtr->linePtr->annotPtr = annotPtr->nextPtr; |
| 968 | } else { |
| 969 | for (prevPtr = annotPtr->linePtr->annotPtr; |
| 970 | /* BUG: fixed by dhopkins, prevPtr was null! |
| 971 | prevPtr->nextPtr != annotPtr; |
| 972 | */ |
| 973 | (prevPtr != NULL) && (prevPtr->nextPtr != annotPtr); |
| 974 | prevPtr = prevPtr->nextPtr) { |
| 975 | /* Empty loop body. */ |
no outgoing calls
no test coverage detected