MCPcopy Create free account
hub / github.com/NetHack/NetHack / check_windowdata

Function check_windowdata

win/tty/wintty.c:4890–4901  ·  view source on GitHub ↗

* Ensure the underlying status window data start out * blank and null-terminated. */

Source from the content-addressed store, hash-verified

4888 * blank and null-terminated.
4889 */
4890static boolean
4891check_windowdata(void)
4892{
4893 if (WIN_STATUS == WIN_ERR || wins[WIN_STATUS] == (struct WinDesc *) 0) {
4894 paniclog("check_windowdata", " null status window.");
4895 return FALSE;
4896 } else if (!windowdata_init) {
4897 tty_clear_nhwindow(WIN_STATUS); /* also sets cw->data[] to spaces */
4898 windowdata_init = TRUE;
4899 }
4900 return TRUE;
4901}
4902
4903/*
4904 * Return what color this condition should

Callers 1

check_fieldsFunction · 0.85

Calls 2

paniclogFunction · 0.85
tty_clear_nhwindowFunction · 0.85

Tested by

no test coverage detected