Destroy the buffer. * @param b a buffer created with php_create_buffer() * */
| 2004 | * |
| 2005 | */ |
| 2006 | void php_delete_buffer (YY_BUFFER_STATE b ) |
| 2007 | { |
| 2008 | |
| 2009 | if ( ! b ) |
| 2010 | return; |
| 2011 | |
| 2012 | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
| 2013 | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
| 2014 | |
| 2015 | if ( b->yy_is_our_buffer ) |
| 2016 | phpfree((void *) b->yy_ch_buf ); |
| 2017 | |
| 2018 | phpfree((void *) b ); |
| 2019 | } |
| 2020 | |
| 2021 | /* Initializes or reinitializes a buffer. |
| 2022 | * This function is sometimes called more than once on the same buffer, |
no test coverage detected