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

Function dumplogfreemessages

src/pline.c:51–60  ·  view source on GitHub ↗

called during save (unlike the interface-specific message history, this data isn't saved and restored); end-of-game releases saved_plines[] while writing its contents to the final dump log */

Source from the content-addressed store, hash-verified

49 this data isn't saved and restored); end-of-game releases saved_plines[]
50 while writing its contents to the final dump log */
51void
52dumplogfreemessages(void)
53{
54 unsigned i;
55
56 for (i = 0; i < DUMPLOG_MSG_COUNT; ++i)
57 if (gs.saved_plines[i])
58 free((genericptr_t) gs.saved_plines[i]), gs.saved_plines[i] = 0;
59 gs.saved_pline_index = 0;
60}
61#endif
62
63/* keeps windowprocs usage out of pline() */

Callers 1

freedynamicdataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected