| 191 | } |
| 192 | |
| 193 | static void PrintLocals(const Proto* f) |
| 194 | { |
| 195 | int i,n=f->sizelocvars; |
| 196 | printf("locals (%d) for %p:\n",n,VOID(f)); |
| 197 | for (i=0; i<n; i++) |
| 198 | { |
| 199 | printf("\t%d\t%s\t%d\t%d\n", |
| 200 | i,getstr(f->locvars[i].varname),f->locvars[i].startpc+1,f->locvars[i].endpc+1); |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | static void PrintUpvalues(const Proto* f) |
| 205 | { |