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

Function prt_que

src/lock/print.cpp:1592–1623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1590
1591
1592static void prt_que(OUTFILE outfile,
1593 const lhb* LOCK_header,
1594 const SCHAR* string, const srq* que_inst, USHORT que_offset,
1595 const TEXT* prefix)
1596{
1597/**************************************
1598 *
1599 * p r t _ q u e
1600 *
1601 **************************************
1602 *
1603 * Functional description
1604 * Print the contents of a self-relative que.
1605 *
1606 **************************************/
1607 const SLONG offset = SRQ_REL_PTR(que_inst);
1608
1609 if (offset == que_inst->srq_forward && offset == que_inst->srq_backward)
1610 {
1611 FPRINTF(outfile, "%s: *empty*\n", string);
1612 return;
1613 }
1614
1615 SLONG count = 0;
1616 const srq* next;
1617 SRQ_LOOP((*que_inst), next)
1618 ++count;
1619
1620 FPRINTF(outfile, "%s (%" SLONGFORMAT"):\tforward: %s, backward: %s\n", string, count,
1621 (const TEXT*) HtmlLink(prefix, que_inst->srq_forward - que_offset),
1622 (const TEXT*) HtmlLink(prefix, que_inst->srq_backward - que_offset));
1623}
1624
1625
1626static void prt_que2(OUTFILE outfile,

Callers 3

CLIB_ROUTINE mainFunction · 0.70
prt_lockFunction · 0.70
prt_ownerFunction · 0.70

Calls 1

HtmlLinkClass · 0.85

Tested by

no test coverage detected