Lines Matching refs:lls
12 void linestack_addstack(struct linestack **lls, struct linestack *throw, in linestack_addstack() argument
15 struct linestack *catch = *lls; in linestack_addstack()
24 *lls = xmalloc(sizeof(struct linestack)+catch->max*sizeof(struct ptr_len)); in linestack_addstack()
25 memcpy(*lls, catch, sizeof(struct linestack)+pos*sizeof(struct ptr_len)); in linestack_addstack()
30 memmove((*lls)->idx+pos+throw->len, catch->idx+pos, in linestack_addstack()
34 if (catch != *lls) { in linestack_addstack()
36 catch = *lls; in linestack_addstack()
45 void linestack_insert(struct linestack **lls, long pos, char *line, long len) in linestack_insert() argument
58 linestack_addstack(lls, &ls.ls, pos); in linestack_insert()
61 void linestack_append(struct linestack **lls, char *line) in linestack_append() argument
63 linestack_insert(lls, (*lls)->len, line, strlen(line)); in linestack_append()