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

Function PAR_args

src/jrd/par.cpp:793–812  ·  view source on GitHub ↗

Parse a counted argument list, given the count.

Source from the content-addressed store, hash-verified

791
792// Parse a counted argument list, given the count.
793ValueListNode* PAR_args(thread_db* tdbb, CompilerScratch* csb, USHORT count, USHORT allocCount)
794{
795 SET_TDBB(tdbb);
796
797 fb_assert(allocCount >= count);
798
799 MemoryPool& pool = *tdbb->getDefaultPool();
800 ValueListNode* node = FB_NEW_POOL(pool) ValueListNode(pool, allocCount);
801 NestConst<ValueExprNode>* ptr = node->items.begin();
802
803 if (count)
804 {
805 do
806 {
807 *ptr++ = PAR_parse_value(tdbb, csb);
808 } while (--count);
809 }
810
811 return node;
812}
813
814
815// Parse a counted argument list.

Callers 3

parseMethod · 0.85
parseMethod · 0.85
parseMethod · 0.85

Calls 6

SET_TDBBFunction · 0.85
PAR_parse_valueFunction · 0.85
ValueListNodeClass · 0.70
getDefaultPoolMethod · 0.45
beginMethod · 0.45
getByteMethod · 0.45

Tested by

no test coverage detected