Destroy the buffer. * @param b a buffer created with cmListFileLexer_yy_create_buffer() * @param yyscanner The scanner object. */
| 1763 | * @param yyscanner The scanner object. |
| 1764 | */ |
| 1765 | void cmListFileLexer_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
| 1766 | { |
| 1767 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 1768 | |
| 1769 | if ( ! b ) |
| 1770 | return; |
| 1771 | |
| 1772 | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
| 1773 | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
| 1774 | |
| 1775 | if ( b->yy_is_our_buffer ) |
| 1776 | cmListFileLexer_yyfree((void *) b->yy_ch_buf ,yyscanner ); |
| 1777 | |
| 1778 | cmListFileLexer_yyfree((void *) b ,yyscanner ); |
| 1779 | } |
| 1780 | |
| 1781 | /* Initializes or reinitializes a buffer. |
| 1782 | * This function is sometimes called more than once on the same buffer, |
no test coverage detected