Lines Matching refs:dim

106 static void _glh_return_line(GlhHashNode *hash, char *line, size_t dim);
528 char *_glh_find_backwards(GlHistory *glh, char *line, size_t dim) in _glh_find_backwards() argument
549 if(dim < strlen(line) + 1) { in _glh_find_backwards()
589 _glh_return_line(node->line, line, dim); in _glh_find_backwards()
616 char *_glh_find_forwards(GlHistory *glh, char *line, size_t dim) in _glh_find_forwards() argument
637 if(dim < strlen(line) + 1) { in _glh_find_forwards()
666 _glh_return_line(node->line, line, dim); in _glh_find_forwards()
790 char *_glh_oldest_line(GlHistory *glh, char *line, size_t dim) in _glh_oldest_line() argument
810 if(dim < strlen(line) + 1) { in _glh_oldest_line()
840 _glh_return_line(node->line, line, dim); in _glh_oldest_line()
863 char *_glh_current_line(GlHistory *glh, char *line, size_t dim) in _glh_current_line() argument
883 if(dim < strlen(line) + 1) { in _glh_current_line()
892 _glh_return_line(glh->list.tail->line, line, dim); in _glh_current_line()
954 char *_glh_recall_line(GlHistory *glh, GlhLineID id, char *line, size_t dim) in _glh_recall_line() argument
984 _glh_return_line(node->line, line, dim); in _glh_recall_line()
1154 char *line, size_t dim) in _glh_load_history() argument
1196 for(lineno=1; fgets(line, dim, fp) != NULL; lineno++) { in _glh_load_history()
1246 if(fgets(line, dim, fp) == NULL) in _glh_load_history()
2465 static void _glh_return_line(GlhHashNode *hash, char *line, size_t dim) in _glh_return_line() argument
2469 for(seg=hash->head; dim>0 && seg; seg=seg->next) { in _glh_return_line()
2471 for(i=0; dim>0 && i<GLH_SEG_SIZE; i++,dim--) in _glh_return_line()
2478 if(dim==0) in _glh_return_line()