X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-ast.h;h=2ba6e860f4d7c920be57e6fc6f90626cb841e5a8;hb=0c880b0af719e4d58ccebe61acdd0e77a4479bfd;hp=a8e58cef121eb82dbbe37427f8014ca798f7114c;hpb=a012f2ac7f10fbde8ea7101f7fa3bf6d0f244fb8;p=babeltrace.git diff --git a/formats/ctf/metadata/ctf-ast.h b/formats/ctf/metadata/ctf-ast.h index a8e58cef..2ba6e860 100644 --- a/formats/ctf/metadata/ctf-ast.h +++ b/formats/ctf/metadata/ctf-ast.h @@ -26,9 +26,6 @@ // data is a pointer to a 'SParserParam' structure //#define YYPARSE_PARAM scanner -// the argument for the 'yylex' function -#define YYLEX_PARAM ((struct ctf_scanner *) scanner)->scanner - struct ctf_node; struct ctf_parser; @@ -76,6 +73,14 @@ struct ctf_node { struct bt_list_head siblings; struct bt_list_head tmp_head; unsigned int lineno; + /* + * We mark nodes visited in the generate-io-struct phase (last + * phase). We only mark the 1-depth level nodes as visited + * (never the root node, and not their sub-nodes). This allows + * skipping already visited nodes when doing incremental + * metadata append. + */ + int visited; enum node_type type; union {