Switch to a different input buffer. * @param new_buffer The new input buffer. * @param yyscanner The scanner object. */
| 1871 | * @param yyscanner The scanner object. |
| 1872 | */ |
| 1873 | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
| 1874 | { |
| 1875 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 1876 | |
| 1877 | /* TODO. We should be able to replace this entire function body |
| 1878 | * with |
| 1879 | * yypop_buffer_state(); |
| 1880 | * yypush_buffer_state(new_buffer); |
| 1881 | */ |
| 1882 | yyensure_buffer_stack (yyscanner); |
| 1883 | if ( YY_CURRENT_BUFFER == new_buffer ) |
| 1884 | return; |
| 1885 | |
| 1886 | if ( YY_CURRENT_BUFFER ) |
| 1887 | { |
| 1888 | /* Flush out information for old buffer. */ |
| 1889 | *yyg->yy_c_buf_p = yyg->yy_hold_char; |
| 1890 | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; |
| 1891 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; |
| 1892 | } |
| 1893 | |
| 1894 | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
| 1895 | yy_load_buffer_state( yyscanner ); |
| 1896 | |
| 1897 | /* We don't actually know whether we did this switch during |
| 1898 | * EOF (yywrap()) processing, but the only time this flag |
| 1899 | * is looked at is after yywrap() is called, so it's safe |
| 1900 | * to go ahead and always set it. |
| 1901 | */ |
| 1902 | yyg->yy_did_buffer_switch_on_eof = 1; |
| 1903 | } |
| 1904 | |
| 1905 | static void yy_load_buffer_state (yyscan_t yyscanner) |
| 1906 | { |
no test coverage detected
searching dependent graphs…