MCPcopy Create free account
hub / github.com/amule-project/amule / php_delete_buffer

Function php_delete_buffer

src/webserver/src/php_lexer.c:2006–2019  ·  view source on GitHub ↗

Destroy the buffer. * @param b a buffer created with php_create_buffer() * */

Source from the content-addressed store, hash-verified

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,

Callers 4

php_set_input_bufferFunction · 0.85
phpwrapFunction · 0.85
phppop_buffer_stateFunction · 0.85
phplex_destroyFunction · 0.85

Calls 1

phpfreeFunction · 0.85

Tested by

no test coverage detected