MCPcopy Create free account
hub / github.com/coreboot/coreboot / insert_op2

Function insert_op2

util/kconfig/regex.c:2111–2125  ·  view source on GitHub ↗
(op, loc, arg1, arg2, end)

Source from the content-addressed store, hash-verified

2109/* Like `insert_op1', but for two two-byte parameters ARG1 and ARG2. */
2110
2111static void
2112insert_op2 (op, loc, arg1, arg2, end)
2113 re_opcode_t op;
2114 unsigned char *loc;
2115 int arg1, arg2;
2116 unsigned char *end;
2117{
2118 register unsigned char *pfrom = end;
2119 register unsigned char *pto = end + 5;
2120
2121 while (pfrom != loc)
2122 *--pto = *--pfrom;
2123
2124 store_op2 (op, loc, arg1, arg2);
2125}
2126
2127
2128/* P points to just after a ^ in PATTERN. Return true if that ^ comes

Callers 1

regex_compileFunction · 0.85

Calls 1

store_op2Function · 0.85

Tested by

no test coverage detected