MCPcopy Create free account
hub / github.com/Gecode/gecode / yy_delete_buffer

Function yy_delete_buffer

gecode/flatzinc/lexer.yy.cpp:1889–1903  ·  view source on GitHub ↗

Destroy the buffer. * @param b a buffer created with yy_create_buffer() * @param yyscanner The scanner object. */

Source from the content-addressed store, hash-verified

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,

Callers 2

yypop_buffer_stateFunction · 0.85
yylex_destroyFunction · 0.85

Calls 1

yyfreeFunction · 0.85

Tested by

no test coverage detected