mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
list: fix formatting
This commit is contained in:
@@ -13,7 +13,7 @@ typedef struct {
|
||||
list_node_t *tail;
|
||||
} list_t;
|
||||
|
||||
#define LIST_INIT_VALUE ((list_t){.head = NULL, .tail = NULL})
|
||||
#define LIST_INIT_VALUE ((list_t) {.head = NULL, .tail = NULL})
|
||||
|
||||
static inline void list_init(list_t *list) {
|
||||
list->head = NULL;
|
||||
@@ -57,7 +57,7 @@ static inline void list_remove(list_t *list, list_node_t *node) {
|
||||
node->next = NULL;
|
||||
}
|
||||
|
||||
static inline list_node_t* list_pop_front(list_t *list) {
|
||||
static inline list_node_t *list_pop_front(list_t *list) {
|
||||
if (list->head == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ static inline list_node_t* list_pop_front(list_t *list) {
|
||||
return node;
|
||||
}
|
||||
|
||||
static inline list_node_t* list_pop_back(list_t *list) {
|
||||
static inline list_node_t *list_pop_back(list_t *list) {
|
||||
if (list->tail == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user