From: Mathieu Desnoyers Date: Thu, 16 Aug 2012 14:51:01 +0000 (-0400) Subject: Cleanup: symbols in parser protected -> hidden X-Git-Tag: v2.1.0-rc1~13 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5439dd253a313c2b64a9fcd7161f3f900096eb5b;p=lttng-tools.git Cleanup: symbols in parser protected -> hidden Signed-off-by: Mathieu Desnoyers --- diff --git a/src/lib/lttng-ctl/filter-parser.y b/src/lib/lttng-ctl/filter-parser.y index 8be5e4326..4ee1d9a5d 100644 --- a/src/lib/lttng-ctl/filter-parser.y +++ b/src/lib/lttng-ctl/filter-parser.y @@ -32,19 +32,19 @@ #include "filter-ast.h" #include "filter-parser.h" -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) int yydebug; int filter_parser_debug = 0; -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) int yyparse(struct filter_parser_ctx *parser_ctx); -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) int yylex(union YYSTYPE *yyval, struct filter_parser_ctx *parser_ctx); -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) int yylex_init_extra(struct filter_parser_ctx *parser_ctx, yyscan_t * ptr_yy_globals); -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) int yylex_destroy(yyscan_t yyparser_ctx); -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) void yyrestart(FILE * in_str, yyscan_t parser_ctx); struct gc_string { @@ -61,7 +61,7 @@ static const char *node_type_to_str[] = { [ NODE_UNARY_OP ] = "NODE_UNARY_OP", }; -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) const char *node_type(struct filter_node *node) { if (node->type < NR_NODE_TYPES) @@ -92,7 +92,7 @@ static struct gc_string *gc_string_alloc(struct filter_parser_ctx *parser_ctx, * 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("protected"))) +__attribute__((visibility("hidden"))) struct gc_string *gc_string_append(struct filter_parser_ctx *parser_ctx, struct gc_string *gstr, struct gc_string *gsrc) @@ -122,7 +122,7 @@ struct gc_string *gc_string_append(struct filter_parser_ctx *parser_ctx, return gstr; } -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) void setstring(struct filter_parser_ctx *parser_ctx, YYSTYPE *lvalp, const char *src) { lvalp->gs = gc_string_alloc(parser_ctx, strlen(src) + 1); @@ -184,13 +184,13 @@ static struct filter_node *make_op_node(struct filter_parser_ctx *scanner, return node; } -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) void yyerror(struct filter_parser_ctx *parser_ctx, const char *str) { fprintf(stderr, "error %s\n", str); } -__attribute__((visibility("protected"))) +__attribute__((visibility("hidden"))) int yywrap(void) { return 1;