MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / console_queue_char

Function console_queue_char

tinyemu/jsemu.c:83–91  ·  view source on GitHub ↗

called from JS */

Source from the content-addressed store, hash-verified

81
82/* called from JS */
83void console_queue_char(int c)
84{
85 if (console_fifo_count < sizeof(console_fifo)) {
86 console_fifo[console_fifo_windex] = c;
87 if (++console_fifo_windex == sizeof(console_fifo))
88 console_fifo_windex = 0;
89 console_fifo_count++;
90 }
91}
92
93/* called from JS */
94void display_key_event(int is_down, int key_code)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected