Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * @param yyscanner The scanner object. */
| 1812 | * @param yyscanner The scanner object. |
| 1813 | */ |
| 1814 | void cmListFileLexer_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
| 1815 | { |
| 1816 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 1817 | if ( ! b ) |
| 1818 | return; |
| 1819 | |
| 1820 | b->yy_n_chars = 0; |
| 1821 | |
| 1822 | /* We always need two end-of-buffer characters. The first causes |
| 1823 | * a transition to the end-of-buffer state. The second causes |
| 1824 | * a jam in that state. |
| 1825 | */ |
| 1826 | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; |
| 1827 | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; |
| 1828 | |
| 1829 | b->yy_buf_pos = &b->yy_ch_buf[0]; |
| 1830 | |
| 1831 | b->yy_at_bol = 1; |
| 1832 | b->yy_buffer_status = YY_BUFFER_NEW; |
| 1833 | |
| 1834 | if ( b == YY_CURRENT_BUFFER ) |
| 1835 | cmListFileLexer_yy_load_buffer_state(yyscanner ); |
| 1836 | } |
| 1837 | |
| 1838 | /** Pushes the new state onto the stack. The new state becomes |
| 1839 | * the current state. This function will allocate the stack |
no test coverage detected