| 326 | |
| 327 | string name; |
| 328 | loopv(inames) |
| 329 | { |
| 330 | ident *id = idents->access(inames[i]); |
| 331 | if(!id || id->type != ID_COMMAND) continue; |
| 332 | f->printf("\t\t\t\t<command name=\"%s\">\n", xmlstringenc(name, id->name, MAXSTRLEN)); |
| 333 | f->printf("\t\t\t\t\t%s\n", desc); |
| 334 | if(id->sig && id->sig[0]) |
| 335 | { |
| 336 | f->printf("\t\t\t\t\t<arguments>\n"); |
| 337 | loopi(strlen(id->sig)) |
| 338 | { |
| 339 | f->printf("\t\t\t\t\t\t<argument token=\"%c\" description=\"TODO\"/>\n", id->sig[i]); |
| 340 | } |
| 341 | f->printf("\t\t\t\t\t</arguments>\n"); |
| 342 | } |
| 343 | f->printf("\t\t\t\t</command>\n"); |
| 344 | } |
| 345 | loopv(inames) |
| 346 | { |
| 347 | ident *id = idents->access(inames[i]); |
no test coverage detected