check whethere is already in xs[],ys[] */
| 376 | |
| 377 | /* check whethere <x,y> is already in xs[],ys[] */ |
| 378 | staticfn boolean |
| 379 | sel_flood_havepoint( |
| 380 | coordxy x, coordxy y, |
| 381 | coordxy xs[], coordxy ys[], |
| 382 | int n) |
| 383 | { |
| 384 | coordxy xx = x, yy = y; |
| 385 | |
| 386 | while (n > 0) { |
| 387 | --n; |
| 388 | if (xs[n] == xx && ys[n] == yy) |
| 389 | return TRUE; |
| 390 | } |
| 391 | return FALSE; |
| 392 | } |
| 393 | |
| 394 | void |
| 395 | selection_floodfill( |
nothing calls this directly
no outgoing calls
no test coverage detected