MCPcopy Create free account
hub / github.com/KDE/kdevelop / cmListFileLexer_yyrestart

Function cmListFileLexer_yyrestart

plugins/cmake/parser/cmListFileLexer.c:1672–1684  ·  view source on GitHub ↗

Immediately switch to a different input stream. * @param input_file A readable stream. * @param yyscanner The scanner object. * @note This function does not reset the start condition to @c INITIAL . */

Source from the content-addressed store, hash-verified

1670 * @note This function does not reset the start condition to @c INITIAL .
1671 */
1672 void cmListFileLexer_yyrestart (FILE * input_file , yyscan_t yyscanner)
1673{
1674 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1675
1676 if ( ! YY_CURRENT_BUFFER ){
1677 cmListFileLexer_yyensure_buffer_stack (yyscanner);
1678 YY_CURRENT_BUFFER_LVALUE =
1679 cmListFileLexer_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1680 }
1681
1682 cmListFileLexer_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
1683 cmListFileLexer_yy_load_buffer_state(yyscanner );
1684}
1685
1686/** Switch to a different input buffer.
1687 * @param new_buffer The new input buffer.

Callers 2

yy_get_next_bufferFunction · 0.85
inputFunction · 0.85

Tested by

no test coverage detected