projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not change the local prev_type in record_entity(). The warning about missing...
[cparser]
/
adt
/
util.h
diff --git
a/adt/util.h
b/adt/util.h
index
c2aef83
..
f6e71ce
100644
(file)
--- a/
adt/util.h
+++ b/
adt/util.h
@@
-50,4
+50,6
@@
*/
#define UNLIKELY(x) __builtin_expect((x), 0)
+#define lengthof(x) (sizeof(x) / sizeof(*(x)))
+
#endif