diff options
Diffstat (limited to 'tests/test-bison-yylloc/parser.y')
-rw-r--r-- | tests/test-bison-yylloc/parser.y | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test-bison-yylloc/parser.y b/tests/test-bison-yylloc/parser.y index e8f4e56..dfcbcae 100644 --- a/tests/test-bison-yylloc/parser.y +++ b/tests/test-bison-yylloc/parser.y @@ -63,6 +63,17 @@ int process_text(char* s) { %token EQUAL "=" %token COLON ":" %token SPACE " " +%{ +#ifdef __cplusplus +extern "C" { +#endif +typedef void *yyscan_t; +extern int testget_lineno(void*); +extern int testlex(YYSTYPE *yylval, YYLTYPE *yylloc, yyscan_t yyscanner); +#ifdef __cplusplus +} +#endif +%} %% file: |