Lines Matching refs:top
328 static unsigned long get_error_values(int inc,int top,const char **file,int *line,
732 es->top=(es->top+1)%ERR_NUM_ERRORS;
733 if (es->top == es->bottom)
735 es->err_flags[es->top]=0;
736 es->err_buffer[es->top]=ERR_PACK(lib,func,reason);
737 es->err_file[es->top]=file;
738 es->err_line[es->top]=line;
739 err_clear_data(es,es->top);
753 es->top=es->bottom=0;
791 static unsigned long get_error_values(int inc, int top, const char **file, int *line,
800 if (inc && top)
810 if (es->bottom == es->top) return 0;
811 if (top)
812 i=es->top; /* last error */
1022 ret->top=0;
1057 i=es->top;
1113 if (es->bottom == es->top) return 0;
1114 es->err_flags[es->top]|=ERR_FLAG_MARK;
1124 while(es->bottom != es->top
1125 && (es->err_flags[es->top] & ERR_FLAG_MARK) == 0)
1127 err_clear(es,es->top);
1128 es->top-=1;
1129 if (es->top == -1) es->top=ERR_NUM_ERRORS-1;
1132 if (es->bottom == es->top) return 0;
1133 es->err_flags[es->top]&=~ERR_FLAG_MARK;