Lines Matching defs:glh

367   GlHistory *glh;            /* The line-history buffer */
1749 gl->glh = NULL;
1887 gl->glh = _new_GlHistory(histlen);
1888 if(!gl->glh)
2055 gl->glh = _del_GlHistory(gl->glh);
5246 if(_glh_search_prefix(gl->glh, gl->line, 0)) {
5247 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
5255 if(_glh_find_backwards(gl->glh, gl->line, gl->linelen+1) == NULL)
5257 while(--count && _glh_find_backwards(gl->glh, gl->line, gl->linelen+1))
5293 if(_glh_line_id(gl->glh, 0) == 0 && gl->preload_id) {
5294 _glh_recall_line(gl->glh, gl->preload_id, gl->line, gl->linelen+1);
5300 if(_glh_search_prefix(gl->glh, gl->line, 0)) {
5301 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
5309 if(_glh_find_forwards(gl->glh, gl->line, gl->linelen+1) == NULL)
5311 while(--count && _glh_find_forwards(gl->glh, gl->line, gl->linelen+1))
5357 if(count >= 0 && !_glh_search_active(gl->glh) &&
5358 _glh_search_prefix(gl->glh, gl->line, gl->buff_curpos +
5360 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
5367 if(_glh_find_backwards(gl->glh, gl->line, gl->linelen+1) == NULL)
5419 if(count >= 0 && !_glh_search_active(gl->glh) &&
5420 _glh_search_prefix(gl->glh, gl->line, gl->buff_curpos +
5422 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
5428 if(_glh_find_forwards(gl->glh, gl->line, gl->linelen+1) == NULL)
6692 if(_glh_oldest_line(gl->glh, gl->line, gl->linelen+1) == NULL)
6732 if(_glh_current_line(gl->glh, gl->line, gl->linelen+1) == NULL)
6804 id = _glh_line_id(gl->glh, 1);
6819 gl->preload_id = _glh_line_id(gl->glh, 1);
8309 _glh_cancel_search(gl->glh);
8341 _glh_cancel_search(gl->glh);
8347 _glh_cancel_search(gl->glh);
8598 if(_glh_save_history(gl->glh, expansion->files[0], comment, max_lines)) {
8599 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
8679 if(_glh_load_history(gl->glh, expansion->files[0], comment,
8681 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
9226 if(_glh_get_group(gl->glh) == id) {
9231 } else if(_glh_set_group(gl->glh, id)) {
9232 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
9301 status = _glh_show_history(gl->glh, _io_write_stdio, fp, fmt, all_groups,
9304 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
9456 status = _glh_resize_history(gl->glh, bufsize);
9458 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
9487 _glh_limit_history(gl->glh, max_lines);
9516 _glh_clear_history(gl->glh, all_groups);
9543 _glh_toggle_history(gl->glh, enable);
9595 status = _glh_lookup_history(gl->glh, (GlhLineID) id, &line->line,
9598 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
9627 _glh_state_of_history(gl->glh, &state->enabled, &state->group,
9656 _glh_range_of_history(gl->glh, &range->oldest, &range->newest,
9686 _glh_size_of_history(gl->glh, &size->size, &size->used);
9708 _glh_show_history(gl->glh, gl_write_fn, gl, "%N %T %H\r\n", 0,
10378 if(_glh_cancel_search(gl->glh)) {
10379 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);
10389 if(_glh_recall_line(gl->glh, gl->preload_id, gl->line, gl->linelen+1)) {
12531 int status =_glh_add_history(gl->glh, line, 0);
12533 _err_record_msg(gl->err, _glh_last_error(gl->glh), END_ERR_MSG);