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

Function genl_status_init

src/windows.c:892–906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890boolean status_activefields[MAXBLSTATS];
891
892void
893genl_status_init(void)
894{
895 int i;
896
897 for (i = 0; i < MAXBLSTATS; ++i) {
898 status_vals[i] = (char *) alloc(MAXCO);
899 *status_vals[i] = '\0';
900 status_activefields[i] = FALSE;
901 status_fieldfmt[i] = (const char *) 0;
902 }
903 /* Use a window for the genl version; backward port compatibility */
904 WIN_STATUS = create_nhwindow(NHW_STATUS);
905 display_nhwindow(WIN_STATUS, FALSE);
906}
907
908void
909genl_status_finish(void)

Callers 3

tty_status_initFunction · 0.85
curses_status_initFunction · 0.85
X11_status_initFunction · 0.85

Calls 1

allocFunction · 0.70

Tested by

no test coverage detected