Home
last modified time | relevance | path

Searched refs:push_index (Results 1 – 2 of 2) sorted by relevance

/netbsd-src/external/gpl3/gdb/dist/readline/readline/
H A Dinput.c141 static int pop_index, push_index; variable
145 #define any_typein (push_index != pop_index)
156 return (push_index != pop_index); in _rl_pushed_input_available()
164 if (pop_index > push_index) in ibuffer_space()
165 return (pop_index - push_index - 1); in ibuffer_space()
167 return (ibuffer_len - (push_index - pop_index)); in ibuffer_space()
176 if (push_index == pop_index) in rl_get_char()
437 ibuffer[push_index++] = key; in rl_stuff_char()
439 if (push_index >= ibuffer_len) in rl_stuff_char()
441 if (push_index > ibuffer_len) in rl_stuff_char()
[all …]
/netbsd-src/external/gpl2/texinfo/dist/info/
H A Dsession.c4843 static int pop_index = 0, push_index = 0; variable
4853 push_index = pop_index; in info_push_typeahead()
4858 info_input_buffer[push_index++] = key; in info_push_typeahead()
4859 if ((unsigned int) push_index >= sizeof (info_input_buffer)) in info_push_typeahead()
4860 push_index = 0; in info_push_typeahead()
4868 if (pop_index > push_index) in info_input_buffer_space_available()
4869 return (pop_index - push_index); in info_input_buffer_space_available()
4871 return (sizeof (info_input_buffer) - (push_index - pop_index)); in info_input_buffer_space_available()
4880 if (push_index == pop_index) in info_get_key_from_typeahead()
4895 return (push_index != pop_index); in info_any_buffered_input_p()