projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
enum, sequence, array: use declaration list for length/container type
[babeltrace.git]
/
formats
/
ctf
/
metadata
/
ctf-ast.h
diff --git
a/formats/ctf/metadata/ctf-ast.h
b/formats/ctf/metadata/ctf-ast.h
index 6ee937b6e44ec7597a39c6d34217ab9bc4f1bf89..c12d09a97910dc43faf08237efee70bcd3a4f45a 100644
(file)
--- a/
formats/ctf/metadata/ctf-ast.h
+++ b/
formats/ctf/metadata/ctf-ast.h
@@
-173,8
+173,11
@@
struct ctf_node {
struct {
/* typedec has no pointer list */
struct ctf_node *type_declarator;
struct {
/* typedec has no pointer list */
struct ctf_node *type_declarator;
- /* value or first node of declaration specifier list */
- struct ctf_node *length;
+ /*
+ * unary expression (value) or
+ * declaration specifiers.
+ */
+ struct cds_list_head length;
/* for abstract type declarator */
unsigned int abstract_array;
} nested;
/* for abstract type declarator */
unsigned int abstract_array;
} nested;
@@
-203,8
+206,11
@@
struct ctf_node {
} enumerator;
struct {
char *enum_id;
} enumerator;
struct {
char *enum_id;
- /* NULL, value or declaration specifier */
- struct ctf_node *container_type;
+ /*
+ * Either empty, contains unary expression or
+ * declaration specifiers.
+ */
+ struct cds_list_head container_type;
struct cds_list_head enumerator_list;
int has_body;
} _enum;
struct cds_list_head enumerator_list;
int has_body;
} _enum;
This page took
0.023364 seconds
and
4
git commands to generate.