diff options
author | Will Estes <wlestes@users.sourceforge.net> | 2006-10-22 22:17:38 +0000 |
---|---|---|
committer | Will Estes <wlestes@users.sourceforge.net> | 2006-10-22 22:17:38 +0000 |
commit | a4fa510851cb409efe296caf2abf17c613baaff9 (patch) | |
tree | 8f3c972101b6853965a9b76c5be02a27453d04f3 /tests | |
parent | 6ca8e33dbcb2960da332f6d1af0728d0a3e9b1be (diff) |
make yywrap work with c++ scanners as per sf bug report
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-c++-multiple-scanners/scanner-2.l | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test-c++-multiple-scanners/scanner-2.l b/tests/test-c++-multiple-scanners/scanner-2.l index db84402..15faf26 100644 --- a/tests/test-c++-multiple-scanners/scanner-2.l +++ b/tests/test-c++-multiple-scanners/scanner-2.l @@ -25,7 +25,7 @@ %} %option 8bit outfile="scanner-2.cpp" prefix="S2_" -%option nounput nomain noyywrap +%option nounput nomain %option warn stack noyy_top_state %x OFF @@ -41,3 +41,8 @@ off yy_push_state(OFF); return 4; <OFF>.|\n yy_pop_state(); return 7; %% +int S2_FlexLexer::yywrap() +{ + std::cout << "NOW WRAPPING." << std::endl; + return 1; +} |