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

Function wl_new

src/windows.c:156–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154static struct winlink *chain = 0;
155
156staticfn struct winlink *
157wl_new(void)
158{
159 struct winlink *wl = (struct winlink *) alloc(sizeof *wl);
160
161 wl->nextlink = 0;
162 wl->wincp = 0;
163 wl->linkdata = 0;
164
165 return wl;
166}
167
168staticfn void
169wl_addhead(struct winlink *wl)

Callers 2

addto_windowchainFunction · 0.85
commit_windowchainFunction · 0.85

Calls 1

allocFunction · 0.70

Tested by

no test coverage detected