replace some leading tabs that had crept in

This commit is contained in:
nhmall
2024-06-10 10:57:59 -04:00
parent bc897ac69c
commit 588b3ae92f
11 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -237,13 +237,13 @@ static int optfn_##a(int, int, boolean, char *, char *);
#ifdef CRASHREPORT #ifdef CRASHREPORT
NHOPTC(crash_email, Advanced, PL_NSIZ, opt_in, set_in_game, NHOPTC(crash_email, Advanced, PL_NSIZ, opt_in, set_in_game,
No, Yes, No, No, NoAlias, No, Yes, No, No, NoAlias,
"email address for reporting") "email address for reporting")
NHOPTC(crash_name, Advanced, PL_NSIZ, opt_in, set_in_game, NHOPTC(crash_name, Advanced, PL_NSIZ, opt_in, set_in_game,
No, Yes, No, No, NoAlias, No, Yes, No, No, NoAlias,
"your name for reporting") "your name for reporting")
NHOPTC(crash_urlmax, Advanced, PL_NSIZ, opt_in, set_in_game, NHOPTC(crash_urlmax, Advanced, PL_NSIZ, opt_in, set_in_game,
No, Yes, No, No, NoAlias, No, Yes, No, No, NoAlias,
"length of longest url we can generate") "length of longest url we can generate")
#endif #endif
#ifdef CURSES_GRAPHICS #ifdef CURSES_GRAPHICS
NHOPTC(cursesgraphics, Advanced, 70, opt_in, set_in_config, NHOPTC(cursesgraphics, Advanced, 70, opt_in, set_in_config,
+1 -1
View File
@@ -16,7 +16,7 @@ enum wp_ids { wp_tty = 1, wp_X11, wp_Qt, wp_mswin, wp_curses,
#ifdef OUTDATED_STUFF #ifdef OUTDATED_STUFF
wp_mac, wp_Gem, wp_Gnome, wp_amii, wp_amiv, wp_mac, wp_Gem, wp_Gnome, wp_amii, wp_amiv,
#endif #endif
wp_trace // XXX do we need this? should chainin/out get an id? TBD wp_trace // XXX do we need this? should chainin/out get an id? TBD
}; };
/* NB: this MUST match chain_procs below */ /* NB: this MUST match chain_procs below */
+1 -1
View File
@@ -952,7 +952,7 @@ argcheck(int argc, char *argv[], enum earlyarg e_arg)
for (idx = 0; idx < SIZE(earlyopts); idx++) { for (idx = 0; idx < SIZE(earlyopts); idx++) {
if (earlyopts[idx].e == e_arg){ if (earlyopts[idx].e == e_arg){
break; break;
} }
} }
if (idx >= SIZE(earlyopts) || argc < 1) if (idx >= SIZE(earlyopts) || argc < 1)
return 0; return 0;
+1 -1
View File
@@ -162,7 +162,7 @@ time_from_yyyymmddhhmmss(char *buf)
timeresult = mktime(&t); timeresult = mktime(&t);
} }
if (timeresult == (time_t) -1) if (timeresult == (time_t) -1)
; ;
#if 0 #if 0
TODO: set_debugpline1, debugpline1 -> function pointer TODO: set_debugpline1, debugpline1 -> function pointer
debugpline1("time_from_yyyymmddhhmmss(%s) would have returned -1", debugpline1("time_from_yyyymmddhhmmss(%s) would have returned -1",
+1 -1
View File
@@ -2496,7 +2496,7 @@ glibr(void)
} else if (wastwoweap) { } else if (wastwoweap) {
/* preceding msg was about non-dominant hand */ /* preceding msg was about non-dominant hand */
which = URIGHTY ? "right " : "left "; which = URIGHTY ? "right " : "left ";
} }
pline("%s %s%s %s%s from your %s%s.", pline("%s %s%s %s%s from your %s%s.",
!strncmp(thiswep, "corpse", 6) ? "The" : "Your", !strncmp(thiswep, "corpse", 6) ? "The" : "Your",
otherwep ? "other " : "", thiswep, xfl ? "also " : "", otherwep ? "other " : "", thiswep, xfl ? "also " : "",
+1 -1
View File
@@ -1923,7 +1923,7 @@ make_lockname(const char *filename UNUSED_conditional, char *lockname)
/* lock a file */ /* lock a file */
boolean boolean
lock_file(const char *filename, int whichprefix, lock_file(const char *filename, int whichprefix,
int retryct UNUSED_conditional) int retryct UNUSED_conditional)
{ {
#ifndef USE_FCNTL #ifndef USE_FCNTL
char locknambuf[BUFSZ]; char locknambuf[BUFSZ];
+2 -2
View File
@@ -43,8 +43,8 @@ is_home_elemental(struct permonst *ptr)
case PM_WATER_ELEMENTAL: case PM_WATER_ELEMENTAL:
return Is_waterlevel(&u.uz); return Is_waterlevel(&u.uz);
default: default:
break; break;
} }
return FALSE; return FALSE;
} }
+1 -1
View File
@@ -2000,7 +2000,7 @@ nhl_pcall_handle(lua_State *L, int nargs, int nresults, const char *name,
nud->name ? nud->name : "(unknown)", nud->name ? nud->name : "(unknown)",
lua_tostring(L, -1)); lua_tostring(L, -1));
/* Drop the error. If the caller cares, use nhl_pcall(). */ /* Drop the error. If the caller cares, use nhl_pcall(). */
lua_pop(L, 1); lua_pop(L, 1);
} }
} }
return rv; return rv;
+1 -1
View File
@@ -8519,7 +8519,7 @@ doset_simple(void)
adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings); adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
if (go.opt_update_basic_palette) { if (go.opt_update_basic_palette) {
#ifdef CHANGE_COLOR #ifdef CHANGE_COLOR
change_palette(); change_palette();
#endif #endif
go.opt_update_basic_palette = FALSE; go.opt_update_basic_palette = FALSE;
} }
+3 -3
View File
@@ -405,7 +405,7 @@ printf("ShellExecute returned: %p\n",rv); // >32 is ok
if (pid == 0) { if (pid == 0) {
char err[100]; char err[100];
# ifdef CRASHREPORT_EXEC_NOSTDERR # ifdef CRASHREPORT_EXEC_NOSTDERR
int devnull; int devnull;
/* Keep the output clean - firefox spews useless errors on /* Keep the output clean - firefox spews useless errors on
* my system. */ * my system. */
(void) close(2); (void) close(2);
@@ -416,9 +416,9 @@ printf("ShellExecute returned: %p\n",rv); // >32 is ok
Sprintf(err, "Can't start " CRASHREPORT ": %s", strerror(errno)); Sprintf(err, "Can't start " CRASHREPORT ": %s", strerror(errno));
raw_print(err); raw_print(err);
# ifdef CRASHREPORT_EXEC_NOSTDERR # ifdef CRASHREPORT_EXEC_NOSTDERR
(void) close(devnull); (void) close(devnull);
# endif # endif
exit(1); exit(1);
} else { } else {
int status; int status;
errno = 0; errno = 0;
+1 -1
View File
@@ -21,7 +21,7 @@ staticfn boolean hitum_cleave(struct monst *, struct attack *) NO_NNARGS;
staticfn boolean double_punch(void); staticfn boolean double_punch(void);
staticfn boolean hitum(struct monst *, struct attack *) NONNULLARG1; staticfn boolean hitum(struct monst *, struct attack *) NONNULLARG1;
staticfn void hmon_hitmon_barehands(struct _hitmon_data *, staticfn void hmon_hitmon_barehands(struct _hitmon_data *,
struct monst *) NONNULLARG12; struct monst *) NONNULLARG12;
staticfn void hmon_hitmon_weapon_ranged(struct _hitmon_data *, struct monst *, staticfn void hmon_hitmon_weapon_ranged(struct _hitmon_data *, struct monst *,
struct obj *) NONNULLARG123; struct obj *) NONNULLARG123;
staticfn void hmon_hitmon_weapon_melee(struct _hitmon_data *, struct monst *, staticfn void hmon_hitmon_weapon_melee(struct _hitmon_data *, struct monst *,