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:
@@ -337,7 +337,7 @@ E struct tc_gbl_data { /* also declared in tcap.h */
|
||||
#endif
|
||||
|
||||
/* xxxexplain[] is in drawing.c */
|
||||
E const char *monexplain[], *invisexplain, *objexplain[], *oclass_names[];
|
||||
E const char * const monexplain[], invisexplain[], * const objexplain[], * const oclass_names[];
|
||||
|
||||
/* Some systems want to use full pathnames for some subsets of file names,
|
||||
* rather than assuming that they're all in the current directory. This
|
||||
|
||||
@@ -2190,7 +2190,7 @@ E int FDECL(weapon_type, (struct obj *));
|
||||
E int NDECL(uwep_skill_type);
|
||||
E int FDECL(weapon_hit_bonus, (struct obj *));
|
||||
E int FDECL(weapon_dam_bonus, (struct obj *));
|
||||
E void FDECL(skill_init, (struct def_skill *));
|
||||
E void FDECL(skill_init, (const struct def_skill *));
|
||||
|
||||
/* ### were.c ### */
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ struct shclass {
|
||||
int iprob; /* probability of an item type */
|
||||
int itype; /* item type: if >=0 a class, if < 0 a specific item */
|
||||
} iprobs[5];
|
||||
const char **shknms; /* list of shopkeeper names for this type */
|
||||
const char * const *shknms; /* list of shopkeeper names for this type */
|
||||
};
|
||||
|
||||
extern NEARDATA struct mkroom rooms[(MAXNROFROOMS+1)*2];
|
||||
|
||||
Reference in New Issue
Block a user