1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

Doxygen: expand INIT_LIST_OF

This commit is contained in:
Kalle Olavi Niemitalo 2007-07-29 12:55:25 +03:00 committed by Kalle Olavi Niemitalo
parent 297ad024c3
commit 778996d725
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_UTF8 \
HAVE_VARIADIC_MACROS
EXPAND_AS_DEFINED =
EXPAND_AS_DEFINED = LIST_HEAD \
INIT_LIST_OF
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------

View File

@ -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