Destroy the buffer. * @param b a buffer created with yy_create_buffer() * @param yyscanner The scanner object. */
| 1887 | * @param yyscanner The scanner object. |
| 1888 | */ |
| 1889 | void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
| 1890 | { |
| 1891 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 1892 | |
| 1893 | if ( ! b ) |
| 1894 | return; |
| 1895 | |
| 1896 | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
| 1897 | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
| 1898 | |
| 1899 | if ( b->yy_is_our_buffer ) |
| 1900 | yyfree( (void *) b->yy_ch_buf , yyscanner ); |
| 1901 | |
| 1902 | yyfree( (void *) b , yyscanner ); |
| 1903 | } |
| 1904 | |
| 1905 | /* Initializes or reinitializes a buffer. |
| 1906 | * This function is sometimes called more than once on the same buffer, |
no test coverage detected