All pastes #24971 Raw Edit

Unnamed

public text v1 · immutable
#24971 ·published 2005-10-08 21:27 UTC
rendered paste body
#define ASTOBJ_CONTAINER_TRAVERSE2(container,iteratorname,continue,eval) \
        do { \
                typeof((container)->head) iterator; \
                typeof((container)->head) next; \
                ASTOBJ_CONTAINER_RDLOCK(container); \
                next = (container)->head; \
                while((continue) && (iterator = next)) { \
                        next = iterator->next[0]; \
                        eval; \
                } \
                ASTOBJ_CONTAINER_UNLOCK(container); \
        } while(0)