Searched refs:linestack (Results 1 - 3 of 3) sorted by relevance
/third_party/toybox/lib/ |
H A D | linestack.c | 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, in linestack_addstack() 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() 44 // Insert one line/len into a linestack at pos 45 void linestack_insert(struct linestack **lls, long pos, char *line, long len) in linestack_insert() 48 // This allocates enough memory for the linestack to have one ptr_len. in linestack_insert() 52 struct linestack l in linestack_insert() [all...] |
H A D | lib.h | 300 // linestack.c 302 struct linestack { struct 307 void linestack_addstack(struct linestack **lls, struct linestack *throw, 309 void linestack_insert(struct linestack **lls, long pos, char *line, long len); 310 void linestack_append(struct linestack **lls, char *line); 311 struct linestack *linestack_load(char *name);
|
/third_party/toybox/porting/liteos_a/lib/ |
H A D | lib.h | 291 // linestack.c 293 struct linestack { struct 298 void linestack_addstack(struct linestack **lls, struct linestack *throw, 300 void linestack_insert(struct linestack **lls, long pos, char *line, long len); 301 void linestack_append(struct linestack **lls, char *line); 302 struct linestack *linestack_load(char *name);
|
Completed in 3 milliseconds