clear all commands from the command queue */
| 428 | |
| 429 | /* clear all commands from the command queue */ |
| 430 | void |
| 431 | cmdq_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 | |
| 444 | char |
| 445 | pgetchar(void) /* courtesy of aeb@cwi.nl */ |
no outgoing calls
no test coverage detected