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

@@ -8,7 +8,7 @@
#ifndef TOSCONF_H
#define TOSCONF_H
#define MICRO /* must be defined to allow some inclusions */
#define MICRO /* must be defined to allow some inclusions */
/*
Adjust these options to suit your compiler. The default here is for
@@ -17,36 +17,36 @@
/*#define NO_SIGNAL /* library doesn't support signals */
/*#define NO_FSTAT /* library doesn't have fstat() call */
#define MINT /* library supports MiNT extensions to TOS */
#define MINT /* library supports MiNT extensions to TOS */
#ifdef __MINT__
#define MINT
#endif
#ifdef O_BINARY
#define FCMASK O_BINARY
#define FCMASK O_BINARY
#else
#define FCMASK 0660
#define FCMASK 0660
#define O_BINARY 0
#endif
#ifdef UNIXDEBUG
#define remove(x) unlink(x)
#define remove(x) unlink(x)
#endif
/* configurable options */
#define MFLOPPY /* floppy support */
#define RANDOM /* improved random numbers */
#define SHELL /* allow spawning of shell */
#define TERMLIB /* use termcap */
#define TEXTCOLOR /* allow color */
#define MAIL /* enable the fake maildemon */
#define MFLOPPY /* floppy support */
#define RANDOM /* improved random numbers */
#define SHELL /* allow spawning of shell */
#define TERMLIB /* use termcap */
#define TEXTCOLOR /* allow color */
#define MAIL /* enable the fake maildemon */
#ifdef MINT
#define SUSPEND /* allow suspending the game */
#define SUSPEND /* allow suspending the game */
#endif
#ifndef TERMLIB
#define ANSI_DEFAULT /* use vt52 by default */
#define ANSI_DEFAULT /* use vt52 by default */
#endif
#if defined(__GNUC__) || defined(__MINT__)
@@ -56,8 +56,8 @@
*/
#define STRNCMPI
#undef strcmpi
extern int FDECL(strcmpi,(const char *, const char *));
extern int FDECL(strncmpi,(const char *, const char *, size_t));
extern int FDECL(strcmpi, (const char *, const char *));
extern int FDECL(strncmpi, (const char *, const char *, size_t));
#endif
#include <termcap.h>
@@ -73,15 +73,15 @@ extern int FDECL(strncmpi,(const char *, const char *, size_t));
#include "micro.h"
#endif
#ifndef PCCONF_H
#include "pcconf.h" /* remainder of stuff is same as the PC */
#include "pcconf.h" /* remainder of stuff is same as the PC */
#endif
#ifdef TEXTCOLOR
extern boolean colors_changed; /* in tos.c */
extern boolean colors_changed; /* in tos.c */
#endif
#ifdef __GNUC__
#define GCC_BUG /* correct a gcc bug involving double for loops */
#define GCC_BUG /* correct a gcc bug involving double for loops */
#endif
#endif /* TOSCONF_H */