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

Method insert

src/isql/InputDevices.cpp:181–197  ·  view source on GitHub ↗

Insert an indev in the chain, always in LIFO way.

Source from the content-addressed store, hash-verified

179
180// Insert an indev in the chain, always in LIFO way.
181bool InputDevices::insert(FILE* fp, const char* name, const char* display)
182{
183 if (!m_head)
184 {
185 fb_assert(m_count == 0);
186 m_head = FB_NEW indev(fp, name, display);
187 }
188 else
189 {
190 fb_assert(m_count > 0);
191 indev* p = m_head;
192 m_head = FB_NEW indev(fp, name, display);
193 m_head->indev_next = p;
194 }
195 ++m_count;
196 return true;
197}
198
199// Shortcut for inserting the currently input file in the indev chain.
200bool InputDevices::insertIfp()

Callers 15

BURP_makeSymbolFunction · 0.45
prepareNameMethod · 0.45
addFrontMethod · 0.45
pass1Method · 0.45
MAKE_parameterFunction · 0.45
dsqlPassMethod · 0.45
getStatementMethod · 0.45
yylexAuxMethod · 0.45
dsqlPassMethod · 0.45
postTriggerAccessFunction · 0.45
expandPatternMethod · 0.45

Calls 1

indevClass · 0.85

Tested by

no test coverage detected