X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fllx.h;h=23c3bdaf8ebd0d7ebd2b3741db12106ef38952de;hb=02b539a8876795a0fb9cb747e297eb825a2b2747;hp=6232f3967ce3bdd9b9495bbf0cf0fc3a34934a6f;hpb=6f0ba24cc85db195ff3ba8bd4a16dd5440339b8d;p=pspp-builds.git diff --git a/src/libpspp/llx.h b/src/libpspp/llx.h index 6232f396..23c3bdaf 100644 --- a/src/libpspp/llx.h +++ b/src/libpspp/llx.h @@ -110,6 +110,12 @@ struct llx_list struct ll_list ll_list; /* The list. */ }; +/* Suitable for use as the initializer for a `struct llx_list' + named LIST. Typical usage: + struct llx_list list = LLX_INITIALIZER (list); + LLX_INITIALIZER() is an alternative to llx_init(). */ +#define LLX_INITIALIZER(LIST) { LL_INITIALIZER ((LIST).ll_list) } + /* Memory manager. */ struct llx_manager {