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