summaryrefslogtreecommitdiff
path: root/tests/test-bison-yylval/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-bison-yylval/parser.y')
-rw-r--r--tests/test-bison-yylval/parser.y12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/test-bison-yylval/parser.y b/tests/test-bison-yylval/parser.y
index 0ffdb89..d594be5 100644
--- a/tests/test-bison-yylval/parser.y
+++ b/tests/test-bison-yylval/parser.y
@@ -60,7 +60,17 @@ int process_text(char* s) {
%token LT
%token GT
%token LTSLASH "</"
-
+%{
+#ifdef __cplusplus
+extern "C" {
+#endif
+typedef void *yyscan_t;
+extern int testget_lineno(void*);
+extern int testlex(YYSTYPE *yylval, yyscan_t yyscanner);
+#ifdef __cplusplus
+}
+#endif
+%}
%%
html: