(0000200)
bernhardf
05-02-05 10:02
|
I retract this patch (The snippet against xargs would have to be redone proper, awk, sed and possibly other should be converted too).
xlist_t may better be dropped in favour of libbb.h's
typedef struct llist_s {
char *data;
#ifdef LLIST_LENGTH
size_t length;
#endif
struct llist_s *link;
} llist_t;
Also, these should be implemented and perused throughout list-using code, i guess:
extern llist_t *llist_add_to(llist_t *old_head, char *new_item);
extern llist_t *llist_add_to_end(llist_t *list_head, char *data);
extern void llist_free_one(llist_t *llist);
extern void llist_free(llist_t *llist); |