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

Function yyrestart

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

1853 * @note This function does not reset the start condition to @c INITIAL .
1854 */
1855 void yyrestart (FILE * input_file , yyscan_t yyscanner)
1856{
1857 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1858
1859 if ( ! YY_CURRENT_BUFFER ){
1860 yyensure_buffer_stack (yyscanner);
1861 YY_CURRENT_BUFFER_LVALUE =
1862 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
1863 }
1864
1865 yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner);
1866 yy_load_buffer_state( yyscanner );
1867}
1868
1869/** Switch to a different input buffer.
1870 * @param new_buffer The new input buffer.

Callers 2

yy_get_next_bufferFunction · 0.70
inputFunction · 0.70

Calls 4

yyensure_buffer_stackFunction · 0.70
yy_create_bufferFunction · 0.70
yy_init_bufferFunction · 0.70
yy_load_buffer_stateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…