Lines Matching refs:ty
130 #define AM_FIRST(ty, q) ((ty *) ((q)->q_forw))
131 #define AM_LAST(ty, q) ((ty *) ((q)->q_back))
132 #define NEXT(ty, q) ((ty *) (((qelem *) q)->q_forw))
133 #define PREV(ty, q) ((ty *) (((qelem *) q)->q_back))
134 #define HEAD(ty, q) ((ty *) q)
135 #define ITER(v, ty, q) \
136 for ((v) = AM_FIRST(ty,(q)); (v) != HEAD(ty,(q)); (v) = NEXT(ty,(v)))
138 /* allocate anything of type ty */
139 #define ALLOC(ty) ((ty *) xmalloc(sizeof(ty)))
140 #define CALLOC(ty) ((ty *) xzalloc(sizeof(ty)))