Break inclusion cycle: prototypes.h and commands.h included each
other. Ensure headers in include/ can be included in any order (except for econfig-spec.h, which is special). New header types.h to help avoid inclusion cycles. Sort include directives. Remove some superflous includes.
This commit is contained in:
parent
16a0869bb0
commit
e42053d928
373 changed files with 1193 additions and 2516 deletions
|
@ -35,9 +35,7 @@
|
|||
#ifndef MISC_H
|
||||
#define MISC_H
|
||||
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
|
||||
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||
#define MIN(a,b) ((a) < (b) ? (a) : (b))
|
||||
|
@ -88,10 +86,6 @@ struct mob_acc_globals {
|
|||
#define RESOLVE_IPADDRESS /* resolve ip addresses into hostnames */
|
||||
#endif
|
||||
|
||||
typedef unsigned char natid; /* NSC_NATID must match this */
|
||||
|
||||
typedef short coord;
|
||||
|
||||
#ifndef bit
|
||||
#define bit(x) (1<<(x))
|
||||
#endif
|
||||
|
@ -134,7 +128,4 @@ extern char *prbuf(char *format, ...)
|
|||
#define AGREE_PROPOSED 1
|
||||
#define AGREE_SIGNED 2
|
||||
|
||||
struct empobj;
|
||||
union empobj_storage;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue