Reformat .h files.

I did my best to exempt some of the bigger aligned blocks from the reformatting
using the /* clang-format off */ and /* clang-format on */ tags. Probably some
that shouldn't have been formatted were anyway; if you encounter them, please
fix.

The clang-format tags were left in on the basis that it's much easier to prune
those out later than to put them back in, and it means that, modulo my custom
version of clang-format, I should be able to run clang-format on the source tree
again without changing anything, now that Pat has fixed the VA_DECL issues.
This commit is contained in:
Sean Hunt
2015-05-25 09:03:10 +09:00
parent 26ee7dc370
commit 8b57d96fd2
156 changed files with 10712 additions and 10701 deletions

View File

@@ -15,20 +15,20 @@
*/
/* #define OS2_MSC /* Microsoft C 5.1 and 6.0 */
#define OS2_GCC /* GCC emx 0.8f */
/* #define OS2_CSET2 /* IBM C Set/2 (courtesy Jeff Urlwin) */
/* #define OS2_CSET2_VER_1 /* CSet/2 version selection */
/* #define OS2_CSET2_VER_2 /* - " - */
#define OS2_GCC /* GCC emx 0.8f */
/* #define OS2_CSET2 /* IBM C Set/2 (courtesy Jeff Urlwin) */
/* #define OS2_CSET2_VER_1 /* CSet/2 version selection */
/* #define OS2_CSET2_VER_2 /* - " - */
/*
* System configuration.
*/
#define OS2_USESYSHEADERS /* use compiler's own system headers */
#define OS2_USESYSHEADERS /* use compiler's own system headers */
/* #define OS2_HPFS /* use OS/2 High Performance File System */
#if defined(OS2_GCC) || defined(OS2_CSET2)
# define OS2_32BITAPI /* enable for compilation in OS/2 2.0 */
#define OS2_32BITAPI /* enable for compilation in OS/2 2.0 */
#endif
/*
@@ -37,32 +37,32 @@
*/
/*#define MFLOPPY /* floppy and ramdisk support */
#define RANDOM /* Berkeley random(3) */
#define SHELL /* shell escape */
#define RANDOM /* Berkeley random(3) */
#define SHELL /* shell escape */
/* #define TERMLIB /* use termcap file */
#define ANSI_DEFAULT /* allows NetHack to run without termcap file */
#define TEXTCOLOR /* allow color */
#define ANSI_DEFAULT /* allows NetHack to run without termcap file */
#define TEXTCOLOR /* allow color */
/*
* The remaining code shouldn't need modification.
*/
#ifdef MSDOS
# undef MSDOS /* MSC autodefines this but we don't want it */
#undef MSDOS /* MSC autodefines this but we don't want it */
#endif
#ifndef MICRO
# define MICRO /* must be defined to allow some inclusions */
#define MICRO /* must be defined to allow some inclusions */
#endif
#if !defined(TERMLIB) && !defined(ANSI_DEFAULT)
# define ANSI_DEFAULT /* have to have one or the other */
#define ANSI_DEFAULT /* have to have one or the other */
#endif
#define PATHLEN 260 /* maximum pathlength (HPFS) */
#define FILENAME 260 /* maximum filename length (HPFS) */
#define PATHLEN 260 /* maximum pathlength (HPFS) */
#define FILENAME 260 /* maximum filename length (HPFS) */
#ifndef MICRO_H
#include "micro.h" /* necessary externs for [os_name].c */
#include "micro.h" /* necessary externs for [os_name].c */
#endif
#ifndef SYSTEM_H
@@ -70,10 +70,10 @@
#endif
#ifndef index
#define index strchr
#define index strchr
#endif
#ifndef rindex
#define rindex strrchr
#define rindex strrchr
#endif
#include <time.h>
@@ -81,9 +81,9 @@
/* the high quality random number routines */
#ifdef RANDOM
# define Rand() random()
#define Rand() random()
#else
# define Rand() rand()
#define Rand() rand()
#endif
/* file creation mask */
@@ -91,13 +91,13 @@
#include <sys\types.h>
#include <sys\stat.h>
#define FCMASK (S_IREAD | S_IWRITE)
#define FCMASK (S_IREAD | S_IWRITE)
#include <fcntl.h>
#ifdef __EMX__
#include <unistd.h>
#define sethanguphandler(foo) (void)signal(SIGHUP, (SIG_RET_TYPE)foo)
#define sethanguphandler(foo) (void) signal(SIGHUP, (SIG_RET_TYPE) foo)
#endif
void hangup(int i);