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:
@@ -296,7 +296,7 @@ _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);*/
|
||||
if (argcheck(argc, argv, ARG_DEBUG) == 1) {
|
||||
argc--;
|
||||
argv++;
|
||||
}
|
||||
}
|
||||
|
||||
if (argc > 1 && !strncmp(argv[1], "-d", 2) && argv[1][2] != 'e') {
|
||||
/* avoid matching "-dec" for DECgraphics; since the man page
|
||||
@@ -566,7 +566,7 @@ process_options(int argc, char *argv[])
|
||||
switch_symbols(TRUE);
|
||||
}
|
||||
break;
|
||||
/* case 'D': */
|
||||
/* case 'D': */
|
||||
case 'd':
|
||||
if (!strncmpi(argv[0] + 1, "DEC", 3)) {
|
||||
load_symset("DECGraphics", PRIMARYSET);
|
||||
|
||||
@@ -131,7 +131,7 @@ dosh(void)
|
||||
#endif /* MICRO */
|
||||
|
||||
/*
|
||||
* Add a backslash to any name not ending in /, \ or : There must
|
||||
* Add a backslash to any name not ending in /, \ or : There must
|
||||
* be room for the \
|
||||
*/
|
||||
void
|
||||
|
||||
@@ -18,20 +18,20 @@
|
||||
/* Several minor changes were made for the NetHack distribution to satisfy
|
||||
* non-BSD compilers (by definition BSD compilers do not need to compile
|
||||
* this file for NetHack). These changes consisted of:
|
||||
* - changing the sccsid conditions to nested ifdefs from defined()s
|
||||
* to accommodate stupid preprocessors
|
||||
* - giving srandom() type void instead of allowing it to default to int
|
||||
* - making the first return in initstate() return a value consistent
|
||||
* with its type (instead of no value)
|
||||
* - ANSI function prototyping in extern.h - therefore include hack.h
|
||||
* instead of stdio.h and remove separate declaration of random() from
|
||||
* the beginning of function srandom
|
||||
* - moving sccsid after hack.h to allow precompiled headers, which
|
||||
* means the defined()s would be ok again...
|
||||
* - change fprintf(stderr, "x(%d)y\n", z) to impossible("x(%d)y", z)
|
||||
* - remove useless variable `j' from srandom()
|
||||
* - cast result of pointer subtraction to long since ptrdiff_t could
|
||||
* be bigger than that and trigger warnings when assigning to long
|
||||
* - changing the sccsid conditions to nested ifdefs from defined()s
|
||||
* to accommodate stupid preprocessors
|
||||
* - giving srandom() type void instead of allowing it to default to int
|
||||
* - making the first return in initstate() return a value consistent
|
||||
* with its type (instead of no value)
|
||||
* - ANSI function prototyping in extern.h - therefore include hack.h
|
||||
* instead of stdio.h and remove separate declaration of random() from
|
||||
* the beginning of function srandom
|
||||
* - moving sccsid after hack.h to allow precompiled headers, which
|
||||
* means the defined()s would be ok again...
|
||||
* - change fprintf(stderr, "x(%d)y\n", z) to impossible("x(%d)y", z)
|
||||
* - remove useless variable `j' from srandom()
|
||||
* - cast result of pointer subtraction to long since ptrdiff_t could
|
||||
* be bigger than that and trigger warnings when assigning to long
|
||||
*
|
||||
* $NHDT-Date: 1432512787 2015/05/25 00:13:07 $ $NHDT-Branch: master $:$NHDT-Revision: 1.5 $
|
||||
*/
|
||||
@@ -42,7 +42,7 @@
|
||||
#else
|
||||
#ifdef LIBC_SCCS
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)random.c 5.5 (Berkeley) 7/6/88";
|
||||
static char sccsid[] = "@(#)random.c 5.5 (Berkeley) 7/6/88";
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@@ -131,13 +131,13 @@ static const int seps[MAX_TYPES] = { SEP_0, SEP_1, SEP_2, SEP_3, SEP_4 };
|
||||
|
||||
/*
|
||||
* Initially, everything is set up as if from :
|
||||
* initstate( 1, &randtbl, 128 );
|
||||
* initstate( 1, &randtbl, 128 );
|
||||
* Note that this initialization takes advantage of the fact that srandom()
|
||||
* advances the front and rear pointers 10*rand_deg times, and hence the
|
||||
* rear pointer which starts at 0 will also end up at zero; thus the zeroeth
|
||||
* element of the state information, which contains info about the current
|
||||
* position of the rear pointer is just
|
||||
* MAX_TYPES*(rptr - state) + TYPE_3 == TYPE_3.
|
||||
* MAX_TYPES*(rptr - state) + TYPE_3 == TYPE_3.
|
||||
*/
|
||||
|
||||
static long randtbl[DEG_3 + 1] = {
|
||||
@@ -158,7 +158,7 @@ static long randtbl[DEG_3 + 1] = {
|
||||
* away with just one pointer, but the code for random() is more efficient
|
||||
*this
|
||||
* way). The pointers are left positioned as they would be from the call
|
||||
* initstate( 1, randtbl, 128 )
|
||||
* initstate( 1, randtbl, 128 )
|
||||
* (The position of the rear pointer, rptr, is really 0 (as explained above
|
||||
* in the initialization of randtbl) because the state table pointer is set
|
||||
* to point to randtbl[1] (as explained below).
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* NetHack 3.7 tclib.c $NHDT-Date: 1596498287 2020/08/03 23:44:47 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.10 $ */
|
||||
/* Copyright (c) Robert Patrick Rankin, 1995 */
|
||||
/* Copyright (c) Robert Patrick Rankin, 1995 */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
/* termcap library implementation */
|
||||
|
||||
@@ -257,7 +257,7 @@ setftty(void)
|
||||
/* Should use (ECHO|CRMOD) here instead of ECHO */
|
||||
if ((unsigned) (curttyb.echoflgs & ECHO) != ef) {
|
||||
curttyb.echoflgs &= ~ECHO;
|
||||
/* curttyb.echoflgs |= ef; */
|
||||
/* curttyb.echoflgs |= ef; */
|
||||
change++;
|
||||
}
|
||||
if ((unsigned) (curttyb.cbrkflgs & CBRKMASK) != cf) {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
* produces a binary only 6 blocks long, as opposed to the 137-block one
|
||||
* produced by an ordinary link). To set up the VMS symbol to run the
|
||||
* program ("run uudecode filename" won't work), do:
|
||||
* uudecode :== "$disk:[directory]uudecode.exe"
|
||||
* uudecode :== "$disk:[directory]uudecode.exe"
|
||||
* and don't forget the leading "$" or it still won't work. The binaries
|
||||
* produced by this program are in VMS "stream-LF" format; this makes no
|
||||
* difference to VMS when running decoded executables, nor to VMS unzip,
|
||||
@@ -45,7 +45,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)uudecode.c 5.5 (Berkeley) 7/6/88";
|
||||
static char sccsid[] = "@(#)uudecode.c 5.5 (Berkeley) 7/6/88";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifdef __MSDOS__ /* For Turbo C */
|
||||
|
||||
Reference in New Issue
Block a user