In the head file queue.h of BSD system, there is the following macro
#define TAILQ_ENTRY(type, qual)\
struct {\
qual type *tqe_next; /* next element */\
qual type *qual *tqe_prev; /* address of previous next element */\
}
With above definition, one is supposed to use it like
struct foo {
TAILQ_ENTRY(struct foo, ) my_list;
//some data here
};
My question is: what is the purpose of macro argument "qual" here, it seems does not play any part in code generated.