string constants

<Someone> wrote:
> Linux, Redhat 7.1 nethack 3.4.0
>
>Please see attached patch file.
>
>I'm attempting to move more stuff into the "read-only" area, in
>preparation for a port to another OS.
This commit is contained in:
nethack.allison
2002-08-20 08:05:20 +00:00
parent ab63d7830e
commit fc319a4be0
27 changed files with 128 additions and 128 deletions

View File

@@ -46,10 +46,10 @@ const char def_oc_syms[MAXOCLASSES] = {
VENOM_SYM
};
const char *invisexplain = "remembered, unseen, creature";
const char invisexplain[] = "remembered, unseen, creature";
/* Object descriptions. Used in do_look(). */
const char *objexplain[] = { /* these match def_oc_syms, above */
const char * const objexplain[] = { /* these match def_oc_syms, above */
/* 0*/ 0,
"strange object",
"weapon",
@@ -71,7 +71,7 @@ const char *objexplain[] = { /* these match def_oc_syms, above */
};
/* Object class names. Used in object_detect(). */
const char *oclass_names[] = {
const char * const oclass_names[] = {
/* 0*/ 0,
"illegal objects",
"weapons",
@@ -161,7 +161,7 @@ const char def_monsyms[MAXMCLASSES] = {
* for blessed genocide, so no text should wholly contain any later
* text. They should also always contain obvious names (eg. cat/feline).
*/
const char *monexplain[MAXMCLASSES] = {
const char * const monexplain[MAXMCLASSES] = {
0,
"ant or other insect", "blob", "cockatrice",
"dog or other canine", "eye or sphere", "cat or other feline",