| 249 | #endif |
| 250 | |
| 251 | static NhWindow * |
| 252 | GetNhWin(WindowPtr mac_win) |
| 253 | { |
| 254 | if (mac_win == _mt_window) /* term window is still maintained by both |
| 255 | systems, and */ |
| 256 | return theWindows; /* WRefCon still refers to tty struct, so we have |
| 257 | to map it */ |
| 258 | else { |
| 259 | NhWindow *aWin = (NhWindow *) GetWRefCon(mac_win); |
| 260 | if (aWin >= theWindows && aWin < &theWindows[NUM_MACWINDOWS]) |
| 261 | return aWin; |
| 262 | } |
| 263 | return ((NhWindow *) nil); |
| 264 | } |
| 265 | |
| 266 | Boolean |
| 267 | CheckNhWin(WindowPtr mac_win) |
no outgoing calls
no test coverage detected