Lines Matching defs:linelen

393   size_t linelen;            /* The max number of characters per line */
395 /* linelen+2. The extra 2 characters are */
1718 * linelen size_t The maximum line length to allow for.
1724 GetLine *new_GetLine(size_t linelen, size_t histlen)
1731 if(linelen < 10) {
1774 gl->linelen = linelen;
1921 gl->line = (char *) malloc(linelen + 2);
1933 gl->cutbuf = (char *) malloc(linelen + 2);
1950 gl->vi.undo.line = (char *) malloc(linelen + 2);
2969 if((gl->insert || buff_curpos >= gl->ntotal) && gl->ntotal >= gl->linelen)
3090 if(gl->ntotal + buff_slen > gl->linelen)
4246 strlcpy(gl->cutbuf, gl->line, gl->linelen);
4278 strlcpy(gl->cutbuf, gl->line + gl->buff_curpos, gl->linelen);
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))
5294 _glh_recall_line(gl->glh, gl->preload_id, gl->line, gl->linelen+1);
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))
5367 if(_glh_find_backwards(gl->glh, gl->line, gl->linelen+1) == NULL)
5428 if(_glh_find_forwards(gl->glh, gl->line, gl->linelen+1) == NULL)
5546 if(gl->ntotal + nextra < gl->linelen) {
5671 if(gl->ntotal + nextra >= gl->linelen) {
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)
7811 strlcpy(gl->vi.undo.line, gl->line, gl->linelen);
7850 strlcpy(undo_ptr, line_ptr, gl->linelen);
7853 strlcpy(line_ptr, undo_ptr, gl->linelen);
8200 if(gl->ntotal >= gl->linelen)
8680 gl->cutbuf, gl->linelen+1)) {
10389 if(_glh_recall_line(gl->glh, gl->preload_id, gl->line, gl->linelen+1)) {
10410 if(start_len > gl->linelen)
10411 start_len = gl->linelen;
11982 if(bufpos >= gl->linelen)
12022 nnew = bufpos + n <= gl->linelen ? n : (gl->linelen - bufpos);
12052 if(gl->ntotal + n > gl->linelen)
12094 * 1 - n > gl->linelen.
12098 if(n > gl->linelen)
12119 for(len=0; len <= gl->linelen && gl->line[len]; len++)
12302 while(gl->ntotal < gl->linelen && c != '\n') {