MCPcopy Create free account
hub / github.com/Entware/Entware / yyrestart

Function yyrestart

scripts/config/lexer.lex.c:3391–3402  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3389 * @note This function does not reset the start condition to @c INITIAL .
3390 */
3391 void yyrestart (FILE * input_file )
3392{
3393
3394 if ( ! YY_CURRENT_BUFFER ){
3395 yyensure_buffer_stack ();
3396 YY_CURRENT_BUFFER_LVALUE =
3397 yy_create_buffer( yyin, YY_BUF_SIZE );
3398 }
3399
3400 yy_init_buffer( YY_CURRENT_BUFFER, input_file );
3401 yy_load_buffer_state( );
3402}
3403
3404/** Switch to a different input buffer.
3405 * @param new_buffer The new input buffer.

Callers 2

yy_get_next_bufferFunction · 0.85
inputFunction · 0.85

Calls 4

yyensure_buffer_stackFunction · 0.85
yy_create_bufferFunction · 0.85
yy_init_bufferFunction · 0.85
yy_load_buffer_stateFunction · 0.85

Tested by

no test coverage detected