-/* $NetBSD: inventory.c,v 1.5 1997/10/12 11:45:11 lukem Exp $ */
+/* $NetBSD: inventory.c,v 1.6 1998/11/10 13:01:32 hubertf Exp $ */
/*
* Copyright (c) 1988, 1993
#if 0
static char sccsid[] = "@(#)inventory.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: inventory.c,v 1.5 1997/10/12 11:45:11 lukem Exp $");
+__RCSID("$NetBSD: inventory.c,v 1.6 1998/11/10 13:01:32 hubertf Exp $");
#endif
#endif /* not lint */
#include "rogue.h"
boolean is_wood[WANDS];
-char *press_space = " --press space to continue--";
+const char *press_space = " --press space to continue--";
-char *wand_materials[WAND_MATERIALS] = {
+const char *const wand_materials[WAND_MATERIALS] = {
"steel ",
"bronze ",
"gold ",
"wooden "
};
-char *gems[GEMS] = {
+const char *const gems[GEMS] = {
"diamond ",
"stibotantalite ",
"lapi-lazuli ",
"garnet "
};
-char *syllables[MAXSYLLABLES] = {
+const char *const syllables[MAXSYLLABLES] = {
"blech ",
"foo ",
"barf ",
struct id_com_s {
short com_char;
- char *com_desc;
+ const char *com_desc;
};
-struct id_com_s com_id_tab[COMS] = {
+const struct id_com_s com_id_tab[COMS] = {
{'?', "? prints help"},
{'r', "r read scroll"},
{'/', "/ identify object"},
void
inventory(pack, mask)
- object *pack;
+ const object *pack;
unsigned short mask;
{
object *obj;
void
get_desc(obj, desc)
- object *obj;
+ const object *obj;
char *desc;
{
- char *item_name;
+ const char *item_name;
struct id *id_table;
char more_info[32];
short i;
struct id *
get_id_table(obj)
- object *obj;
+ const object *obj;
{
switch(obj->what_is) {
case SCROL:
void
id_type()
{
- char *id;
+ const char *id;
int ch;
char buf[DCOLS];