Home
last modified time | relevance | path

Searched refs:_unget (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwgetch.c78 for (i = __m_screen->_unget._count - 1; i >= 0; i--) { in iqContainsFullLine()
79 int ch = __m_screen->_unget._stack[i]; in iqContainsFullLine()
91 if (__m_screen->_unget._count >= __m_screen->_unget._size) in iqPush()
93 __m_screen->_unget._stack[__m_screen->_unget._count++] = in iqPush()
102 if (++(__m_screen->_unget._count) >= __m_screen->_unget._size) in iqAdd()
103 __m_screen->_unget._count = __m_screen->_unget._size - 1; in iqAdd()
104 count = __m_screen->_unget._count - 1; in iqAdd()
106 (void) memmove(__m_screen->_unget._stack + 1, in iqAdd()
107 __m_screen->_unget._stack, count * sizeof (int)); in iqAdd()
109 __m_screen->_unget._stack[0] = (int) ch; in iqAdd()
[all …]
H A Dnewterm.c257 sp->_unget._size = __m_decode_init((t_decode **) &sp->_decode); in newterm()
263 if (sp->_unget._size < (M_TYPEAHEAD_SIZE + MB_LEN_MAX)) in newterm()
264 sp->_unget._size = M_TYPEAHEAD_SIZE + MB_LEN_MAX; in newterm()
266 sp->_unget._stack = calloc((size_t) sp->_unget._size, in newterm()
267 sizeof (*sp->_unget._stack)); in newterm()
268 if (sp->_unget._stack == NULL) in newterm()
421 if (sp->_unget._stack != NULL) in delscreen()
422 free(sp->_unget._stack); in delscreen()
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dprivate.h213 #define ISFULL() (__m_screen->_unget._size <= __m_screen->_unget._count)
214 #define ISEMPTY() (__m_screen->_unget._count <= 0)
215 #define DEC() --__m_screen->_unget._count
216 #define INC() __m_screen->_unget._count++
217 #define RESET() __m_screen->_unget._count = 0
218 #define POP() __m_screen->_unget._stack[DEC()]
219 #define PUSH(x) (__m_screen->_unget._stack[INC()] = (x))
H A Dnewterm.c261 sp->_unget._size = __m_decode_init((t_decode **) &sp->_decode);
266 if (sp->_unget._size < MB_LEN_MAX)
267 sp->_unget._size = MB_LEN_MAX;
269 sp->_unget._stack = calloc(
270 (size_t) sp->_unget._size, sizeof *sp->_unget._stack
272 if (sp->_unget._stack == (void *) 0)
409 if (sp->_unget._stack != (int *) 0)
410 free(sp->_unget._stack);
H A Dwgetch.c215 for (i = 0, j = __m_screen->_unget._count; i < --j; ++i) {
216 ch = __m_screen->_unget._stack[i];
217 __m_screen->_unget._stack[i] =
218 __m_screen->_unget._stack[j];
219 __m_screen->_unget._stack[j] = ch;
/illumos-gate/usr/src/cmd/strings/
H A Dstrings.c440 goto _unget;
466 _unget:
/illumos-gate/usr/src/lib/libxcurses2/h/
H A Dcurses.h180 } _unget; member
/illumos-gate/usr/src/lib/libxcurses/h/
H A Dcurses.h177 } _unget; member