projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more work on parser
[cparser]
/
type_t.h
diff --git
a/type_t.h
b/type_t.h
index
6e05d31
..
9d2b61e
100644
(file)
--- a/
type_t.h
+++ b/
type_t.h
@@
-14,7
+14,6
@@
typedef enum {
TYPE_COMPOUND_STRUCT,
TYPE_COMPOUND_UNION,
TYPE_ENUM,
TYPE_COMPOUND_STRUCT,
TYPE_COMPOUND_UNION,
TYPE_ENUM,
- TYPE_TYPEDEF,
TYPE_METHOD,
TYPE_POINTER
} type_type_t;
TYPE_METHOD,
TYPE_POINTER
} type_type_t;
@@
-49,8
+48,16
@@
typedef enum {
#endif
} atomic_type_type_t;
#endif
} atomic_type_type_t;
+typedef enum {
+ TYPE_QUALIFIER_CONST = 1 << 0,
+ TYPE_QUALIFIER_RESTRICT = 1 << 1,
+ TYPE_QUALIFIER_VOLATILE = 1 << 2,
+ TYPE_QUALIFIER_INLINE = 1 << 3,
+} type_qualifier_t;
+
struct type_t {
type_type_t type;
struct type_t {
type_type_t type;
+ unsigned qualifiers;
};
struct atomic_type_t {
};
struct atomic_type_t {
@@
-89,4
+96,10
@@
struct compound_type_t {
source_position_t source_position;
};
source_position_t source_position;
};
+struct enum_type_t {
+ /* todo */
+ symbol_t *symbol;
+ source_position_t source_position;
+};
+
#endif
#endif