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

Function any

other_src/lua/src/lpeg.cpp:1239–1248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237
1238
1239static Instruction *any (lua_State *L, int n, int extra, int *offsetp) {
1240 int offset = offsetp ? *offsetp : 0;
1241 Instruction *p = newpatt(L, (n - 1)/UCHAR_MAX + extra + 1);
1242 Instruction *p1 = p + offset;
1243 for (; n > UCHAR_MAX; n -= UCHAR_MAX)
1244 setinstaux(p1++, IAny, 0, UCHAR_MAX);
1245 setinstaux(p1++, IAny, 0, n);
1246 if (offsetp) *offsetp = p1 - p;
1247 return p;
1248}
1249
1250
1251static Instruction *getpatt (lua_State *L, int idx, int *size) {

Callers 2

getpattFunction · 0.85
concat_lFunction · 0.85

Calls 2

newpattFunction · 0.85
setinstauxFunction · 0.85

Tested by

no test coverage detected