periodic style check: whitespace cleanup

leading tabs and trailing blanks
This commit is contained in:
nhmall
2026-06-10 15:52:13 -04:00
parent 49ac961884
commit 958415607b
7 changed files with 19 additions and 18 deletions
+1 -1
View File
@@ -50,7 +50,7 @@
#endif /* !HAS_INTTYPES_H */ #endif /* !HAS_INTTYPES_H */
#if defined(__GNUC__) && defined(__INT64_MAX__) && !defined(HAS_STDINT_H) #if defined(__GNUC__) && defined(__INT64_MAX__) && !defined(HAS_STDINT_H)
#define HAS_STDINT_H #define HAS_STDINT_H
#endif #endif
#endif /* claims to be C99 */ #endif /* claims to be C99 */
#endif /*?__DECC*/ #endif /*?__DECC*/
+1 -1
View File
@@ -171,7 +171,7 @@
* extern void uplift_mystruct_rev0_to_mystruct(struct mystruct_rev0 *, * extern void uplift_mystruct_rev0_to_mystruct(struct mystruct_rev0 *,
* struct mystruct *); * struct mystruct *);
* *
* 17. Add the uplift function to src/revision.c. It needs to do * 17. Add the uplift function to src/revision.c. It needs to do
* field-by-field copies of the fields that exist in the old * field-by-field copies of the fields that exist in the old
* revision and the new revision. For now, it likely needs to * revision and the new revision. For now, it likely needs to
* be handcrafted using your knowledge of the struct's old * be handcrafted using your knowledge of the struct's old
+4 -4
View File
@@ -332,15 +332,15 @@
#endif #endif
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#define tparm2(s, x) tparm(s,x,0,0,0,0,0,0,0,0) #define tparm2(s, x) tparm(s,x,0,0,0,0,0,0,0,0)
#else #else
#define tparm2(s, x) tparm(s,x) #define tparm2(s, x) tparm(s,x)
#endif #endif
#if defined(BSD) || defined(ULTRIX) #if defined(BSD) || defined(ULTRIX)
#if !defined(DGUX) && !defined(SUNOS4) \ #if !defined(DGUX) && !defined(SUNOS4) \
&& !defined(__NetBSD__) && !defined(__FreeBSD__) \ && !defined(__NetBSD__) && !defined(__FreeBSD__) \
&& !defined(__OpenBSD__) && !defined(__OpenBSD__)
#define memcpy(d, s, n) bcopy(s, d, n) #define memcpy(d, s, n) bcopy(s, d, n)
#define memcmp(s1, s2, n) bcmp(s2, s1, n) #define memcmp(s1, s2, n) bcmp(s2, s1, n)
#endif #endif
+5 -5
View File
@@ -1757,11 +1757,11 @@ throwit(
} }
if (!dmg) { if (!dmg) {
if (tethered_weapon) { if (tethered_weapon) {
/* Blind mods unnecessary; you know what you threw, /* Blind mods unnecessary; you know what you threw,
* and it is tethered to your arm */ * and it is tethered to your arm */
pline("Your tethered %s snaps back but the tether slips from your %s.", pline("Your tethered %s snaps back but the tether slips from your %s.",
simpleonames(obj), body_part(ARM)); simpleonames(obj), body_part(ARM));
tether_released_msg = TRUE; tether_released_msg = TRUE;
} else { } else {
pline(Blind pline(Blind
? "%s lands %s your %s." ? "%s lands %s your %s."
+1 -1
View File
@@ -974,7 +974,7 @@ static struct datamodel_information dm[] = {
"", "" }, "", "" },
{ { 2, 4, 4, 8, 4 }, "ILP32LL64", "x86 32-bit" }, /* Windows or Unix */ { { 2, 4, 4, 8, 4 }, "ILP32LL64", "x86 32-bit" }, /* Windows or Unix */
{ { 2, 4, 4, 8, 8 }, "IL32LLP64", "Windows x64 64-bit" }, { { 2, 4, 4, 8, 8 }, "IL32LLP64", "Windows x64 64-bit" },
{ { 2, 4, 8, 8, 8 }, "I32LP64", "Unix 64-bit"}, { { 2, 4, 8, 8, 8 }, "I32LP64", "Unix 64-bit"},
{ { 2, 8, 8, 8, 8 }, "ILP64", "Unix ILP64"}, /* HAL, SPARC64 */ { { 2, 8, 8, 8, 8 }, "ILP64", "Unix ILP64"}, /* HAL, SPARC64 */
}; };
+2 -2
View File
@@ -5314,7 +5314,7 @@ optfn_boolean(
#ifndef IDLECHECKPOINT #ifndef IDLECHECKPOINT
case opt_idlecheckpoint: case opt_idlecheckpoint:
pline("There is no underlying support for 'idlecheckpoint'" pline("There is no underlying support for 'idlecheckpoint'"
" compiled in."); " compiled in.");
iflags.idlecheckpoint = FALSE; iflags.idlecheckpoint = FALSE;
give_opt_msg = FALSE; give_opt_msg = FALSE;
break; break;
@@ -7430,7 +7430,7 @@ allopt_array_init(void)
if (allopt[i].opttyp == BoolOpt && i != opt_ascii_map) if (allopt[i].opttyp == BoolOpt && i != opt_ascii_map)
allopt[i].initval = allopt[i].opt_in_out; allopt[i].initval = allopt[i].opt_in_out;
#endif #endif
*(allopt[i].addr) = allopt[i].initval; *(allopt[i].addr) = allopt[i].initval;
} }
} }
heed_all_options(); heed_all_options();
+5 -4
View File
@@ -106,7 +106,7 @@ void sf_log(NHFILE *, const char *, size_t, int, char *);
#define Sfvalue_xint16(a) sfvalue(a) #define Sfvalue_xint16(a) sfvalue(a)
#endif #endif
/* not in _Generic */ /* not in _Generic */
#define Sfvalue_long(a) sfvalue_long(a) #define Sfvalue_long(a) sfvalue_long(a)
#define Sfvalue_ulong(a) sfvalue_ulong(a) #define Sfvalue_ulong(a) sfvalue_ulong(a)
#define Sfvalue_char(a, d) sfvalue_char(a, d) #define Sfvalue_char(a, d) sfvalue_char(a, d)
@@ -195,7 +195,7 @@ void sfi_##dtyp(NHFILE *nhfp, keyw dtyp *d_##dtyp, const char *myname)
complex_dump((uchar *) d_##dtyp)); \ complex_dump((uchar *) d_##dtyp)); \
} \ } \
} }
#define SF_X(xxx, dtyp) \ #define SF_X(xxx, dtyp) \
void sfo_##dtyp(NHFILE *nhfp, xxx *d_##dtyp, const char *myname, int bfsz) \ void sfo_##dtyp(NHFILE *nhfp, xxx *d_##dtyp, const char *myname, int bfsz) \
{ \ { \
@@ -461,7 +461,7 @@ sfvalue_genericptr(genericptr a)
{ {
static char buf[20]; static char buf[20];
Snprintf(buf, sizeof buf, "%s", Snprintf(buf, sizeof buf, "%s",
(a == 0) ? "0" : "glorkum"); (a == 0) ? "0" : "glorkum");
return buf; return buf;
} }
@@ -632,7 +632,8 @@ complex_dump(uchar *a)
for (i = 0; i < SIZE(x); ++i) { for (i = 0; i < SIZE(x); ++i) {
x[i] = *uc++; x[i] = *uc++;
} }
Snprintf(buf, sizeof buf, "%03x %03x %03x %03x %03x %03x %03x %03x %03x %03x", Snprintf(buf, sizeof buf,
"%03x %03x %03x %03x %03x %03x %03x %03x %03x %03x",
x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8], x[9]); x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8], x[9]);
buf[40] = '\0'; buf[40] = '\0';
return buf; return buf;