MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / removeIntoIfp

Method removeIntoIfp

src/isql/InputDevices.cpp:226–234  ·  view source on GitHub ↗

Shortcut for moving the top indev in the chain to the current input file.

Source from the content-addressed store, hash-verified

224
225// Shortcut for moving the top indev in the chain to the current input file.
226void InputDevices::removeIntoIfp()
227{
228 fb_assert(m_head && m_count > 0);
229 m_ifp.copy_from(m_head);
230 // When we come back from inout(), we continue inside the get_statement loop.
231 // If we are inside do_isql() due to Ctrl-C, it doesn't cause any harm.
232 m_ifp.indev_line = m_ifp.indev_aux;
233 remove();
234}
235
236// Shortcut for testing whether current input and output handles are the same.
237// This may happen if we are reading from the command history file that's filled

Callers

nothing calls this directly

Calls 2

removeFunction · 0.85
copy_fromMethod · 0.80

Tested by

no test coverage detected