MCPcopy Create free account
hub / github.com/MapServer/MapServer / msyyrestart

Function msyyrestart

maplexer.c:4653–4664  ·  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

4651 * @note This function does not reset the start condition to @c INITIAL .
4652 */
4653 void msyyrestart (FILE * input_file )
4654{
4655
4656 if ( ! YY_CURRENT_BUFFER ){
4657 msyyensure_buffer_stack ();
4658 YY_CURRENT_BUFFER_LVALUE =
4659 msyy_create_buffer(msyyin,YY_BUF_SIZE );
4660 }
4661
4662 msyy_init_buffer(YY_CURRENT_BUFFER,input_file );
4663 msyy_load_buffer_state( );
4664}
4665
4666/** Switch to a different input buffer.
4667 * @param new_buffer The new input buffer.

Callers 5

yy_get_next_bufferFunction · 0.85
inputFunction · 0.85
mapfile.cFile · 0.85
tokenizeMapInternalFunction · 0.85
loadSymbolSetFunction · 0.85

Calls 4

msyyensure_buffer_stackFunction · 0.85
msyy_create_bufferFunction · 0.85
msyy_init_bufferFunction · 0.85
msyy_load_buffer_stateFunction · 0.85

Tested by

no test coverage detected