return form of the verb (input plural) if xname(otmp) were the subject */
| 2528 | |
| 2529 | /* return form of the verb (input plural) if xname(otmp) were the subject */ |
| 2530 | char * |
| 2531 | otense(struct obj *otmp, const char *verb) |
| 2532 | { |
| 2533 | char *buf; |
| 2534 | |
| 2535 | /* |
| 2536 | * verb is given in plural (without trailing s). Return as input |
| 2537 | * if the result of xname(otmp) would be plural. Don't bother |
| 2538 | * recomputing xname(otmp) at this time. |
| 2539 | */ |
| 2540 | if (!is_plural(otmp)) |
| 2541 | return vtense((char *) 0, verb); |
| 2542 | |
| 2543 | buf = nextobuf(); |
| 2544 | Strcpy(buf, verb); |
| 2545 | return buf; |
| 2546 | } |
| 2547 | |
| 2548 | /* various singular words that vtense would otherwise categorize as plural; |
| 2549 | also used by makesingular() to catch some special cases */ |
no test coverage detected