projects
/
libjh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db23824
)
add FOR_EACH_IN_ARRAY
author
Jann Horn
<jann@thejh.net>
Sun, 8 Dec 2013 20:28:06 +0000
(21:28 +0100)
committer
Jann Horn
<jann@thejh.net>
Sun, 8 Dec 2013 20:28:06 +0000
(21:28 +0100)
control_structures.c
[new file with mode: 0644]
patch
|
blob
diff --git a/control_structures.c
b/control_structures.c
new file mode 100644
(file)
index 0000000..
2891ea6
--- /dev/null
+++ b/
control_structures.c
@@ -0,0
+1,4
@@
+// Copyright (2013) Jann Horn <jann@thejh.net>
+
+HEADER #define FOR_EACH_IN_ARRAY(array,array_len,element) \
+HEADER for (typeof(array[0]) *element = &(array)[0]; element < &(array)[array_len]; element++)
\ No newline at end of file