X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-ast.h;h=692cc7b539007a0aa01174a01ab2bfeaf9c50fb6;hp=7dcf9f966bb5a9366eb4e15690e52e951b8beca5;hb=7de8808cf86ee8922f261d4cd6ee91aa0fa103b1;hpb=64b829c03328c38b48b22ee8a88fad9eff64d994 diff --git a/formats/ctf/metadata/ctf-ast.h b/formats/ctf/metadata/ctf-ast.h index 7dcf9f96..692cc7b5 100644 --- a/formats/ctf/metadata/ctf-ast.h +++ b/formats/ctf/metadata/ctf-ast.h @@ -107,8 +107,8 @@ struct ctf_node { * string literals and character constants. */ char *string; - uint64_t unsigned_constant; int64_t signed_constant; + uint64_t unsigned_constant; struct ctf_node *sbrac_exp; } u; enum { @@ -204,15 +204,15 @@ struct ctf_node { struct cds_list_head type_declarators; } struct_or_variant_declaration; struct { - /* list of typedef, typealias and declarations */ - struct cds_list_head declaration_list; char *name; char *choice; + /* list of typedef, typealias and declarations */ + struct cds_list_head declaration_list; } variant; struct { + char *name; /* list of typedef, typealias and declarations */ struct cds_list_head declaration_list; - char *name; } _struct; } u; }; @@ -222,4 +222,6 @@ struct ctf_ast { struct cds_list_head allocated_nodes; }; +int ctf_visitor_print_xml(FILE *fd, int depth, struct ctf_node *node); + #endif /* _CTF_PARSER_H */