projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make get_ticks_per_sec() a static inline
[qemu]
/
sys-queue.h
diff --git
a/sys-queue.h
b/sys-queue.h
index
cb6a4c8
..
eb89a4d
100644
(file)
--- a/
sys-queue.h
+++ b/
sys-queue.h
@@
-126,6
+126,11
@@
struct { \
(var); \
(var) = ((var)->field.le_next))
+#define LIST_FOREACH_SAFE(var, head, field, next_var) \
+ for ((var) = ((head)->lh_first); \
+ (var) && ((next_var) = ((var)->field.le_next), 1); \
+ (var) = (next_var))
+
/*
* List access methods.
*/