some tabs to spaces

cd src
    grep -P -n '\t' *.c | grep -v "1:"
    cd ../include
    grep -P -n '\t' *.h | grep -v "1:"
    cd ..

side note: win/Qt/*.cpp are full of tabs
This commit is contained in:
nhmall
2022-10-26 14:21:23 -04:00
parent 1cf4f9f7f9
commit 88f6df2d8b
81 changed files with 365 additions and 365 deletions

View File

@@ -687,7 +687,7 @@ newgame(void)
* any artifacts */
u_init();
l_nhcore_init(); /* create a Lua state that lasts until the end of the game */
l_nhcore_init(); /* create a Lua state that lasts until the end of the game */
reset_glyphmap(gm_newgame);
#ifndef NO_SIGNAL
(void) signal(SIGINT, (SIG_RET_TYPE) done1);

View File

@@ -117,7 +117,7 @@ restore_artifacts(NHFILE *nhfp)
mread(nhfp->fd, (genericptr_t) artiexist, sizeof artiexist);
mread(nhfp->fd, (genericptr_t) artidisco, sizeof artidisco);
}
hack_artifacts(); /* redo non-saved special cases */
hack_artifacts(); /* redo non-saved special cases */
}
const char *

View File

@@ -4143,7 +4143,7 @@ wiz_mon_diff(void)
ptr->pmnames[NEUTRAL], cnt, mlev,
mcalculated, mhardcoded, mdiff);
putstr(win, 0, buf);
}
}
}
if (!trouble)
putstr(win, 0, "No monster difficulty discrepencies were detected.");

View File

@@ -26,8 +26,8 @@ struct nomakedefs_s nomakedefs = {
comp.sources.games/91SfKYg_xzI/dGnR3JnspFkJ */
"Tue, 28-Jul-87 13:18:57 EDT",
"Version 1.0, built Jul 28 13:18:57 1987.",
(const char *) 0, /* git_sha */
(const char *) 0, /* git_branch */
(const char *) 0, /* git_sha */
(const char *) 0, /* git_branch */
"1.0.0-0",
"NetHack Version 1.0.0-0 - last build Tue Jul 28 13:18:57 1987.",
0x01010000UL,

View File

@@ -204,9 +204,9 @@ const struct instance_globals g_init = {
0, /* mrank_sz */
{ { { NULL, NULL, 0L, FALSE, FALSE, 0, 0U, { 0 }, NULL, 0, 0, 0
#ifdef STATUS_HILITES
, UNDEFINED_PTR, UNDEFINED_PTR
, UNDEFINED_PTR, UNDEFINED_PTR
#endif
} }
} }
}, /* blstats */
FALSE, /* blinit */
FALSE, /* update_all */
@@ -474,7 +474,7 @@ const struct instance_globals g_init = {
/* mkmaze.c */
{ {COLNO, ROWNO, 0, 0}, {COLNO, ROWNO, 0, 0},
FALSE, FALSE, 0, 0, { 0 } }, /* bughack */
FALSE, FALSE, 0, 0, { 0 } }, /* bughack */
UNDEFINED_PTR, /* bbubbles */
UNDEFINED_PTR, /* ebubbles */
UNDEFINED_PTR, /* wportal */

View File

@@ -1483,7 +1483,7 @@ extern glyph_map glyphmap[MAX_GLYPH]; /* from tile.c */
glyph_map glyphmap[MAX_GLYPH] = {
{ 0U, { 0, 0}, 0
#ifdef ENHANCED_SYMBOLS
, 0
, 0
#endif
}
};

View File

@@ -9,7 +9,7 @@
#include <string.h>
#endif
#define DATAPREFIX 4 /* see decl.h */
#define DATAPREFIX 4 /* see decl.h */
#ifdef DLB
/*

View File

@@ -753,7 +753,7 @@ init_dungeons(void)
(void) memset(&pd, 0, sizeof (struct proto_dungeon));
pd.n_levs = pd.n_brs = 0;
L = nhl_init(&sbi); /* private Lua state for this function */
L = nhl_init(&sbi); /* private Lua state for this function */
if (!L) {
panic1("'nhl_init' failed; can't continue.");
/*NOTREACHED*/

View File

@@ -1385,7 +1385,7 @@ rest_engravings(NHFILE *nhfp)
}
ep->nxt_engr = head_engr;
head_engr = ep;
ep->engr_txt = (char *) (ep + 1); /* Andreas Bormann */
ep->engr_txt = (char *) (ep + 1); /* Andreas Bormann */
/* mark as finished for bones levels -- no problem for
* normal levels as the player must have finished engraving
* to be able to move again */

View File

@@ -3245,7 +3245,7 @@ display_pickinv(
sparse = ((wri_info.fromcore.invmode & InvSparse) != 0);
inuse_only = ((wri_info.fromcore.invmode & InvInUse) != 0);
doing_perm_invent = TRUE;
nhUse(sparse);
nhUse(sparse);
}
/*
* Exit early if no inventory -- but keep going if we are doing

View File

@@ -1484,7 +1484,7 @@ validate(NHFILE* nhfp, const char *name)
} else {
if (nhfp->structlevel)
rlen = (readLenType) read(nhfp->fd, (genericptr_t) &sfi, sizeof sfi);
minit(); /* ZEROCOMP */
minit(); /* ZEROCOMP */
if (rlen == 0) {
if (verbose) {
pline("File \"%s\" is empty during save file feature check?", name);

View File

@@ -3443,18 +3443,18 @@ int
lspo_object(lua_State *L)
{
static object zeroobject = {
{ 0 }, /* Str_or_len name */
0, /* corpsenm */
0, 0, /* id, spe */
0, /* coord */
0, 0, /* coordxy x,y */
0, 0, /* class, containment */
0, /* curse_state */
0, /* quan */
0, /* buried */
0, /* lit */
0, 0, 0, 0, 0, 0, 0, 0, /* eroded, locked, trapped, recharged,
invis, greased, broken, achievment */
{ 0 }, /* Str_or_len name */
0, /* corpsenm */
0, 0, /* id, spe */
0, /* coord */
0, 0, /* coordxy x,y */
0, 0, /* class, containment */
0, /* curse_state */
0, /* quan */
0, /* buried */
0, /* lit */
0, 0, 0, 0, 0, 0, 0, 0, /* eroded, locked, trapped, recharged,
invis, greased, broken, achievment */
};
#if 0
int nparams = 0;