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:
@@ -11,37 +11,37 @@
|
||||
typedef void FDECL((*timeout_proc), (ANY_P *, long));
|
||||
|
||||
/* kind of timer */
|
||||
#define TIMER_LEVEL 0 /* event specific to level */
|
||||
#define TIMER_GLOBAL 1 /* event follows current play */
|
||||
#define TIMER_OBJECT 2 /* event follows a object */
|
||||
#define TIMER_MONSTER 3 /* event follows a monster */
|
||||
#define TIMER_LEVEL 0 /* event specific to level */
|
||||
#define TIMER_GLOBAL 1 /* event follows current play */
|
||||
#define TIMER_OBJECT 2 /* event follows a object */
|
||||
#define TIMER_MONSTER 3 /* event follows a monster */
|
||||
|
||||
/* save/restore timer ranges */
|
||||
#define RANGE_LEVEL 0 /* save/restore timers staying on level */
|
||||
#define RANGE_GLOBAL 1 /* save/restore timers following global play */
|
||||
#define RANGE_LEVEL 0 /* save/restore timers staying on level */
|
||||
#define RANGE_GLOBAL 1 /* save/restore timers following global play */
|
||||
|
||||
/*
|
||||
* Timeout functions. Add a define here, then put it in the table
|
||||
* in timeout.c. "One more level of indirection will fix everything."
|
||||
*/
|
||||
#define ROT_ORGANIC 0 /* for buried organics */
|
||||
#define ROT_CORPSE 1
|
||||
#define REVIVE_MON 2
|
||||
#define BURN_OBJECT 3
|
||||
#define HATCH_EGG 4
|
||||
#define FIG_TRANSFORM 5
|
||||
#define MELT_ICE_AWAY 6
|
||||
#define NUM_TIME_FUNCS 7
|
||||
#define ROT_ORGANIC 0 /* for buried organics */
|
||||
#define ROT_CORPSE 1
|
||||
#define REVIVE_MON 2
|
||||
#define BURN_OBJECT 3
|
||||
#define HATCH_EGG 4
|
||||
#define FIG_TRANSFORM 5
|
||||
#define MELT_ICE_AWAY 6
|
||||
#define NUM_TIME_FUNCS 7
|
||||
|
||||
/* used in timeout.c */
|
||||
typedef struct fe {
|
||||
struct fe *next; /* next item in chain */
|
||||
long timeout; /* when we time out */
|
||||
unsigned long tid; /* timer ID */
|
||||
short kind; /* kind of use */
|
||||
short func_index; /* what to call when we time out */
|
||||
anything arg; /* pointer to timeout argument */
|
||||
Bitfield (needs_fixup,1); /* does arg need to be patched? */
|
||||
struct fe *next; /* next item in chain */
|
||||
long timeout; /* when we time out */
|
||||
unsigned long tid; /* timer ID */
|
||||
short kind; /* kind of use */
|
||||
short func_index; /* what to call when we time out */
|
||||
anything arg; /* pointer to timeout argument */
|
||||
Bitfield(needs_fixup, 1); /* does arg need to be patched? */
|
||||
} timer_element;
|
||||
|
||||
#endif /* TIMEOUT_H */
|
||||
|
||||
Reference in New Issue
Block a user