From 778996d725d9f0086d2c515f78938b30cad1d121 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 29 Jul 2007 12:55:25 +0300 Subject: [PATCH] Doxygen: expand INIT_LIST_OF --- src/Doxyfile | 3 ++- src/util/lists.h | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Doxyfile b/src/Doxyfile index 738c3890..eae92538 100644 --- a/src/Doxyfile +++ b/src/Doxyfile @@ -227,7 +227,8 @@ PREDEFINED = "LIST_OF(element_T)=element_T list" \ CONFIG_DEBUG \ CONFIG_UTF8 \ HAVE_VARIADIC_MACROS -EXPAND_AS_DEFINED = +EXPAND_AS_DEFINED = LIST_HEAD \ + INIT_LIST_OF SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- diff --git a/src/util/lists.h b/src/util/lists.h index d1f8fdef..b577c9fc 100644 --- a/src/util/lists.h +++ b/src/util/lists.h @@ -115,11 +115,6 @@ struct xlist_head { #endif /* LISTDEBUG */ -/** Define and initialize a list variable. The @a element_T parameter - * currently serves as documentation only; the compiler does not check - * that it matches. */ -#define INIT_LIST_OF(element_T, x) struct list_head x = { D_LIST_HEAD(x) } - /** A list intended to contain elements of a specific type. The * @a element_T parameter currently serves as documentation only; * the compiler does not check that it matches. Doxyfile defines @@ -127,6 +122,11 @@ struct xlist_head { * diagrams. */ #define LIST_OF(element_T) struct list_head +/** Define and initialize a list variable. The @a element_T parameter + * currently serves as documentation only; the compiler does not check + * that it matches. */ +#define INIT_LIST_OF(element_T, x) LIST_OF(element_T) x = { D_LIST_HEAD(x) } + #ifdef HAVE_TYPEOF #define list_typeof(x) typeof(x) #else