projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix implicit struct casts
[cparser]
/
type_t.h
diff --git
a/type_t.h
b/type_t.h
index
d6131d5
..
6f5364a
100644
(file)
--- a/
type_t.h
+++ b/
type_t.h
@@
-210,4
+210,9
@@
static inline bool is_type_compound(const type_t *type)
|| type->kind == TYPE_COMPOUND_UNION;
}
+static inline bool is_type_valid(const type_t *type)
+{
+ return type->kind != TYPE_ERROR;
+}
+
#endif