version 1.48 | | version 1.49 |
---|
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.48 2005/07/15 13:51:48 ryo_saeba Exp $"; | | * "$Id: item.c,v 1.49 2005/08/12 13:46:34 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* query_short_name(object) is similar to query_name, but doesn't | | * query_short_name(object) is similar to query_name, but doesn't |
* contain any information about object status (worn/cursed/etc.) | | * contain any information about object status (worn/cursed/etc.) |
*/ | | */ |
char *query_short_name(object *op) | | const char *query_short_name(object *op) |
{ | | { |
static char buf[HUGE_BUF]; | | static char buf[HUGE_BUF]; |
char buf2[HUGE_BUF]; | | char buf2[HUGE_BUF]; |
| | |
* and sending to client. | | * and sending to client. |
* If plural is set, we generate the plural name of this. | | * If plural is set, we generate the plural name of this. |
*/ | | */ |
char *query_base_name(object *op, int plural) { | | const char *query_base_name(object *op, int plural) { |
static char buf[MAX_BUF], buf2[MAX_BUF]; | | static char buf[MAX_BUF], buf2[MAX_BUF]; |
int len; | | int len; |
materialtype_t *mt; | | materialtype_t *mt; |