MCPcopy Create free account
hub / github.com/Kitware/CMake / yy_delete_buffer

Function yy_delete_buffer

Source/LexerParser/cmListFileLexer.c:1948–1962  ·  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

1946 * @param yyscanner The scanner object.
1947 */
1948 void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1949{
1950 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1951
1952 if ( ! b )
1953 return;
1954
1955 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1956 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1957
1958 if ( b->yy_is_our_buffer )
1959 yyfree( (void *) b->yy_ch_buf , yyscanner );
1960
1961 yyfree( (void *) b , yyscanner );
1962}
1963
1964/* Initializes or reinitializes a buffer.
1965 * This function is sometimes called more than once on the same buffer,

Callers 2

yypop_buffer_stateFunction · 0.70
yylex_destroyFunction · 0.70

Calls 1

yyfreeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…