Add missing _Imaginary type
[babeltrace.git] / formats / ctf / metadata / ctf-ast.h
index 1252272acec3b6c42a022f67d9802fd80f48a1ef..8b5ad887b6df6ea16334b7b86e6e88435751ec07 100644 (file)
@@ -2,9 +2,9 @@
 #define _CTF_PARSER_H
 
 #include <stdint.h>
-#include <helpers/list.h>
 #include <stdio.h>
 #include <glib.h>
+#include <babeltrace/list.h>
 
 // the parameter name (of the reentrant 'yyparse' function)
 // data is a pointer to a 'SParserParam' structure
@@ -152,6 +152,7 @@ struct ctf_node {
                                TYPESPEC_UNSIGNED,
                                TYPESPEC_BOOL,
                                TYPESPEC_COMPLEX,
+                               TYPESPEC_IMAGINARY,
                                TYPESPEC_CONST,
                                TYPESPEC_ID_TYPE,
                        } type;
@@ -194,7 +195,10 @@ struct ctf_node {
                } string;
                struct {
                        char *id;
-                       /* range list or single value node */
+                       /*
+                        * Range list or single value node. Contains unary
+                        * expressions.
+                        */
                        struct cds_list_head values;
                } enumerator;
                struct {
@@ -226,6 +230,10 @@ 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);
 
 #endif /* _CTF_PARSER_H */
This page took 0.024561 seconds and 4 git commands to generate.