MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / interfere

Function interfere

other_src/lua/src/lpeg.cpp:1494–1504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1492
1493
1494static int interfere (Instruction *p1, int l1, CharsetTag *st2) {
1495 if (nofail(p1, l1)) /* p1 cannot fail? */
1496 return 0; /* nothing can intefere with it */
1497 if (st2->tag == NOINFO) return 1;
1498 assert(p1->i.offset != 0);
1499 switch (p1->i.code) {
1500 case IChar: return testchar(st2->cs, p1->i.aux);
1501 case ISet: return !exclusiveset(st2->cs, (p1 + 1)->buff);
1502 default: assert(p1->i.code == IAny); return 1;
1503 }
1504}
1505
1506
1507static Instruction *basicUnion (lua_State *L, Instruction *p1, int l1,

Callers 1

separatepartsFunction · 0.85

Calls 2

nofailFunction · 0.85
exclusivesetFunction · 0.85

Tested by

no test coverage detected