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

Function regnext

src/engine/regexp.cpp:1148–1164  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

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