Shortcut for moving the top indev in the chain to the current input file.
| 224 | |
| 225 | // Shortcut for moving the top indev in the chain to the current input file. |
| 226 | void 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 |