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

Function grep_show_wstack

util/makedefs.c:806–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806static void
807grep_show_wstack(const char *tag)
808{
809 int x;
810
811 if (!grep_trace)
812 return;
813
814 Fprintf(outputfp, "%s w=%d sp=%d\t", tag, grep_writing, grep_sp);
815 for (x = grep_sp; x >= 0 && x > grep_sp - 6; x--) {
816 Fprintf(outputfp, "[%d]=%d ", x, grep_stack[x]);
817 }
818 Fprintf(outputfp, "\n");
819}
820
821static char *
822do_grep_control(char *buf)

Callers 1

do_grep_controlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected