Switch to a different input buffer. * @param new_buffer The new input buffer. * */
| 4668 | * |
| 4669 | */ |
| 4670 | void msyy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) |
| 4671 | { |
| 4672 | |
| 4673 | /* TODO. We should be able to replace this entire function body |
| 4674 | * with |
| 4675 | * msyypop_buffer_state(); |
| 4676 | * msyypush_buffer_state(new_buffer); |
| 4677 | */ |
| 4678 | msyyensure_buffer_stack (); |
| 4679 | if ( YY_CURRENT_BUFFER == new_buffer ) |
| 4680 | return; |
| 4681 | |
| 4682 | if ( YY_CURRENT_BUFFER ) |
| 4683 | { |
| 4684 | /* Flush out information for old buffer. */ |
| 4685 | *(yy_c_buf_p) = (yy_hold_char); |
| 4686 | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); |
| 4687 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); |
| 4688 | } |
| 4689 | |
| 4690 | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
| 4691 | msyy_load_buffer_state( ); |
| 4692 | |
| 4693 | /* We don't actually know whether we did this switch during |
| 4694 | * EOF (msyywrap()) processing, but the only time this flag |
| 4695 | * is looked at is after msyywrap() is called, so it's safe |
| 4696 | * to go ahead and always set it. |
| 4697 | */ |
| 4698 | (yy_did_buffer_switch_on_eof) = 1; |
| 4699 | } |
| 4700 | |
| 4701 | static void msyy_load_buffer_state (void) |
| 4702 | { |
no test coverage detected