Mercurial > MadButterfly
diff 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 |
line wrap: on
line diff
--- a/src/tools.h Mon Jul 28 17:45:36 2008 +0800 +++ b/src/tools.h Thu Jul 31 08:10:00 2008 +0800 @@ -19,6 +19,7 @@ do { \ (q).head = (q).tail = NULL; \ } while(0) +#define STAILQ_CLEAN(q) STAILQ_INIT(q) #define STAILQ_HEAD(q) ((q).head) #define STAILQ_TAIL(q) ((q).tail) #define STAILQ_NEXT(type, field, elm) ((elm)->field)