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

Function cmdq_clear

src/cmd.c:430–442  ·  view source on GitHub ↗

clear all commands from the command queue */

Source from the content-addressed store, hash-verified

428
429/* clear all commands from the command queue */
430void
431cmdq_clear(int q)
432{
433 struct _cmd_queue *tmp = gc.command_queue[q];
434 struct _cmd_queue *tmp2;
435
436 while (tmp) {
437 tmp2 = tmp->next;
438 free(tmp);
439 tmp = tmp2;
440 }
441 gc.command_queue[q] = NULL;
442}
443
444char
445pgetchar(void) /* courtesy of aeb@cwi.nl */

Callers 15

allmain.cFile · 0.85
stop_occupationFunction · 0.85
docallcmdFunction · 0.85
glibrFunction · 0.85
nomulFunction · 0.85
doprayFunction · 0.85
getobjFunction · 0.85
display_inventoryFunction · 0.85
do_lookFunction · 0.85
freedynamicdataFunction · 0.85
do_repeatFunction · 0.85
reset_cmd_varsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected