Lines Matching refs:max_lines

196   int max_lines;       /* Either -1 or a ceiling on the number of lines */
286 glh->max_lines = -1;
421 if(!glh->enable || !glh->buffer || glh->max_lines == 0)
453 if(glh->max_lines >= 0) {
458 while(glh->nline > 0 && glh->nline >= glh->max_lines)
464 if(glh->max_lines == 0)
546 if(!glh->enable || !glh->buffer || glh->max_lines == 0)
634 if(!glh->enable || !glh->buffer || glh->max_lines == 0)
753 if(!glh->enable || !glh->buffer || glh->max_lines == 0)
807 if(!glh->enable || !glh->buffer || glh->max_lines == 0)
880 if(!glh->enable || !glh->buffer || glh->max_lines == 0 || !glh->recall)
923 if(!glh->enable || !glh->buffer || glh->max_lines == 0)
962 if(!glh->enable || !glh->buffer || glh->max_lines == 0)
1002 * max_lines int The maximum number of lines to save, or -1
1010 int max_lines)
1042 if(max_lines >= 0) {
1043 for(head=glh->list.tail; head && --max_lines > 0; head=head->prev)
1451 * max_lines int If max_lines is < 0, all available lines
1453 * recent max_lines lines will be displayed.
1459 const char *fmt, int all_groups, int max_lines)
1507 if(max_lines < 0) {
1509 } else if(max_lines==0) {
1513 if((all_groups || oldest->group == glh->group) && --max_lines <= 0)
1752 * max_lines int The maximum number of lines to allow, or -1 to
1756 void _glh_limit_history(GlHistory *glh, int max_lines)
1763 if(max_lines >= 0 && max_lines != glh->max_lines) {
1766 * list, or until we have seen max_lines lines (at which point 'node'
1767 * will be line number max_lines+1).
1771 for(node=glh->list.tail; node && ++nline <= max_lines; node=node->prev)
1789 glh->max_lines = max_lines;
2069 * max_lines int * The currently requested limit on the number
2074 int *max_lines)
2081 if(max_lines)
2082 *max_lines = glh->max_lines;