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

Function PAR_marks

src/jrd/par.cpp:653–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651
652
653ULONG PAR_marks(Jrd::CompilerScratch* csb)
654{
655 if (csb->csb_blr_reader.getByte() != blr_marks)
656 PAR_syntax_error(csb, "blr_marks");
657
658 switch (csb->csb_blr_reader.getByte())
659 {
660 case 1:
661 return csb->csb_blr_reader.getByte();
662
663 case 2:
664 return csb->csb_blr_reader.getWord();
665
666 case 4:
667 return csb->csb_blr_reader.getLong();
668 }
669 PAR_syntax_error(csb, "valid length for blr_marks value (1, 2, or 4)");
670 return 0;
671}
672
673CompilerScratch* PAR_parse(thread_db* tdbb, const UCHAR* blr, ULONG blr_length,
674 bool internal_flag, ULONG dbginfo_length, const UCHAR* dbginfo)

Callers 1

parseMethod · 0.85

Calls 4

PAR_syntax_errorFunction · 0.85
getLongMethod · 0.80
getByteMethod · 0.45
getWordMethod · 0.45

Tested by

no test coverage detected