// 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;
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 {