X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-ast.h;h=0ce21a5a4b2163e1adf952dd2b0039a10e523766;hp=540195a34bca41b75268afe8c6c1fd01918fea61;hb=1ee8e81dbe8f14831974e32cef7d5f116d17a73d;hpb=67905e421502703d87176702b4844f70fd60ded4 diff --git a/formats/ctf/metadata/ctf-ast.h b/formats/ctf/metadata/ctf-ast.h index 540195a3..0ce21a5a 100644 --- a/formats/ctf/metadata/ctf-ast.h +++ b/formats/ctf/metadata/ctf-ast.h @@ -152,6 +152,7 @@ struct ctf_node { TYPESPEC_UNSIGNED, TYPESPEC_BOOL, TYPESPEC_COMPLEX, + TYPESPEC_IMAGINARY, TYPESPEC_CONST, TYPESPEC_ID_TYPE, } type; @@ -215,11 +216,13 @@ struct ctf_node { char *choice; /* list of typedef, typealias and declarations */ struct cds_list_head declaration_list; + int has_body; } variant; struct { char *name; /* list of typedef, typealias and declarations */ struct cds_list_head declaration_list; + int has_body; } _struct; } u; }; @@ -229,6 +232,8 @@ struct ctf_ast { struct cds_list_head allocated_nodes; }; +const char *node_type(struct ctf_node *node); + int ctf_visitor_print_xml(FILE *fd, int depth, struct ctf_node *node); int ctf_visitor_semantic_check(FILE *fd, int depth, struct ctf_node *node); int ctf_visitor_parent_links(FILE *fd, int depth, struct ctf_node *node);