Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/arb.h
| Show First 20 Lines • Show All 770 Lines • ▼ Show 20 Lines | |||||
| #define ARB_ARRFOREACH_REVWCOND(x, field, head, extracond) \ | #define ARB_ARRFOREACH_REVWCOND(x, field, head, extracond) \ | ||||
| for ((x) = ARB_NODES(head) + (ARB_MAXNODES(head) - 1); \ | for ((x) = ARB_NODES(head) + (ARB_MAXNODES(head) - 1); \ | ||||
| (x) >= ARB_NODES(head) && (extracond); \ | (x) >= ARB_NODES(head) && (extracond); \ | ||||
| (x)--) | (x)--) | ||||
| #define ARB_ARRFOREACH_REVERSE(x, field, head) \ | #define ARB_ARRFOREACH_REVERSE(x, field, head) \ | ||||
| ARB_ARRFOREACH_REVWCOND(x, field, head, 1) | ARB_ARRFOREACH_REVWCOND(x, field, head, 1) | ||||
| #define ARB_RESET_TREE(head, name, maxn) \ | |||||
| *(head) = ARB_INITIALIZER(name, maxn) | |||||
| #endif /* _SYS_ARB_H_ */ | #endif /* _SYS_ARB_H_ */ | ||||