onefile fix
This commit is contained in:
@@ -64,6 +64,9 @@ extern const char *fqn_prefix_names[PREFIX_COUNT];
|
||||
extern NEARDATA boolean has_strong_rngseed;
|
||||
extern struct engr *head_engr;
|
||||
|
||||
/* used by coloratt.c, options.c, utf8map.c, windows.c */
|
||||
extern const char hex[33];
|
||||
|
||||
/* material strings */
|
||||
extern const char *materialnm[];
|
||||
|
||||
|
||||
@@ -219,8 +219,6 @@ static struct nethack_color colortable[] = {
|
||||
{ rgb_color, 154, 138, "white", "#FFFFFF", 255, 255, 255 },
|
||||
};
|
||||
|
||||
static const char hex[] = "00112233445566778899aAbBcCdDeEfF";
|
||||
|
||||
int32
|
||||
colortable_to_int32(struct nethack_color *cte)
|
||||
{
|
||||
@@ -784,6 +782,7 @@ wc_color_name(int32 colorindx)
|
||||
return result;
|
||||
}
|
||||
|
||||
/* hex[] is defined in decl.c */
|
||||
boolean
|
||||
onlyhexdigits(const char *buf)
|
||||
{
|
||||
|
||||
@@ -93,6 +93,9 @@ const char *fqn_prefix_names[PREFIX_COUNT] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
/* used by coloratt.c, options.c, utf8map.c, windows.c */
|
||||
const char hex[33] = "00112233445566778899aAbBcCdDeEfF";
|
||||
|
||||
/* x/y/z deltas for the 10 movement directions (8 compass pts, 2 down/up) */
|
||||
const schar xdir[N_DIRS_Z] = { -1, -1, 0, 1, 1, 1, 0, -1, 0, 0 };
|
||||
const schar ydir[N_DIRS_Z] = { 0, -1, -1, -1, 0, 1, 1, 1, 0, 0 };
|
||||
|
||||
@@ -6661,8 +6661,9 @@ staticfn void
|
||||
escapes(const char *cp, /* might be 'tp', updating in place */
|
||||
char *tp) /* result is never longer than 'cp' */
|
||||
{
|
||||
static NEARDATA const char oct[] = "01234567", dec[] = "0123456789",
|
||||
hex[] = "00112233445566778899aAbBcCdDeEfF";
|
||||
static NEARDATA const char oct[] = "01234567", dec[] = "0123456789";
|
||||
/* hex[] is defined in decl.c */
|
||||
|
||||
const char *dp;
|
||||
int cval, meta, dcount;
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ crashreport_init(int argc UNUSED, char *argv[] UNUSED)
|
||||
goto skip;
|
||||
close(fd);
|
||||
|
||||
static const char hex[] = "0123456789abcdef";
|
||||
static const char hexdigits[] = "0123456789abcdef";
|
||||
char *p = bid;
|
||||
unsigned char *in;
|
||||
HASH_RESULT(ctxp, &in);
|
||||
@@ -158,8 +158,8 @@ crashreport_init(int argc UNUSED, char *argv[] UNUSED)
|
||||
cnt = (uint8) sizeof bid / 2 - 1;
|
||||
while (cnt) {
|
||||
/* sprintf(p, "%02x", *in++), p += 2; */
|
||||
*p++ = hex[(*in >> 4) & 0x0f];
|
||||
*p++ = hex[*in++ & 0x0f];
|
||||
*p++ = hexdigits[(*in >> 4) & 0x0f];
|
||||
*p++ = hexdigits[*in++ & 0x0f];
|
||||
--cnt;
|
||||
}
|
||||
*p = '\0';
|
||||
|
||||
@@ -13,8 +13,7 @@ extern struct enum_dump objdump[];
|
||||
extern glyph_map glyphmap[MAX_GLYPH];
|
||||
extern const char *const known_handling[]; /* symbols.c */
|
||||
|
||||
static const char hex[] = "00112233445566778899aAbBcCdDeEfF";
|
||||
|
||||
/* hex[] is defined in decl.c */
|
||||
|
||||
int
|
||||
unicode_val(const char *cp)
|
||||
|
||||
@@ -1432,10 +1432,11 @@ encglyph(int glyph)
|
||||
return encbuf;
|
||||
}
|
||||
|
||||
/* hex[] is defined in decl.c */
|
||||
|
||||
int
|
||||
decode_glyph(const char *str, int *glyph_ptr)
|
||||
{
|
||||
static const char hex[] = "00112233445566778899aAbBcCdDeEfF";
|
||||
int rndchk = 0, dcount = 0, retval = 0;
|
||||
const char *dp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user