comparison src/tools.h @ 13:ed55009d96d3

refactory for redrawing
author Thinker K.F. Li <thinker@branda.to>
date Thu, 31 Jul 2008 08:10:00 +0800
parents 79e9edf4c00a
children db2aa914e14b
comparison
equal deleted inserted replaced
12:79e9edf4c00a 13:ed55009d96d3
17 } 17 }
18 #define STAILQ_INIT(q) \ 18 #define STAILQ_INIT(q) \
19 do { \ 19 do { \
20 (q).head = (q).tail = NULL; \ 20 (q).head = (q).tail = NULL; \
21 } while(0) 21 } while(0)
22 #define STAILQ_CLEAN(q) STAILQ_INIT(q)
22 #define STAILQ_HEAD(q) ((q).head) 23 #define STAILQ_HEAD(q) ((q).head)
23 #define STAILQ_TAIL(q) ((q).tail) 24 #define STAILQ_TAIL(q) ((q).tail)
24 #define STAILQ_NEXT(type, field, elm) ((elm)->field) 25 #define STAILQ_NEXT(type, field, elm) ((elm)->field)
25 #define STAILQ_INS(q, type, field, elm) \ 26 #define STAILQ_INS(q, type, field, elm) \
26 do { \ 27 do { \