From: Bernhard Reutner-Fischer Date: Fri, 26 May 2006 13:54:07 +0000 (-0000) Subject: - move llist to top of file so we can potentially use it in all prototypes easily X-Git-Tag: 1_2_0~299 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8379053b11aa616f47003c33afa44353f4a74f8f;p=oweals%2Fbusybox.git - move llist to top of file so we can potentially use it in all prototypes easily --- diff --git a/include/libbb.h b/include/libbb.h index 928e25d30..82d215bfe 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -79,6 +79,16 @@ #endif +typedef struct llist_s { + char *data; + struct llist_s *link; +} llist_t; +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_pop(llist_t **elm); +extern void llist_free(llist_t *elm, void (*freeit)(void *data)); + + extern void bb_show_usage(void) ATTRIBUTE_NORETURN ATTRIBUTE_EXTERNALLY_VISIBLE; extern void bb_error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); @@ -474,15 +484,6 @@ extern int compare_string_array(const char * const string_array[], const char *k extern int my_query_module(const char *name, int which, void **buf, size_t *bufsize, size_t *ret); -typedef struct llist_s { - char *data; - struct llist_s *link; -} llist_t; -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_pop(llist_t **elm); -extern void llist_free(llist_t *elm, void (*freeit)(void *data)); - extern void print_login_issue(const char *issue_file, const char *tty); extern void print_login_prompt(void);