Lines Matching refs:memcons
23 struct memcons { struct
35 struct memcons memcons = { argument
48 *memcons.output_pos = c; in memcons_putc()
50 new_output_pos = memcons.output_pos + 1; in memcons_putc()
51 if (new_output_pos >= memcons.output_end) in memcons_putc()
52 new_output_pos = memcons.output_start; in memcons_putc()
54 memcons.output_pos = new_output_pos; in memcons_putc()
62 if (*memcons.input_pos) { in memcons_getc_poll()
63 c = *memcons.input_pos; in memcons_getc_poll()
65 new_input_pos = memcons.input_pos + 1; in memcons_getc_poll()
66 if (new_input_pos >= memcons.input_end) in memcons_getc_poll()
67 new_input_pos = memcons.input_start; in memcons_getc_poll()
69 new_input_pos = memcons.input_start; in memcons_getc_poll()
71 *memcons.input_pos = '\0'; in memcons_getc_poll()
73 memcons.input_pos = new_input_pos; in memcons_getc_poll()