* gsrc will be garbage collected immediately, and gstr might be.
* Should only be used to append characters to a string literal or constant.
*/
-LTTNG_HIDDEN
+static
struct gc_string *gc_string_append(struct filter_parser_ctx *parser_ctx,
struct gc_string *gstr,
struct gc_string *gsrc)
return node;
}
-LTTNG_HIDDEN
+static
void yyerror(struct filter_parser_ctx *parser_ctx, yyscan_t scanner, const char *str)
{
fprintf(stderr, "error %s\n", str);
}
-
-LTTNG_HIDDEN
-int yywrap(void)
-{
- return 1;
-}
#define parse_error(parser_ctx, str) \
do { \
%}
+%code provides
+{
+#include "common/macros.h"
+
+LTTNG_HIDDEN
+void setstring(struct filter_parser_ctx *parser_ctx, YYSTYPE *lvalp, const char *src);
+}
+
%define api.pure
/* %locations */
%parse-param {struct filter_parser_ctx *parser_ctx}