MCPcopy Index your code
hub / github.com/NetHack/NetHack / print_queue

Function print_queue

src/timeout.c:2013–2037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2011}
2012
2013staticfn void
2014print_queue(winid win, timer_element *base)
2015{
2016 timer_element *curr;
2017 char buf[BUFSZ];
2018
2019 if (!base) {
2020 putstr(win, 0, " <empty>");
2021 } else {
2022 putstr(win, 0, "timeout id kind call");
2023 for (curr = base; curr; curr = curr->next) {
2024#ifdef VERBOSE_TIMER
2025 Sprintf(buf, " %4ld %4ld %-6s %s(%s)", curr->timeout,
2026 (long) curr->tid, kind_name(curr->kind),
2027 timeout_funcs[curr->func_index].name,
2028 fmt_ptr((genericptr_t) curr->arg.a_void));
2029#else
2030 Sprintf(buf, " %4ld %4ld %-6s #%d(%s)", curr->timeout,
2031 curr->tid, kind_name(curr->kind), curr->func_index,
2032 fmt_ptr((genericptr_t) curr->arg.a_void));
2033#endif
2034 putstr(win, 0, buf);
2035 }
2036 }
2037}
2038
2039/* the #timeout command */
2040int

Callers 1

wiz_timeout_queueFunction · 0.85

Calls 2

kind_nameFunction · 0.85
fmt_ptrFunction · 0.85

Tested by

no test coverage detected