comparison src/tools.h @ 39:db2aa914e14b

timer for animation
author Thinker K.F. Li <thinker@branda.to>
date Wed, 06 Aug 2008 21:05:11 +0800
parents ed55009d96d3
children 01ed2bc37eed
comparison
equal deleted inserted replaced
38:8d219ebd729e 39:db2aa914e14b
37 (q).tail->field = elm; \ 37 (q).tail->field = elm; \
38 (q).tail = elm; \ 38 (q).tail = elm; \
39 if((q).head == NULL) \ 39 if((q).head == NULL) \
40 (q).head = elm; \ 40 (q).head = elm; \
41 } while(0) 41 } while(0)
42 #define STAILQ_INS_AFTER(type, field, follow, elm) \
43 do { \
44 (follow)->field = (elm)->field; \
45 (elm)->field = follow; \
46 } while(0)
42 #define STAILQ_REMOVE(q, type, field, elm) \ 47 #define STAILQ_REMOVE(q, type, field, elm) \
43 do { \ 48 do { \
44 if((elm) == (q).head) { \ 49 if((elm) == (q).head) { \
45 (q).head = (elm)->field; \ 50 (q).head = (elm)->field; \
46 if((q).head == NULL) \ 51 if((q).head == NULL) \