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

Function repeatcharset

other_src/lua/src/lpeg.cpp:1590–1600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1588
1589
1590static int repeatcharset (lua_State *L, Charset cs, int l1, int n) {
1591 /* e; ...; e; span; */
1592 int i;
1593 Instruction *p = newpatt(L, n*l1 + CHARSETINSTSIZE);
1594 for (i = 0; i < n; i++) {
1595 p += addpatt(L, p, 1);
1596 }
1597 setinst(p, ISpan, 0);
1598 loopset(k, p[1].buff[k] = cs[k]);
1599 return 1;
1600}
1601
1602
1603static Instruction *repeatheadfail (lua_State *L, int l1, int n) {

Callers 1

star_lFunction · 0.85

Calls 2

newpattFunction · 0.85
addpattFunction · 0.85

Tested by

no test coverage detected