Repository navigation
yywrap not called #238
|
Hi. What could be the reason that my yywrap() is never called ? It seems that the reason is "eof_" of the default matcher (I use yy_scan_buffer() and never set a matcher) is set to "true" in the buffer() method, and so in get_more(), wrap() is never called... |
Replies: 2 comments 4 replies
|
When you use |
|
Specify a |
This won't suffice, because
yyless(0)gets lost when you switch buffers. You could useyyless(0)and then use the mather'send()pointer into the buffer to fetch that data from pointerend()to the ending address of the buffer to copy that data into the new buffer. Then append more data after this into the new buffer.