* Common Trace Format Metadata Grammar.
*/
-#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
-#define BT_LOG_TAG "PLUGIN/CTF/META/PARSER"
-#include "logging.hpp"
-
-#include <stdio.h>
-#include <ctype.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
#include <assert.h>
-#include <glib.h>
+#include <ctype.h>
#include <errno.h>
+#include <glib.h>
#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
+#define BT_LOG_TAG "PLUGIN/CTF/META/PARSER"
+#include "plugins/ctf/common/metadata/logging.hpp"
+
#include "common/list.h"
#include "common/assert.h"
-#include "scanner.hpp"
-#include "ast.hpp"
-#include "objstack.hpp"
-#include "parser-wrap.hpp"
+#include "plugins/ctf/common/metadata/ast.hpp"
+#include "plugins/ctf/common/metadata/objstack.hpp"
+#include "plugins/ctf/common/metadata/parser-wrap.hpp"
/*
* Avoid warning about "yynerrs" being unused, seen with bison 3.5.1 + clang 15
}
}
-BT_HIDDEN
int yylex(union YYSTYPE *yyval, yyscan_t yyscanner);
-BT_HIDDEN
int yylex_init_extra(struct ctf_scanner *scanner, yyscan_t * ptr_yy_globals);
-BT_HIDDEN
int yylex_destroy(yyscan_t yyscanner);
-BT_HIDDEN
void yyrestart(FILE * in_str, yyscan_t yyscanner);
-BT_HIDDEN
int yyget_lineno(yyscan_t yyscanner);
-BT_HIDDEN
char *yyget_text(yyscan_t yyscanner);
/*
.type = NODE_ERROR,
};
-BT_HIDDEN
const char *node_type(struct ctf_node *node)
{
switch (node->type) {
return ret;
}
-BT_HIDDEN
int is_type(struct ctf_scanner *scanner, const char *id)
{
struct ctf_scanner_scope *it;
#ifndef ALLOW_INCLUDE_PARSER_H
# error "Don't include parser.h directly, include parser-wrap.h instead."
#endif
+
+#include "plugins/ctf/common/metadata/scanner.hpp"
}
%code provides {
- BT_HIDDEN
void setstring(struct ctf_scanner *scanner, YYSTYPE *lvalp, const char *src);
- BT_HIDDEN
int import_string(struct ctf_scanner *scanner, YYSTYPE *lvalp, const char *src, char delim);
}