some trailing whitespace in src, include

This commit is contained in:
nhmall
2021-10-16 12:12:21 -04:00
parent 711007cd44
commit 39713783d1
25 changed files with 52 additions and 52 deletions

View File

@@ -119,7 +119,7 @@ struct sinfo {
/* NetHack ftypes */
#define NHF_LEVELFILE 1
#define NHF_SAVEFILE 2
#define NHF_SAVEFILE 2
#define NHF_BONESFILE 3
/* modes */
#define READING 0x0
@@ -137,7 +137,7 @@ struct fieldlevel_content {
boolean binary; /* binary rather than text */
boolean json; /* JSON */
};
typedef struct {
int fd; /* for traditional structlevel binary writes */
int mode; /* holds READING, WRITING, or FREEING modes */
@@ -822,7 +822,7 @@ struct instance_globals {
dlevel_t level; /* level map */
long moves; /* turn counter */
long wailmsg;
struct obj *migrating_objs; /* objects moving to another dungeon level */
struct obj *migrating_objs; /* objects moving to another dungeon level */
struct obj *billobjs; /* objects not yet paid for */
#if defined(MICRO) || defined(WIN32)
char hackdir[PATHLEN]; /* where rumors, help, record are */
@@ -832,7 +832,7 @@ struct instance_globals {
struct context_info context;
char *fqn_prefix[PREFIX_COUNT];
/* Windowing stuff that's really tty oriented, but present for all ports */
struct tc_gbl_data tc_gbl_data; /* AS,AE, LI,CO */
struct tc_gbl_data tc_gbl_data; /* AS,AE, LI,CO */
#if defined(UNIX) || defined(VMS)
int locknum; /* max num of simultaneous users */
#endif
@@ -883,7 +883,7 @@ struct instance_globals {
char dogname[PL_PSIZ];
char catname[PL_PSIZ];
char horsename[PL_PSIZ];
char preferred_pet; /* '\0', 'c', 'd', 'n' (none) */
char preferred_pet; /* '\0', 'c', 'd', 'n' (none) */
struct monst *mydogs; /* monsters that went down/up together with @ */
struct monst *migrating_mons; /* monsters moving to another level */
struct autopickup_exception *apelist;
@@ -949,7 +949,7 @@ struct instance_globals {
/* invent.c */
int lastinvnr; /* 0 ... 51 (never saved&restored) */
unsigned sortlootmode; /* set by sortloot() for use by sortloot_cmp();
unsigned sortlootmode; /* set by sortloot() for use by sortloot_cmp();
* reset by sortloot when done */
char *invbuf;
unsigned invbufsiz;
@@ -990,7 +990,7 @@ struct instance_globals {
int min_rx; /* rectangle bounds for regions */
int max_rx;
int min_ry;
int max_ry;
int max_ry;
int n_loc_filled;
/* mkmaze.c */

View File

@@ -158,7 +158,7 @@ typedef struct branch {
#define MIGR_WITH_HERO 9 /* mon: followers; obj: trap door */
#define MIGR_NOBREAK 1024 /* bitmask: don't break on delivery */
#define MIGR_NOSCATTER 2048 /* don't scatter on delivery */
#define MIGR_TO_SPECIES 4096 /* migrating to species as they are made */
#define MIGR_TO_SPECIES 4096 /* migrating to species as they are made */
#define MIGR_LEFTOVERS 8192 /* grab remaining MIGR_TO_SPECIES objects */
/* level information (saved via ledger number) */

View File

@@ -2,7 +2,7 @@
/*-Copyright (c) Michael Allison, 2020. */
/* NetHack may be freely redistributed. See license for details. */
#ifndef FNAMESIZ_H
#ifndef FNAMESIZ_H
#define FNAMESIZ_H
/*

View File

@@ -418,10 +418,10 @@ opt_##a,
&flags.showrace)
#ifdef SCORE_ON_BOTL
NHOPTB(showscore, 0, opt_in, set_in_game, Off, Yes, No, No, NoAlias,
&flags.showscore)
&flags.showscore)
#else
NHOPTB(showscore, 0, opt_in, set_in_config, Off, Yes, No, No, NoAlias,
(boolean *) 0)
(boolean *) 0)
#endif
NHOPTB(silent, 0, opt_out, set_in_game, On, Yes, No, No, NoAlias,
&flags.silent)
@@ -443,7 +443,7 @@ opt_##a,
&iflags.status_updates)
NHOPTO("status condition fields", o_status_cond, BUFSZ, opt_in,
set_in_game, No, Yes, No, NoAlias, "edit status condition fields")
#ifdef STATUS_HILITES
#ifdef STATUS_HILITES
NHOPTC(statushilites, 20, opt_in, set_in_game, Yes, Yes, Yes, No, NoAlias,
"0=no status highlighting, N=show highlights for N turns")
NHOPTO("status hilite rules", o_status_hilites, BUFSZ, opt_in, set_in_game,

View File

@@ -85,7 +85,7 @@
* fix potential buffer overflow in pline(), raw_printf(), and config_error_add()
* fix potential buffer overflow in choose_windows()
* use vsnprintf instead of vsprintf in pline.c where possible
* Windows: incldues a fix from a 3.6.4 post-release update where
* Windows: incldues a fix from a 3.6.4 post-release update where
* OPTIONS=map_mode:fit_to_screen could cause a game start failure
* Windows: users with C-locale unmappable names could get game start failure
*/

View File

@@ -23,7 +23,7 @@
#define CONFIG_FILE "defaults.nh"
#define GUIDEBOOK_FILE "Guidebook.txt"
/*
* The following options are somewhat configurable depending on
* your compiler.

View File

@@ -34,7 +34,7 @@ struct TileSetImage {
struct Pixel *pixels; /* for direct color */
unsigned char *indexes; /* for paletted images */
struct Pixel palette[256];
/* Image description from the file */
char *image_desc;

View File

@@ -169,7 +169,7 @@ PANICTRACE_GDB=2 #at conclusion of panic, show a call traceback and then
#define FCMASK 0660 /* file creation mask */
/*
*
*
*/
#define NO_VSNPRINTF /* Avoid vsnprintf, use less-safe vsprintf instead. */
@@ -178,12 +178,12 @@ PANICTRACE_GDB=2 #at conclusion of panic, show a call traceback and then
*/
/* This used to be force-defined for VMS in topten.c, but with
* the global variable consolidation into g in 3.7, it has to be
* the global variable consolidation into g in 3.7, it has to be
* defined here so that decl.h includes the field in g.
*/
#define UPDATE_RECORD_IN_PLACE
/* data librarian defs */
/* data librarian defs */
#ifdef DLB
#define DLBFILE "nh-data.dlb"
/*

View File

@@ -111,7 +111,7 @@ extern void interject(int);
#endif
/* extern int getlock(void); */
#endif
#ifdef _MSC_VER
#define HAS_STDINT
#if (_MSC_VER > 1000)