From b54cb0fd66030635b078a092b056b293baacb64a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 20 May 2008 11:24:09 +0200 Subject: [PATCH] Rename c_list_previous to c_list_prev. --- src/std/c_list.c | 2 +- src/std/c_list.h | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/std/c_list.c b/src/std/c_list.c index bf944f82dd..55a796f479 100644 --- a/src/std/c_list.c +++ b/src/std/c_list.c @@ -267,7 +267,7 @@ c_list_t *c_list_next(c_list_t *list) { /* * Gets the previous element in a c_list. */ -c_list_t *c_list_previous(c_list_t *list) { +c_list_t *c_list_prev(c_list_t *list) { if (list == NULL) { return NULL; } else { diff --git a/src/std/c_list.h b/src/std/c_list.h index ad7aab279d..1f20fcb0fd 100644 --- a/src/std/c_list.h +++ b/src/std/c_list.h @@ -164,16 +164,6 @@ c_list_t *c_list_remove(c_list_t *list, void *data); */ void c_list_free(c_list_t *list); -/** - * Gets the previous element in a c_list. - * - * @param An element in a c_list. - * - * @return The previous element, or NULL if there are no more - * elements. - */ -c_list_t *c_list_previous(c_list_t *list); - /** * Gets the next element in a c_list. * @@ -184,6 +174,16 @@ c_list_t *c_list_previous(c_list_t *list); */ c_list_t *c_list_next(c_list_t *list); +/** + * Gets the previous element in a c_list. + * + * @param An element in a c_list. + * + * @return The previous element, or NULL if there are no more + * elements. + */ +c_list_t *c_list_prev(c_list_t *list); + /** * Gets the number of elements in a c_list *