cextern/cfitsio/lib/eval_l.c
/** Switch to a different input buffer.
 * @param new_buffer The new input buffer.
 * 
 */
Switch to a different input buffer.
@param new_buffer The new input buffer.
Switch to a different input buffer . @param new_buffer The new input buffer .
void ff_switch_to_buffer  (FF_BUFFER_STATE  new_buffer )
{
	ffensure_buffer_stack ();
	if ( FF_CURRENT_BUFFER == new_buffer )
		return;
	if ( FF_CURRENT_BUFFER )
		{
		*(ff_c_buf_p) = (ff_hold_char);
		FF_CURRENT_BUFFER_LVALUE->ff_buf_pos = (ff_c_buf_p);
		FF_CURRENT_BUFFER_LVALUE->ff_n_chars = (ff_n_chars);
		}
	FF_CURRENT_BUFFER_LVALUE = new_buffer;
	ff_load_buffer_state( );
	(ff_did_buffer_switch_on_eof) = 1;
}
void ff_switch_to_buffer ( FF_BUFFER_STATE new_buffer ) { ffensure_buffer_stack ( ) ; if ( FF_CURRENT_BUFFER == new_buffer ) return ; if ( FF_CURRENT_BUFFER ) { * ( ff_c_buf_p ) = ( ff_hold_char ) ; FF_CURRENT_BUFFER_LVALUE -> ff_buf_pos = ( ff_c_buf_p ) ; FF_CURRENT_BUFFER_LVALUE -> ff_n_chars = ( ff_n_chars ) ; } FF_CURRENT_BUFFER_LVALUE = new_buffer ; ff_load_buffer_state ( ) ; ( ff_did_buffer_switch_on_eof ) = 1 ; }
Switch to a different input buffer.
Switch to a different input buffer .
/* TODO. We should be able to replace this entire function body
	 * with
	 *		ffpop_buffer_state();
	 *		ffpush_buffer_state(new_buffer);
     */ /* Flush out information for old buffer. */ /* We don't actually know whether we did this switch during
	 * EOF (ffwrap()) processing, but the only time this flag
	 * is looked at is after ffwrap() is called, so it's safe
	 * to go ahead and always set it.
	 */