Destroy the buffer. * @param b a buffer created with yy_create_buffer() * @param yyscanner The scanner object. */
| 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, |
no test coverage detected
searching dependent graphs…