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 . */
| 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. |
no test coverage detected