| 158 | */ |
| 159 | |
| 160 | void |
| 161 | add_rect(NhRect *r) |
| 162 | { |
| 163 | if (rect_cnt >= n_rects) { |
| 164 | impossible("n_rects may be too small."); |
| 165 | return; |
| 166 | } |
| 167 | /* Check that this NhRect is not included in another one */ |
| 168 | if (get_rect(r)) |
| 169 | return; |
| 170 | rect[rect_cnt] = *r; |
| 171 | rect_cnt++; |
| 172 | } |
| 173 | |
| 174 | /* |
| 175 | * Okay, here we have two rectangles (r1 & r2). |
no test coverage detected