| 1237 | |
| 1238 | |
| 1239 | static 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 | |
| 1251 | static Instruction *getpatt (lua_State *L, int idx, int *size) { |
no test coverage detected