4 typedef unsigned int xqindex;
6 #define None (xqindex)-1
18 xqindex * xq_alloc_empty ( struct xq * xq,
21 void xq_init_empty ( struct xq * xq,
25 xqindex * xq_alloc_map ( struct xq * xq,
28 xqindex (* mapfn ) (xqindex) );
30 void xq_init_map ( struct xq * xq,
33 xqindex (* mapfn ) (xqindex),
36 xqindex * xq_alloc_seq ( struct xq * xq,
40 void xq_init_seq ( struct xq * xq,
45 void xq_free ( struct xq * xq );
47 xqindex xq_append_head ( struct xq * xq,
50 xqindex xq_pop_head ( struct xq * xq );
52 xqindex xq_append_tail ( struct xq * xq,
55 xqindex xq_pop_tail ( struct xq * xq );
57 int xq_head_to_tail ( struct xq * hq,
61 xqindex xq_size ( struct xq * xq );
63 xqindex xq_count ( struct xq * xq );
65 void xq_print ( struct xq * xq );