TYPESPEC_UNSIGNED,
TYPESPEC_BOOL,
TYPESPEC_COMPLEX,
+ TYPESPEC_IMAGINARY,
TYPESPEC_CONST,
TYPESPEC_ID_TYPE,
} type;
/* NULL, value or declaration specifier */
struct ctf_node *container_type;
struct cds_list_head enumerator_list;
+ int has_body;
} _enum;
struct {
struct cds_list_head declaration_specifier;
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;
};
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);