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:
@@ -7,38 +7,39 @@
|
||||
#ifndef ALIGN_H
|
||||
#define ALIGN_H
|
||||
|
||||
typedef schar aligntyp; /* basic alignment type */
|
||||
typedef schar aligntyp; /* basic alignment type */
|
||||
|
||||
typedef struct align { /* alignment & record */
|
||||
aligntyp type;
|
||||
int record;
|
||||
typedef struct align { /* alignment & record */
|
||||
aligntyp type;
|
||||
int record;
|
||||
} align;
|
||||
|
||||
/* bounds for "record" -- respect initial alignments of 10 */
|
||||
#define ALIGNLIM (10L + (moves/200L))
|
||||
#define ALIGNLIM (10L + (moves / 200L))
|
||||
|
||||
#define A_NONE (-128) /* the value range of type */
|
||||
#define A_NONE (-128) /* the value range of type */
|
||||
|
||||
#define A_CHAOTIC (-1)
|
||||
#define A_NEUTRAL 0
|
||||
#define A_LAWFUL 1
|
||||
#define A_CHAOTIC (-1)
|
||||
#define A_NEUTRAL 0
|
||||
#define A_LAWFUL 1
|
||||
|
||||
#define A_COALIGNED 1
|
||||
#define A_OPALIGNED (-1)
|
||||
#define A_COALIGNED 1
|
||||
#define A_OPALIGNED (-1)
|
||||
|
||||
#define AM_NONE 0
|
||||
#define AM_CHAOTIC 1
|
||||
#define AM_NEUTRAL 2
|
||||
#define AM_LAWFUL 4
|
||||
#define AM_NONE 0
|
||||
#define AM_CHAOTIC 1
|
||||
#define AM_NEUTRAL 2
|
||||
#define AM_LAWFUL 4
|
||||
|
||||
#define AM_MASK 7
|
||||
#define AM_MASK 7
|
||||
|
||||
#define AM_SPLEV_CO 3
|
||||
#define AM_SPLEV_NONCO 7
|
||||
#define AM_SPLEV_CO 3
|
||||
#define AM_SPLEV_NONCO 7
|
||||
|
||||
#define Amask2align(x) ((aligntyp) ((!(x)) ? A_NONE \
|
||||
: ((x) == AM_LAWFUL) ? A_LAWFUL : ((int)x) - 2))
|
||||
#define Align2amask(x) (((x) == A_NONE) ? AM_NONE \
|
||||
: ((x) == A_LAWFUL) ? AM_LAWFUL : (x) + 2)
|
||||
#define Amask2align(x) \
|
||||
((aligntyp)((!(x)) ? A_NONE : ((x) == AM_LAWFUL) ? A_LAWFUL \
|
||||
: ((int) x) - 2))
|
||||
#define Align2amask(x) \
|
||||
(((x) == A_NONE) ? AM_NONE : ((x) == A_LAWFUL) ? AM_LAWFUL : (x) + 2)
|
||||
|
||||
#endif /* ALIGN_H */
|
||||
|
||||
Reference in New Issue
Block a user