Lines Matching refs:top
23 if (es->bottom == es->top) in ERR_set_mark()
25 es->err_marks[es->top]++; in ERR_set_mark()
34 if (es == NULL || es->bottom == es->top) in ERR_pop()
37 err_clear(es, es->top, 0); in ERR_pop()
38 es->top = es->top > 0 ? es->top - 1 : ERR_NUM_ERRORS - 1; in ERR_pop()
50 while (es->bottom != es->top in ERR_pop_to_mark()
51 && es->err_marks[es->top] == 0) { in ERR_pop_to_mark()
52 err_clear(es, es->top, 0); in ERR_pop_to_mark()
53 es->top = es->top > 0 ? es->top - 1 : ERR_NUM_ERRORS - 1; in ERR_pop_to_mark()
56 if (es->bottom == es->top) in ERR_pop_to_mark()
58 es->err_marks[es->top]--; in ERR_pop_to_mark()
65 int count = 0, top; in ERR_count_to_mark() local
71 top = es->top; in ERR_count_to_mark()
72 while (es->bottom != top in ERR_count_to_mark()
73 && es->err_marks[top] == 0) { in ERR_count_to_mark()
75 top = top > 0 ? top - 1 : ERR_NUM_ERRORS - 1; in ERR_count_to_mark()
84 int top; in ERR_clear_last_mark() local
90 top = es->top; in ERR_clear_last_mark()
91 while (es->bottom != top in ERR_clear_last_mark()
92 && es->err_marks[top] == 0) { in ERR_clear_last_mark()
93 top = top > 0 ? top - 1 : ERR_NUM_ERRORS - 1; in ERR_clear_last_mark()
96 if (es->bottom == top) in ERR_clear_last_mark()
98 es->err_marks[top]--; in ERR_clear_last_mark()