summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-05-09 17:08:48 -0700
committerVito Caputo <vcaputo@pengaru.com>2019-05-09 17:08:48 -0700
commitd790fcd8986c93b6c7be4374f6a154ba9e977942 (patch)
tree7a911f92775529ef53b8bec5658ac8a77b567095
parentdbcf483d4069d9f82cf99c4965d05c99cf098165 (diff)
dll: s/dll_(pre|post)/dll_add_(pre|post)/HEADmaster
readability improvement
-rw-r--r--dll.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/dll.h b/dll.h
index 19556d0..966a047 100644
--- a/dll.h
+++ b/dll.h
@@ -102,7 +102,7 @@ static inline dll_t * dll_del(dll_t *node)
/* Insert node immediately before where,
* node is returned for convenience.
*/
-static inline dll_t * dll_pre(dll_t *where, dll_t *node)
+static inline dll_t * dll_add_pre(dll_t *where, dll_t *node)
{
node->next = where;
node->previous = where->previous;
@@ -113,10 +113,10 @@ static inline dll_t * dll_pre(dll_t *where, dll_t *node)
}
-/* Append node immediately after where,
+/* Insert node immediately after where,
* node is returned for convenience.
*/
-static inline dll_t * dll_post(dll_t *where, dll_t *node)
+static inline dll_t * dll_add_post(dll_t *where, dll_t *node)
{
node->next = where->next;
node->previous = where;
© 2021 All Rights Reserved