mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Doxygen: expand INIT_LIST_OF
This commit is contained in:
parent
297ad024c3
commit
778996d725
@ -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
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user