remove stray tabs from *.c files and config.h

This commit is contained in:
nhmall
2025-08-19 08:35:39 -04:00
parent 070730d845
commit 6c3e70ad77
18 changed files with 57 additions and 57 deletions
+7 -7
View File
@@ -67,14 +67,14 @@ static char origdir[255] = "";
*
* dlb COMMANDoptions arg... files...
* commands:
* dlb x extract all files
* dlb c build the archive
* dlb t list the archive
* dlb x extract all files
* dlb c build the archive
* dlb t list the archive
* options:
* v verbose
* f file specify archive file (default DLBFILE)
* I file specify file for list of files (default LIBLISTFILE)
* C dir chdir to dir (used ONCE, not like tar's -C)
* v verbose
* f file specify archive file (default DLBFILE)
* I file specify file for list of files (default LIBLISTFILE)
* C dir chdir to dir (used ONCE, not like tar's -C)
*/
ATTRNORETURN static void
+1 -1
View File
@@ -1,5 +1,5 @@
/* NetHack 3.7 recover.c $NHDT-Date: 1687547437 2023/06/23 19:10:37 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.33 $ */
/* Copyright (c) Janet Walz, 1992. */
/* Copyright (c) Janet Walz, 1992. */
/* NetHack may be freely redistributed. See license for details. */
/*
+9 -9
View File
@@ -1,5 +1,5 @@
/* NetHack 3.7 sfctool.c */
/* Copyright (c) Michael Allison, 2025. */
/* Copyright (c) Michael Allison, 2025. */
/* NetHack may be freely redistributed. See license for details. */
/*
@@ -318,18 +318,18 @@ process_savefile(const char *srcfnam, enum saveformats srcstyle,
cscbuf[5]); /* ptr */
if (sfstatus > SF_UPTODATE
&& ((sfstatus <= SF_CRITICAL_BYTE_COUNT_MISMATCH) || !unconvert)) {
if (sfstatus == SF_OUTDATED) {
if (sfstatus == SF_OUTDATED) {
fprintf(stderr,
"The %s savefile is outdated with respect to this %d.%d.%d EDITLEVEL %ld "
"%s%s%s.\n",
"%s%s%s.\n",
briefname(srcfnam),
VERSION_MAJOR, VERSION_MINOR, PATCHLEVEL,
(long) EDITLEVEL,
VERSION_MAJOR, VERSION_MINOR, PATCHLEVEL,
(long) EDITLEVEL,
thisdatamodel ? thisdatamodel : "",
thisdatamodel ? " " : "",
"sfctool");
"sfctool");
return 0;
} else {
} else {
fprintf(stderr,
"The %s savefile %s%s%s not compatible with this %s%s %s utility.\n",
briefname(srcfnam),
@@ -338,9 +338,9 @@ process_savefile(const char *srcfnam, enum saveformats srcstyle,
dmfile ? " savefile, thus" : " is",
thisdatamodel ? thisdatamodel : "",
thisdatamodel ? " " : "",
"sfctool");
"sfctool");
return 0;
}
}
}
if (sfstatus >= SF_DM_IL32LLP64_ON_ILP32LL64) {
renidx = sfstatus - SF_DM_IL32LLP64_ON_ILP32LL64;
+8 -8
View File
@@ -1,9 +1,9 @@
/* NetHack 3.6 sftags.c $Date$ $Revision$ */
/* Copyright (c) Michael Allison, 2025 */
/* Copyright (c) Michael Allison, 2025 */
/* NetHack may be freely redistributed. See license for details. */
/*
* Read the given ctags file and generate:
* Read the given ctags file and generate:
* Intermediate temp files:
* include/sfo_proto.tmp
* include/sfi_proto.tmp
@@ -45,12 +45,12 @@
#endif
#endif
#define NHTYPE_SIMPLE 1
#define NHTYPE_COMPLEX 2
#define NHTYPE_SIMPLE 1
#define NHTYPE_COMPLEX 2
struct nhdatatypes_t {
uint dtclass;
char *dtype;
size_t dtsize;
uint dtclass;
char *dtype;
size_t dtsize;
};
struct tagstruct {
@@ -867,7 +867,7 @@ findtype(char *st, char *tag)
/* comma or semicolon immediately following tag */
else {
volatile int y = 0;
nhUse(y);
nhUse(y);
y = 1;
}
if (strncmpi(ftbuf, "struct ", 7) == 0)
+7 -7
View File
@@ -28,16 +28,16 @@ int main(int argc UNUSED, char *argv[] UNUSED)
while (!stop) {
if ((fread(buf, 1, 1, stdin)) > 0) {
if (*cp == 8) {
*prev = 0;
} else {
if (*prev)
*prev = 0;
} else {
if (*prev)
fputc(*prev, stdout);
*prev = *cp;
}
*prev = *cp;
}
} else {
if (errno != EOF)
if (errno != EOF)
trouble = 1;
if (*prev)
if (*prev)
fputc(*prev, stdout);
stop = 1;
}