Lines Matching refs:alloc
193 size_t alloc; /* Number of bytes allocated. */ member
1578 initbuf (struct buffer *buf, size_t line_bytes, size_t alloc) in initbuf() argument
1586 alloc += sizeof (struct line) - alloc % sizeof (struct line); in initbuf()
1587 buf->buf = malloc (alloc); in initbuf()
1590 alloc /= 2; in initbuf()
1591 if (alloc <= line_bytes + 1) in initbuf()
1596 buf->alloc = alloc; in initbuf()
1606 void *linelim = buf->buf + buf->alloc; in buffer_linelim()
1868 size_t line_alloc = buf->alloc / sizeof (struct line); in fillbuf()
1870 buf->alloc = line_alloc * sizeof (struct line); in fillbuf()
2904 size_t alloc = 0; in check() local
2921 if (alloc && nonunique <= compare (&temp, line - 1)) in check()
2950 if (alloc < line->length) in check()
2954 alloc *= 2; in check()
2955 if (! alloc) in check()
2957 alloc = line->length; in check()
2961 while (alloc < line->length); in check()
2964 temp.text = xmalloc (alloc); in check()
3996 buf.alloc = 0; in sort()
4021 if (! buf.alloc) in sort()
4034 < (buf.alloc - buf.used - bytes_per_line * buf.nlines))) in sort()