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

Function CMP_csb_element

src/jrd/cmp.cpp:223–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221
222
223CompilerScratch::csb_repeat* CMP_csb_element(CompilerScratch* csb, StreamType element)
224{
225/**************************************
226 *
227 * C M P _ c s b _ e l e m e n t
228 *
229 **************************************
230 *
231 * Functional description
232 * Find tail element of compiler scratch block. If the csb isn't big
233 * enough, extend it.
234 *
235 **************************************/
236 DEV_BLKCHK(csb, type_csb);
237 CompilerScratch::csb_repeat empty_item;
238 while (element >= csb->csb_rpt.getCount()) {
239 csb->csb_rpt.add(empty_item);
240 }
241 return &csb->csb_rpt[element];
242}
243
244
245const Format* CMP_format(thread_db* tdbb, CompilerScratch* csb, StreamType stream)

Callers 10

pass1EraseMethod · 0.85
setupMethod · 0.85
parseMethod · 0.85
pass1Method · 0.85
pass1UpdateFunction · 0.85
copyMethod · 0.85
pass1SourceMethod · 0.85
BlrParseWrapperMethod · 0.85
PAR_contextFunction · 0.85
PAR_procedure_parmsFunction · 0.85

Calls 2

getCountMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected