| 1000 | |
| 1001 | |
| 1002 | static int addpatt (lua_State *L, Instruction *p, int p1idx) { |
| 1003 | Instruction *p1 = (Instruction *)lua_touserdata(L, p1idx); |
| 1004 | int sz = pattsize(L, p1idx); |
| 1005 | int corr = jointable(L, p1idx); |
| 1006 | copypatt(p, p1, sz + 1); |
| 1007 | if (corr != 0) { |
| 1008 | Instruction *px; |
| 1009 | for (px = p; px < p + sz; px += sizei(px)) { |
| 1010 | if (isfenvoff(px) && px->i.offset != 0) |
| 1011 | px->i.offset += corr; |
| 1012 | } |
| 1013 | } |
| 1014 | return sz; |
| 1015 | } |
| 1016 | |
| 1017 | |
| 1018 | static void setinstaux (Instruction *i, Opcode op, int offset, int aux) { |
no test coverage detected