projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctf visitor generate I/O struct: Compile fixes, part 1
[babeltrace.git]
/
formats
/
ctf
/
metadata
/
ctf-visitor-semantic-validator.c
diff --git
a/formats/ctf/metadata/ctf-visitor-semantic-validator.c
b/formats/ctf/metadata/ctf-visitor-semantic-validator.c
index 6f46bfbdf5df6d342cef56ad3bb6892fd813619d..8decc19ef64a7fd5b6b6f808183766704c1d883d 100644
(file)
--- a/
formats/ctf/metadata/ctf-visitor-semantic-validator.c
+++ b/
formats/ctf/metadata/ctf-visitor-semantic-validator.c
@@
-65,10
+65,8
@@
int ctf_visitor_unary_expression(FILE *fd, int depth, struct ctf_node *node)
/* Right child of a ctf expression can be any type of unary exp. */
break; /* OK */
case NODE_TYPE_DECLARATOR:
/* Right child of a ctf expression can be any type of unary exp. */
break; /* OK */
case NODE_TYPE_DECLARATOR:
- case NODE_ENUM:
/*
/*
- * We are the length of a type declarator or the size of an enum
- * container. We can only be a numeric constant.
+ * We are the length of a type declarator.
*/
switch (node->u.unary_expression.type) {
case UNARY_SIGNED_CONSTANT:
*/
switch (node->u.unary_expression.type) {
case UNARY_SIGNED_CONSTANT:
@@
-104,6
+102,7
@@
int ctf_visitor_unary_expression(FILE *fd, int depth, struct ctf_node *node)
case NODE_FLOATING_POINT:
case NODE_INTEGER:
case NODE_STRING:
case NODE_FLOATING_POINT:
case NODE_INTEGER:
case NODE_STRING:
+ case NODE_ENUM:
case NODE_STRUCT_OR_VARIANT_DECLARATION:
case NODE_VARIANT:
case NODE_STRUCT:
case NODE_STRUCT_OR_VARIANT_DECLARATION:
case NODE_VARIANT:
case NODE_STRUCT:
This page took
0.030199 seconds
and
4
git commands to generate.