Mercurial > MadButterfly
diff 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 |
line wrap: on
line diff
--- a/src/tools.h Wed Aug 06 10:20:34 2008 +0800 +++ b/src/tools.h Wed Aug 06 21:05:11 2008 +0800 @@ -39,6 +39,11 @@ if((q).head == NULL) \ (q).head = elm; \ } while(0) +#define STAILQ_INS_AFTER(type, field, follow, elm) \ + do { \ + (follow)->field = (elm)->field; \ + (elm)->field = follow; \ + } while(0) #define STAILQ_REMOVE(q, type, field, elm) \ do { \ if((elm) == (q).head) { \