diff options
author | Will Estes <westes575@gmail.com> | 2012-08-07 12:18:08 -0400 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2012-08-07 15:56:44 -0400 |
commit | ec676fce008138b222d072de28fb05e1dfd945fb (patch) | |
tree | 1d45f3a3df39df4647ec4487f426f8f6b564373a /tests/test-bison-yylloc/parser.y | |
parent | c1a633de7c2ee2fb450b24ec46e9c4390f3c69ea (diff) | |
download | flex-git-ec676fce008138b222d072de28fb05e1dfd945fb.tar.gz |
reorganize flex skeleton and m4 processingbug-2172046
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: |