X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-parser.y;h=28b7bebe60309e2420c45dc5d0ffb8e1cace28b1;hb=32cfb8adf760170061946d1f802677fb02f6dc96;hp=84735941a45f07b0482156f6cacabf133bd4c03c;hpb=3122e6f075647374e7a98ae9501d100de8d004a9;p=babeltrace.git diff --git a/formats/ctf/metadata/ctf-parser.y b/formats/ctf/metadata/ctf-parser.y index 84735941..28b7bebe 100644 --- a/formats/ctf/metadata/ctf-parser.y +++ b/formats/ctf/metadata/ctf-parser.y @@ -31,6 +31,7 @@ #include "ctf-parser.h" #include "ctf-ast.h" +__attribute__((visibility("hidden"))) int yydebug; /* Join two lists, put "add" at the end of "head". */ @@ -46,14 +47,17 @@ _bt_list_splice_tail (struct bt_list_head *add, struct bt_list_head *head) } } +__attribute__((visibility("hidden"))) int yyparse(struct ctf_scanner *scanner); +__attribute__((visibility("hidden"))) int yylex(union YYSTYPE *yyval, struct ctf_scanner *scanner); +__attribute__((visibility("hidden"))) int yylex_init_extra(struct ctf_scanner *scanner, yyscan_t * ptr_yy_globals); +__attribute__((visibility("hidden"))) int yylex_destroy(yyscan_t yyscanner); +__attribute__((visibility("hidden"))) void yyrestart(FILE * in_str, yyscan_t scanner); -int yydebug; - struct gc_string { struct bt_list_head gc; size_t alloclen; @@ -88,6 +92,7 @@ static const char *node_type_to_str[] = { [ NODE_STRUCT ] = "NODE_STRUCT", }; +__attribute__((visibility("hidden"))) const char *node_type(struct ctf_node *node) { if (node->type < NR_NODE_TYPES) @@ -118,6 +123,7 @@ static struct gc_string *gc_string_alloc(struct ctf_scanner *scanner, * gsrc will be garbage collected immediately, and gstr might be. * Should only be used to append characters to a string literal or constant. */ +__attribute__((visibility("hidden"))) struct gc_string *gc_string_append(struct ctf_scanner *scanner, struct gc_string *gstr, struct gc_string *gsrc) @@ -196,6 +202,7 @@ static int lookup_type(struct ctf_scanner_scope *s, const char *id) return ret; } +__attribute__((visibility("hidden"))) int is_type(struct ctf_scanner *scanner, const char *id) { struct ctf_scanner_scope *it; @@ -775,11 +782,13 @@ static int set_parent_node(struct ctf_node *node, return 0; } +__attribute__((visibility("hidden"))) void yyerror(struct ctf_scanner *scanner, const char *str) { fprintf(stderr, "error %s\n", str); } +__attribute__((visibility("hidden"))) int yywrap(void) { return 1;