Lines Matching refs:linestack
6 // A linestack is an array of struct ptr_len, with a currently used len
12 void linestack_addstack(struct linestack **lls, struct linestack *throw,
15 struct linestack *catch = *lls;
24 *lls = xmalloc(sizeof(struct linestack)+catch->max*sizeof(struct ptr_len));
25 memcpy(*lls, catch, sizeof(struct linestack)+pos*sizeof(struct ptr_len));
44 // Insert one line/len into a linestack at pos
45 void linestack_insert(struct linestack **lls, long pos, char *line, long len)
48 // This allocates enough memory for the linestack to have one ptr_len.
52 struct linestack ls;
61 void linestack_append(struct linestack **lls, char *line)
66 struct linestack *linestack_load(char *name)
69 struct linestack *ls;
73 ls = xzalloc(sizeof(struct linestack));