MCPcopy Create free account
hub / github.com/boostorg/build / reginsert

Function reginsert

v2/engine/regexp.c:694–718  ·  view source on GitHub ↗

- reginsert - insert an operator in front of already-emitted operand * * Means relocating the operand. */

Source from the content-addressed store, hash-verified

692 * Means relocating the operand.
693 */
694static void
695reginsert(
696 char op,
697 char *opnd )
698{
699 register char *src;
700 register char *dst;
701 register char *place;
702
703 if (regcode == &regdummy) {
704 regsize += 3;
705 return;
706 }
707
708 src = regcode;
709 regcode += 3;
710 dst = regcode;
711 while (src > opnd)
712 *--dst = *--src;
713
714 place = opnd; /* Op node, where operand used to be. */
715 *place++ = op;
716 *place++ = '\0';
717 *place++ = '\0';
718}
719
720/*
721 - regtail - set the next-pointer at the end of a node chain

Callers 1

regpieceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected