• Home
  • Raw
  • Download

Lines Matching refs:a_field

21 #define ql_elm_new(a_elm, a_field) qr_new((a_elm), a_field)  argument
25 #define ql_last(a_head, a_field) \ argument
27 ? qr_prev(ql_first(a_head), a_field) : NULL)
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); \
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); \
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
63 ql_first(a_head) = qr_next(ql_first(a_head), a_field); \
66 qr_remove((a_elm), a_field); \
72 #define ql_head_remove(a_head, a_type, a_field) do { \ argument
74 ql_remove((a_head), t, a_field); \
77 #define ql_tail_remove(a_head, a_type, a_field) do { \ argument
78 a_type *t = ql_last(a_head, a_field); \
79 ql_remove((a_head), t, a_field); \
82 #define ql_foreach(a_var, a_head, a_field) \ argument
83 qr_foreach((a_var), ql_first(a_head), a_field)
85 #define ql_reverse_foreach(a_var, a_head, a_field) \ argument
86 qr_reverse_foreach((a_var), ql_first(a_head), a_field)