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

Function regnext

v2/engine/regexp.c:1147–1163  ·  view source on GitHub ↗

- regnext - dig the "next" pointer out of a node */

Source from the content-addressed store, hash-verified

1145 - regnext - dig the "next" pointer out of a node
1146 */
1147static char *
1148regnext( register char *p )
1149{
1150 register int offset;
1151
1152 if (p == &regdummy)
1153 return(NULL);
1154
1155 offset = NEXT(p);
1156 if (offset == 0)
1157 return(NULL);
1158
1159 if (OP(p) == BACK)
1160 return(p-offset);
1161 else
1162 return(p+offset);
1163}
1164
1165#ifdef DEBUG
1166

Callers 5

regcompFunction · 0.85
regFunction · 0.85
regtailFunction · 0.85
regmatchFunction · 0.85
regdumpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected