| 57 | /* Args must be (const genericptr) so that qsort will always be happy. */ |
| 58 | |
| 59 | staticfn int QSORTCALLBACK |
| 60 | mkroom_cmp(const genericptr vx, const genericptr vy) |
| 61 | { |
| 62 | const struct mkroom *x, *y; |
| 63 | |
| 64 | x = (const struct mkroom *) vx; |
| 65 | y = (const struct mkroom *) vy; |
| 66 | if (x->lx < y->lx) |
| 67 | return -1; |
| 68 | return (x->lx > y->lx); |
| 69 | } |
| 70 | |
| 71 | /* is x,y a good location for a door into room? */ |
| 72 | staticfn boolean |
nothing calls this directly
no outgoing calls
no test coverage detected