attempt to quiet some onefile complaints
This commit is contained in:
@@ -49,11 +49,4 @@
|
|||||||
#define DRAGON_SILVER CLR_BRIGHT_CYAN
|
#define DRAGON_SILVER CLR_BRIGHT_CYAN
|
||||||
#define HI_ZAP CLR_BRIGHT_BLUE
|
#define HI_ZAP CLR_BRIGHT_BLUE
|
||||||
|
|
||||||
struct menucoloring {
|
|
||||||
struct nhregex *match;
|
|
||||||
char *origstr;
|
|
||||||
int color, attr;
|
|
||||||
struct menucoloring *next;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* COLOR_H */
|
#endif /* COLOR_H */
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "lint.h"
|
#include "lint.h"
|
||||||
|
|
||||||
|
#include "color.h"
|
||||||
#include "align.h"
|
#include "align.h"
|
||||||
#include "dungeon.h"
|
#include "dungeon.h"
|
||||||
#include "objclass.h"
|
#include "objclass.h"
|
||||||
@@ -23,7 +24,6 @@
|
|||||||
#include "display.h"
|
#include "display.h"
|
||||||
|
|
||||||
#include "botl.h"
|
#include "botl.h"
|
||||||
#include "color.h"
|
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#include "dungeon.h"
|
#include "dungeon.h"
|
||||||
#include "engrave.h"
|
#include "engrave.h"
|
||||||
@@ -561,6 +561,12 @@ typedef struct ls_t {
|
|||||||
anything id; /* source's identifier */
|
anything id; /* source's identifier */
|
||||||
} light_source;
|
} light_source;
|
||||||
|
|
||||||
|
struct menucoloring {
|
||||||
|
struct nhregex *match;
|
||||||
|
char *origstr;
|
||||||
|
int color, attr;
|
||||||
|
struct menucoloring *next;
|
||||||
|
};
|
||||||
|
|
||||||
enum movemodes {
|
enum movemodes {
|
||||||
MV_ANY = -1,
|
MV_ANY = -1,
|
||||||
|
|||||||
@@ -99,15 +99,15 @@ static struct ll_achieve_msg achieve_msg [] = {
|
|||||||
/* macros to simplify output of enlightenment messages; also used by
|
/* macros to simplify output of enlightenment messages; also used by
|
||||||
conduct and achievements */
|
conduct and achievements */
|
||||||
#define enl_msg(prefix, present, past, suffix, ps) \
|
#define enl_msg(prefix, present, past, suffix, ps) \
|
||||||
enlght_line(prefix, final ? past : present, suffix, ps)
|
enlght_line((prefix), final ? (past) : (present), (suffix), (ps))
|
||||||
#define you_are(attr, ps) enl_msg(You_, are, were, attr, ps)
|
#define you_are(attr, ps) enl_msg(You_, are, were, (attr), (ps))
|
||||||
#define you_have(attr, ps) enl_msg(You_, have, had, attr, ps)
|
#define you_have(attr, ps) enl_msg(You_, have, had, (attr), (ps))
|
||||||
#define you_can(attr, ps) enl_msg(You_, can, could, attr, ps)
|
#define you_can(attr, ps) enl_msg(You_, can, could, (attr), (ps))
|
||||||
#define you_have_been(goodthing) enl_msg(You_, have_been, were, goodthing, "")
|
#define you_have_been(goodthing) enl_msg(You_, have_been, were, (goodthing), "")
|
||||||
#define you_have_never(badthing) \
|
#define you_have_never(badthing) \
|
||||||
enl_msg(You_, have_never, never, badthing, "")
|
enl_msg(You_, have_never, never, (badthing), "")
|
||||||
#define you_have_X(something) \
|
#define you_have_X(something) \
|
||||||
enl_msg(You_, have, (const char *) "", something, "")
|
enl_msg(You_, have, (const char *) "", (something), "")
|
||||||
|
|
||||||
static void
|
static void
|
||||||
enlght_out(const char *buf)
|
enlght_out(const char *buf)
|
||||||
|
|||||||
@@ -7107,10 +7107,12 @@ parsebindings(char *bindings)
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const struct color_names {
|
struct color_names {
|
||||||
const char *name;
|
const char *name;
|
||||||
int color;
|
int color;
|
||||||
} colornames[] = {
|
};
|
||||||
|
|
||||||
|
static const struct color_names colornames[] = {
|
||||||
{ "black", CLR_BLACK },
|
{ "black", CLR_BLACK },
|
||||||
{ "red", CLR_RED },
|
{ "red", CLR_RED },
|
||||||
{ "green", CLR_GREEN },
|
{ "green", CLR_GREEN },
|
||||||
@@ -7127,7 +7129,7 @@ static const struct color_names {
|
|||||||
{ "light cyan", CLR_BRIGHT_CYAN },
|
{ "light cyan", CLR_BRIGHT_CYAN },
|
||||||
{ "white", CLR_WHITE },
|
{ "white", CLR_WHITE },
|
||||||
{ "no color", NO_COLOR },
|
{ "no color", NO_COLOR },
|
||||||
{ NULL, CLR_BLACK }, /* everything after this is an alias */
|
{ (const char *) 0, CLR_BLACK }, /* everything after this is an alias */
|
||||||
{ "transparent", NO_COLOR },
|
{ "transparent", NO_COLOR },
|
||||||
{ "purple", CLR_MAGENTA },
|
{ "purple", CLR_MAGENTA },
|
||||||
{ "light purple", CLR_BRIGHT_MAGENTA },
|
{ "light purple", CLR_BRIGHT_MAGENTA },
|
||||||
@@ -7140,10 +7142,12 @@ static const struct color_names {
|
|||||||
{ "bright cyan", CLR_BRIGHT_CYAN }
|
{ "bright cyan", CLR_BRIGHT_CYAN }
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct attr_names {
|
struct attr_names {
|
||||||
const char *name;
|
const char *name;
|
||||||
int attr;
|
int attr;
|
||||||
} attrnames[] = {
|
};
|
||||||
|
|
||||||
|
static const struct attr_names attrnames[] = {
|
||||||
{ "none", ATR_NONE },
|
{ "none", ATR_NONE },
|
||||||
{ "bold", ATR_BOLD },
|
{ "bold", ATR_BOLD },
|
||||||
{ "dim", ATR_DIM },
|
{ "dim", ATR_DIM },
|
||||||
@@ -7151,7 +7155,7 @@ static const struct attr_names {
|
|||||||
{ "underline", ATR_ULINE },
|
{ "underline", ATR_ULINE },
|
||||||
{ "blink", ATR_BLINK },
|
{ "blink", ATR_BLINK },
|
||||||
{ "inverse", ATR_INVERSE },
|
{ "inverse", ATR_INVERSE },
|
||||||
{ NULL, ATR_NONE }, /* everything after this is an alias */
|
{ (const char *) 0, ATR_NONE }, /* everything after this is an alias */
|
||||||
{ "normal", ATR_NONE },
|
{ "normal", ATR_NONE },
|
||||||
{ "uline", ATR_ULINE },
|
{ "uline", ATR_ULINE },
|
||||||
{ "reverse", ATR_INVERSE },
|
{ "reverse", ATR_INVERSE },
|
||||||
|
|||||||
Reference in New Issue
Block a user