1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Doxygen: expand INIT_LIST_OF

This commit is contained in:
Kalle Olavi Niemitalo 2007-07-29 12:55:25 +03:00 committed by Witold Filipczyk
parent d524b6ee6d
commit 3eb4b8cecb
2 changed files with 7 additions and 6 deletions

View File

@ -227,7 +227,8 @@ PREDEFINED = "LIST_OF(element_T)=element_T list" \
CONFIG_DEBUG \ CONFIG_DEBUG \
CONFIG_UTF8 \ CONFIG_UTF8 \
HAVE_VARIADIC_MACROS HAVE_VARIADIC_MACROS
EXPAND_AS_DEFINED = EXPAND_AS_DEFINED = LIST_HEAD \
INIT_LIST_OF
SKIP_FUNCTION_MACROS = YES SKIP_FUNCTION_MACROS = YES
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------

View File

@ -115,11 +115,6 @@ struct xlist_head {
#endif /* LISTDEBUG */ #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 list intended to contain elements of a specific type. The
* @a element_T parameter currently serves as documentation only; * @a element_T parameter currently serves as documentation only;
* the compiler does not check that it matches. Doxyfile defines * the compiler does not check that it matches. Doxyfile defines
@ -127,6 +122,11 @@ struct xlist_head {
* diagrams. */ * diagrams. */
#define LIST_OF(element_T) struct list_head #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 #ifdef HAVE_TYPEOF
#define list_typeof(x) typeof(x) #define list_typeof(x) typeof(x)
#else #else