From 7ff074d609d769f888168eec4d63a45bbec8be98 Mon Sep 17 00:00:00 2001 From: Michael Bentley Date: Fri, 11 Oct 2019 08:35:54 -0600 Subject: [PATCH 1/2] list.h: rename variable to not be a C++ keyword --- src/list.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/list.h b/src/list.h index 4fd482b..86b96e4 100644 --- a/src/list.h +++ b/src/list.h @@ -132,12 +132,12 @@ _ccd_inline int ccdListEmpty(const ccd_list_t *head) return head->next == head; } -_ccd_inline void ccdListAppend(ccd_list_t *l, ccd_list_t *new) +_ccd_inline void ccdListAppend(ccd_list_t *l, ccd_list_t *new_list) { - new->prev = l->prev; - new->next = l; - l->prev->next = new; - l->prev = new; + new_list->prev = l->prev; + new_list->next = l; + l->prev->next = new_list; + l->prev = new_list; } _ccd_inline void ccdListDel(ccd_list_t *item) From 92ad69fa72fd27e1263e78ac195a70703da2f38d Mon Sep 17 00:00:00 2001 From: Michael Bentley Date: Fri, 11 Oct 2019 08:51:33 -0600 Subject: [PATCH 2/2] list.h: rename new_list -> new_item --- src/list.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/list.h b/src/list.h index 86b96e4..5b15ece 100644 --- a/src/list.h +++ b/src/list.h @@ -132,12 +132,12 @@ _ccd_inline int ccdListEmpty(const ccd_list_t *head) return head->next == head; } -_ccd_inline void ccdListAppend(ccd_list_t *l, ccd_list_t *new_list) +_ccd_inline void ccdListAppend(ccd_list_t *l, ccd_list_t *new_item) { - new_list->prev = l->prev; - new_list->next = l; - l->prev->next = new_list; - l->prev = new_list; + new_item->prev = l->prev; + new_item->next = l; + l->prev->next = new_item; + l->prev = new_item; } _ccd_inline void ccdListDel(ccd_list_t *item)