| 104 | } |
| 105 | |
| 106 | static void |
| 107 | accProcessed(ListNode *node, void *priv) |
| 108 | { |
| 109 | SolArea *a1 = container_of(node, node, SolArea); |
| 110 | SolArea *a2 = (SolArea*)priv; |
| 111 | |
| 112 | if (!isIntersected(a1->offsetM, a1->M, a2->offsetM, a2->M)) { |
| 113 | a2->M += a1->M; |
| 114 | if (a2->offsetM > a1->offsetM) { |
| 115 | a2->offsetM = a1->offsetM; |
| 116 | } |
| 117 | } |
| 118 | if (!isIntersected(a1->offsetN, a1->N, a2->offsetN, a2->N)) { |
| 119 | a2->N += a1->N; |
| 120 | if (a2->offsetN > a1->offsetN) { |
| 121 | a2->offsetN = a1->offsetN; |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | static int |
| 127 | solAreaCmp(ListNode *a, const void *b) |
nothing calls this directly
no test coverage detected