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

Function curses_status_init

win/curses/cursstat.c:49–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47#define STATVAL_WIDTH 60 /* overkill; was MAXCO (200), massive overkill */
48
49void
50curses_status_init(void)
51{
52 int i;
53
54 for (i = 0; i < MAXBLSTATS; ++i) {
55 curses_status_colors[i] = NO_COLOR; /* no color and no attributes */
56 status_vals_long[i] = (char *) alloc(STATVAL_WIDTH);
57 *status_vals_long[i] = '\0';
58 }
59 curses_condition_bits = 0L;
60 hpbar_percent = hpbar_crit_hp = 0, hpbar_color = NO_COLOR;
61 vert_status_dirty = 1;
62
63 /* let genl_status_init do most of the initialization */
64 genl_status_init();
65 return;
66}
67
68void
69curses_status_finish(void)

Callers

nothing calls this directly

Calls 2

genl_status_initFunction · 0.85
allocFunction · 0.50

Tested by

no test coverage detected