From 6ed4c969f4d646a7751fe2da29ba94eddd3d6477 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 12 Mar 2017 09:35:00 -0700 Subject: Eliminate APP_CC and DEFAULT_CC --- common/list.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'common/list.c') diff --git a/common/list.c b/common/list.c index 71f2d84a..8224c353 100644 --- a/common/list.c +++ b/common/list.c @@ -27,7 +27,7 @@ #include "list.h" /*****************************************************************************/ -struct list *APP_CC +struct list * list_create(void) { struct list *self; @@ -40,7 +40,7 @@ list_create(void) } /*****************************************************************************/ -void APP_CC +void list_delete(struct list *self) { int i; @@ -64,7 +64,7 @@ list_delete(struct list *self) } /*****************************************************************************/ -void APP_CC +void list_add_item(struct list *self, tbus item) { tbus *p; @@ -85,7 +85,7 @@ list_add_item(struct list *self, tbus item) } /*****************************************************************************/ -tbus APP_CC +tbus list_get_item(const struct list *self, int index) { if (index < 0 || index >= self->count) @@ -97,7 +97,7 @@ list_get_item(const struct list *self, int index) } /*****************************************************************************/ -void APP_CC +void list_clear(struct list *self) { int i; @@ -119,7 +119,7 @@ list_clear(struct list *self) } /*****************************************************************************/ -int APP_CC +int list_index_of(struct list *self, tbus item) { int i; @@ -136,7 +136,7 @@ list_index_of(struct list *self, tbus item) } /*****************************************************************************/ -void APP_CC +void list_remove_item(struct list *self, int index) { int i; @@ -159,7 +159,7 @@ list_remove_item(struct list *self, int index) } /*****************************************************************************/ -void APP_CC +void list_insert_item(struct list *self, int index, tbus item) { tbus *p; @@ -197,7 +197,7 @@ list_insert_item(struct list *self, int index, tbus item) /*****************************************************************************/ /* append one list to another using strdup for each item in the list */ /* begins copy at start_index, a zero based index on the source list */ -void APP_CC +void list_append_list_strdup(struct list *self, struct list *dest, int start_index) { int index; @@ -213,7 +213,7 @@ list_append_list_strdup(struct list *self, struct list *dest, int start_index) } /*****************************************************************************/ -void APP_CC +void list_dump_items(struct list *self) { int index; -- cgit v1.2.1