prefix_val = -1;
while (*op && num < sizeof flags.end_disclose - 1) {
register char c, *dop;
- char valid_settings[] = {
+ static char valid_settings[] = {
DISCLOSE_PROMPT_DEFAULT_YES,
DISCLOSE_PROMPT_DEFAULT_NO,
DISCLOSE_YES_WITHOUT_PROMPT,
* The order of disclose_names[]
* must correspond to disclosure_options in decl.h
*/
- const char *disclosure_names[] = {
+ static const char *disclosure_names[] = {
"inventory", "attributes", "vanquished", "genocides", "conduct"
};
int disc_cat[NUM_DISCLOSURE_OPTIONS];
int j;
char buf[BUFSZ];
char *wn, *tfg, *tbg, *newop;
- char *wnames[] = {"menu", "message", "status", "text"};
- char *shortnames[] = {"mnu", "msg", "sts", "txt"};
- char **fgp[] = {
+ static char *wnames[] = {"menu", "message", "status", "text"};
+ static char *shortnames[] = {"mnu", "msg", "sts", "txt"};
+ static char **fgp[] = {
&iflags.wc_foregrnd_menu,
&iflags.wc_foregrnd_message,
&iflags.wc_foregrnd_status,
&iflags.wc_foregrnd_text
};
- char **bgp[] = {
+ static char **bgp[] = {
&iflags.wc_backgrnd_menu,
&iflags.wc_backgrnd_message,
&iflags.wc_backgrnd_status,
i = entry - tilenum;
if (i < (MAXEXPCHARS * EXPL_MAX)) {
if (set == OTH_GLYPH) {
- char *explosion_types[] = { /* hack.h */
+ static char *explosion_types[] = { /* hack.h */
"dark", "noxious", "muddy", "wet",
"magical", "fiery", "frosty"
};