Lines Matching refs:lb
208 resize_line(lb, len)
209 struct line *lb;
213 inactive = lb->active - lb->text;
217 if (inactive > lb->alloc * 2)
219 MEMMOVE(lb->text, lb->active, lb->length);
220 lb->alloc += lb->active - lb->text;
221 lb->active = lb->text;
224 if (lb->alloc > len)
228 lb->alloc *= 2;
229 if (lb->alloc < len)
230 lb->alloc = len;
231 if (lb->alloc < INITIAL_BUFFER_SIZE)
232 lb->alloc = INITIAL_BUFFER_SIZE;
234 lb->text = REALLOC(lb->text, inactive + lb->alloc, char);
235 lb->active = lb->text + inactive;