Lines Matching refs:a_elm
21 #define ql_elm_new(a_elm, a_field) qr_new((a_elm), a_field) argument
29 #define ql_next(a_head, a_elm, a_field) \ argument
30 ((ql_last(a_head, a_field) != (a_elm)) \
31 ? qr_next((a_elm), a_field) : NULL)
33 #define ql_prev(a_head, a_elm, a_field) \ argument
34 ((ql_first(a_head) != (a_elm)) ? qr_prev((a_elm), a_field) \
37 #define ql_before_insert(a_head, a_qlelm, a_elm, a_field) do { \ argument
38 qr_before_insert((a_qlelm), (a_elm), a_field); \
40 ql_first(a_head) = (a_elm); \
44 #define ql_after_insert(a_qlelm, a_elm, a_field) \ argument
45 qr_after_insert((a_qlelm), (a_elm), a_field)
47 #define ql_head_insert(a_head, a_elm, a_field) do { \ argument
49 qr_before_insert(ql_first(a_head), (a_elm), a_field); \
51 ql_first(a_head) = (a_elm); \
54 #define ql_tail_insert(a_head, a_elm, a_field) do { \ argument
56 qr_before_insert(ql_first(a_head), (a_elm), a_field); \
58 ql_first(a_head) = qr_next((a_elm), a_field); \
61 #define ql_remove(a_head, a_elm, a_field) do { \ argument
62 if (ql_first(a_head) == (a_elm)) { \
65 if (ql_first(a_head) != (a_elm)) { \
66 qr_remove((a_elm), a_field); \