| 219 | |
| 220 | |
| 221 | static int searchupvalue (FuncState *fs, TString *name) { |
| 222 | int i; |
| 223 | Upvaldesc *up = fs->f->upvalues; |
| 224 | for (i = 0; i < fs->nups; i++) { |
| 225 | if (luaS_eqstr(up[i].name, name)) return i; |
| 226 | } |
| 227 | return -1; /* not found */ |
| 228 | } |
| 229 | |
| 230 | |
| 231 | static int newupvalue (FuncState *fs, TString *name, expdesc *v) { |
no test coverage detected