]> git.pond.sub.org Git - empserver/commitdiff
Convert tab after #define to space
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 22 May 2010 13:57:07 +0000 (15:57 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 20 Jun 2010 16:38:54 +0000 (18:38 +0200)
32 files changed:
include/combat.h
include/distribute.h
include/econfig-spec.h
include/empio.h
include/land.h
include/loan.h
include/misc.h
include/mission.h
include/nat.h
include/news.h
include/nuke.h
include/optlist.h
include/path.h
include/plague.h
include/plane.h
include/player.h
include/proto.h
include/queue.h
include/retreat.h
include/sect.h
include/ship.h
include/tel.h
include/treaty.h
src/lib/as/as.h
src/lib/commands/coas.c
src/lib/commands/load.c
src/lib/commands/skyw.c
src/lib/common/path.c
src/lib/global/constants.c
src/lib/subs/fortdef.c
src/lib/update/move_sat.c
src/lib/update/sail.c

index 2d15b9f492ef6c65d9fa2c6339192208473d643c..c0efd8472c643b70a11774c5168c1208e50f8212 100644 (file)
@@ -62,9 +62,9 @@ struct combat {
 
 /* Types of combat for use by attack routines */
 #define A_DEFEND        0
 
 /* Types of combat for use by attack routines */
 #define A_DEFEND        0
-#define        A_ATTACK        1
-#define        A_ASSAULT       2
-#define        A_PARA          3
+#define A_ATTACK       1
+#define A_ASSAULT      2
+#define A_PARA         3
 #define A_BOARD                4
 #define A_LBOARD        5
 
 #define A_BOARD                4
 #define A_LBOARD        5
 
index b975da9f65e18c509cfbc1365322a28b6530b0ca..ef286652d04e695fde03b388a869b49f8fcb3250 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef DISTRIBUTE_H
 #define DISTRIBUTE_H
 
 #ifndef DISTRIBUTE_H
 #define DISTRIBUTE_H
 
-#define        IMPORT  0
-#define        EXPORT  1
+#define IMPORT 0
+#define EXPORT 1
 
 #endif
 
 #endif
index 4c34c1f456bc24b3ee5eb9040d32da3e047cd62a..31a9f20650fe457f25283d5cd1f4db6c1aee9004 100644 (file)
 
 #if    defined(EMP_CONFIG_C_OUTPUT)
 
 
 #if    defined(EMP_CONFIG_C_OUTPUT)
 
-#define        EMPCFONLYC(fvname, vname, vtype, ctype, flags, descr)   \
+#define EMPCFONLYC(fvname, vname, vtype, ctype, flags, descr)  \
        { (fvname), (ctype), &(vname), (flags), (descr) },
        { (fvname), (ctype), &(vname), (flags), (descr) },
-#define        EMPCFBOTH(fvname, vname, vtype, ctype, flags, descr)    \
+#define EMPCFBOTH(fvname, vname, vtype, ctype, flags, descr)   \
        { (fvname), (ctype), &(vname), (flags), (descr) },
 
 #elif  defined(EMP_CONFIG_H_OUTPUT)
 
        { (fvname), (ctype), &(vname), (flags), (descr) },
 
 #elif  defined(EMP_CONFIG_H_OUTPUT)
 
-#define        EMPCFONLYC(fvname, vname, vtype, ctype, flags, descr)
-#define        EMPCFBOTH(fvname, vname, vtype, ctype, flags, descr)    \
+#define EMPCFONLYC(fvname, vname, vtype, ctype, flags, descr)
+#define EMPCFBOTH(fvname, vname, vtype, ctype, flags, descr)   \
        extern vtype vname;
 
 #endif /* EMP_CONFIG_C_OUTPUT || EMP_CONFIG_H_OUTPUT */
        extern vtype vname;
 
 #endif /* EMP_CONFIG_C_OUTPUT || EMP_CONFIG_H_OUTPUT */
index a201c9783fbf1c9a1665bd62a6addd03c56a2076..636c6e5da9eaebfd9efcf11de08a26acf405930f 100644 (file)
@@ -35,9 +35,9 @@
 #define EMPIO_H
 #include <sys/time.h>
 
 #define EMPIO_H
 #include <sys/time.h>
 
-#define        IO_READ         0x1
+#define IO_READ                0x1
 #define IO_WRITE       0x2
 #define IO_WRITE       0x2
-#define        IO_EOF          0x10
+#define IO_EOF         0x10
 #define IO_ERROR       0x40
 
 #define IO_BUFSIZE     4096
 #define IO_ERROR       0x40
 
 #define IO_BUFSIZE     4096
index 3a6255618d6169d27b2b42823217a62bb7fd061d..8767d6b518551f6f14423edd17a075166bb60827 100644 (file)
@@ -109,12 +109,12 @@ struct lchrstr {
 };
 
 /* Land unit ability flags */
 };
 
 /* Land unit ability flags */
-#define        L_ENGINEER      bit(1)  /* Do engineering things */
-#define        L_SUPPLY        bit(2)  /* supply other units/sects */
-#define        L_SECURITY      bit(3)  /* anti-terrorist troops */
-#define        L_LIGHT         bit(4)  /* can go on ships */
-#define        L_MARINE        bit(5)  /* marine units, good at assaulting */
-#define        L_RECON         bit(6)  /* recon units, good at spying */
+#define L_ENGINEER     bit(1)  /* Do engineering things */
+#define L_SUPPLY       bit(2)  /* supply other units/sects */
+#define L_SECURITY     bit(3)  /* anti-terrorist troops */
+#define L_LIGHT                bit(4)  /* can go on ships */
+#define L_MARINE       bit(5)  /* marine units, good at assaulting */
+#define L_RECON                bit(6)  /* recon units, good at spying */
 #define L_RADAR                bit(7)  /* radar unit */
 #define L_ASSAULT      bit(8)  /* can assault */
 #define L_FLAK         bit(9)  /* flak unit */
 #define L_RADAR                bit(7)  /* radar unit */
 #define L_ASSAULT      bit(8)  /* can assault */
 #define L_FLAK         bit(9)  /* flak unit */
index 86b7a982741af49b3087cf50be287db7c2d9b6b0..8019cb7b4f8e9b65a8319fccbc01ba6e38007787 100644 (file)
@@ -37,7 +37,7 @@
 #include <time.h>
 #include "types.h"
 
 #include <time.h>
 #include "types.h"
 
-#define        MAXLOAN         100000
+#define MAXLOAN                100000
 #define SECS_PER_DAY   (60*60*24)
 
 struct lonstr {
 #define SECS_PER_DAY   (60*60*24)
 
 struct lonstr {
index 8c4095b558c0dd64d1e3b37c6a0120adfa46858e..6bd9ad3cf9a32c336c3749739a4fc37393b6ce5d 100644 (file)
@@ -58,7 +58,7 @@
 #endif
 
 #ifndef bit
 #endif
 
 #ifndef bit
-#define        bit(x)          (1<<(x))
+#define bit(x)         (1<<(x))
 #endif
 
 #define minutes(x)     (60*(x))
 #endif
 
 #define minutes(x)     (60*(x))
@@ -84,9 +84,9 @@ extern void (*oops_handler)(void);
 void exit_nomem(void) ATTRIBUTE((noreturn));
 
        /* return codes from command routines */
 void exit_nomem(void) ATTRIBUTE((noreturn));
 
        /* return codes from command routines */
-#define        RET_OK          0       /* command completed sucessfully */
-#define        RET_FAIL        1       /* command completed unsucessfully [?] */
-#define        RET_SYN         2       /* syntax error in command */
+#define RET_OK         0       /* command completed sucessfully */
+#define RET_FAIL       1       /* command completed unsucessfully [?] */
+#define RET_SYN                2       /* syntax error in command */
 
 extern char *getstarg(char *input, char *prompt, char buf[]);
 extern char *getstring(char *prompt, char buf[]);
 
 extern char *getstarg(char *input, char *prompt, char buf[]);
 extern char *getstring(char *prompt, char buf[]);
index fede3faa4788b90e850f9f9bf0c2c5f422d8f0d7..8a663e349459a84b5b4c6badac39717cf7d104ea 100644 (file)
 #ifndef MISSION_H
 #define MISSION_H
 
 #ifndef MISSION_H
 #define MISSION_H
 
-#define        MI_NONE         0
-#define        MI_INTERDICT    1
-#define        MI_SUPPORT      2
-#define        MI_RESERVE      3
+#define MI_NONE                0
+#define MI_INTERDICT   1
+#define MI_SUPPORT     2
+#define MI_RESERVE     3
 #define MI_ESCORT      4
 #define MI_SINTERDICT  5       /* sub interdiction */
 #define MI_AIR_DEFENSE 6
 #define MI_ESCORT      4
 #define MI_SINTERDICT  5       /* sub interdiction */
 #define MI_AIR_DEFENSE 6
index c1e9d6b2e12b97ba0a678ab444e3146fc0377709..5be229d9ae9f34dcea69d404669838ba3211828e 100644 (file)
@@ -43,7 +43,7 @@
 
 #define NATID_BAD 255
 
 
 #define NATID_BAD 255
 
-#define        MAXNOR          50      /* max # realms */
+#define MAXNOR         50      /* max # realms */
 
 /* Nation status */
 enum nat_status {
 
 /* Nation status */
 enum nat_status {
@@ -119,24 +119,24 @@ struct natstr {
 };
 
        /* nation relation codes */
 };
 
        /* nation relation codes */
-#define        AT_WAR          0
+#define AT_WAR         0
 #define SITZKRIEG       1
 #define MOBILIZATION    2
 #define SITZKRIEG       1
 #define MOBILIZATION    2
-#define        HOSTILE         3
-#define        NEUTRAL         4
+#define HOSTILE                3
+#define NEUTRAL                4
 #define FRIENDLY        5
 #define FRIENDLY        5
-#define        ALLIED          6
+#define ALLIED         6
 
        /* nation reject codes */
 
        /* nation reject codes */
-#define        REJ_TELE        bit(0)  /* dont allow telegrams to be sent */
-#define        REJ_TREA        bit(1)  /* dont allow treaties to be offered */
-#define        REJ_ANNO        bit(2)  /* don't receive announcements */
-#define        REJ_LOAN        bit(3)  /* don't allow loans to be offered */
-
-#define        NAT_TLEV        0
-#define        NAT_RLEV        1
-#define        NAT_ELEV        2
-#define        NAT_HLEV        3
+#define REJ_TELE       bit(0)  /* dont allow telegrams to be sent */
+#define REJ_TREA       bit(1)  /* dont allow treaties to be offered */
+#define REJ_ANNO       bit(2)  /* don't receive announcements */
+#define REJ_LOAN       bit(3)  /* don't allow loans to be offered */
+
+#define NAT_TLEV       0
+#define NAT_RLEV       1
+#define NAT_ELEV       2
+#define NAT_HLEV       3
 
 /*
  * Number of updates contact lasts for various ways of making contact.
 
 /*
  * Number of updates contact lasts for various ways of making contact.
index 0dedf6a56478a0fc7e87bffcd5385039c4a5c43e..d27e58c81b27048fb71f8f829f795482371247c8 100644 (file)
@@ -53,7 +53,7 @@ struct nwsstr {
     time_t nws_when;           /* time of action */
 };
 
     time_t nws_when;           /* time of action */
 };
 
-#define        NUM_RPTS        2       /* number of story alternates */
+#define NUM_RPTS       2       /* number of story alternates */
 
 struct rptstr {
     signed char r_uid;
 
 struct rptstr {
     signed char r_uid;
@@ -63,43 +63,43 @@ struct rptstr {
 };
 
        /* news verbs */
 };
 
        /* news verbs */
-#define        N_WON_SECT      1
-#define        N_SCT_LOSE      2
-#define        N_SPY_SHOT      3
-#define        N_SENT_TEL      4
-#define        N_SIGN_TRE      5
-#define        N_MAKE_LOAN     6
-#define        N_REPAY_LOAN    7
-#define        N_MAKE_SALE     8
-#define        N_OVFLY_SECT    9
-#define        N_SCT_SHELL     10
-#define        N_SHP_SHELL     11
-#define        N_TOOK_UNOCC    12
-#define        N_TORP_SHIP     13
-#define        N_FIRE_BACK     14
-#define        N_BROKE_SANCT   15
-#define        N_SCT_BOMB      16
-#define        N_SHP_BOMB      17
-#define        N_BOARD_SHIP    18
-#define        N_SHP_LOSE      19
+#define N_WON_SECT     1
+#define N_SCT_LOSE     2
+#define N_SPY_SHOT     3
+#define N_SENT_TEL     4
+#define N_SIGN_TRE     5
+#define N_MAKE_LOAN    6
+#define N_REPAY_LOAN   7
+#define N_MAKE_SALE    8
+#define N_OVFLY_SECT   9
+#define N_SCT_SHELL    10
+#define N_SHP_SHELL    11
+#define N_TOOK_UNOCC   12
+#define N_TORP_SHIP    13
+#define N_FIRE_BACK    14
+#define N_BROKE_SANCT  15
+#define N_SCT_BOMB     16
+#define N_SHP_BOMB     17
+#define N_BOARD_SHIP   18
+#define N_SHP_LOSE     19
 /* unused              20 */
 /* unused              20 */
-#define        N_SEIZE_SECT    21
-#define        N_HONOR_TRE     22
-#define        N_VIOL_TRE      23
+#define N_SEIZE_SECT   21
+#define N_HONOR_TRE    22
+#define N_VIOL_TRE     23
 /* unused              24 */
 /* unused              24 */
-#define        N_HIT_MINE      25
-#define        N_DECL_ALLY     26
+#define N_HIT_MINE     25
+#define N_DECL_ALLY    26
 /* unused              27 */
 /* unused              27 */
-#define        N_DECL_WAR      28
-#define        N_DIS_ALLY      29
-#define        N_DIS_WAR       30
-#define        N_OUT_PLAGUE    31
-#define        N_DIE_PLAGUE    32
-#define        N_NAME_CHNG     33
-#define        N_DIE_FAMINE    34
+#define N_DECL_WAR     28
+#define N_DIS_ALLY     29
+#define N_DIS_WAR      30
+#define N_OUT_PLAGUE   31
+#define N_DIE_PLAGUE   32
+#define N_NAME_CHNG    33
+#define N_DIE_FAMINE   34
 /* unused              35 */
 /* unused              35 */
-#define        N_DOWN_PLANE    36
-#define        N_NUKE          37
+#define N_DOWN_PLANE   36
+#define N_NUKE         37
 #define N_FREEDOM_FIGHT        38
 #define N_SHOOT_CIV    39
 #define N_LAUNCH       40
 #define N_FREEDOM_FIGHT        38
 #define N_SHOOT_CIV    39
 #define N_LAUNCH       40
@@ -109,19 +109,19 @@ struct rptstr {
 #define N_HURTS                44
 #define N_TAKE         45
 #define N_NUKE_STOP     46
 #define N_HURTS                44
 #define N_TAKE         45
 #define N_NUKE_STOP     46
-#define        N_SCT_MISS      47
-#define        N_SHP_MISS      48
+#define N_SCT_MISS     47
+#define N_SHP_MISS     48
 #define N_TRADE                49
 #define N_PIRATE_TRADE 50
 #define N_PIRATE_KEEP  51
 #define N_TRADE                49
 #define N_PIRATE_TRADE 50
 #define N_PIRATE_KEEP  51
-#define        N_SHIP_TORP     52
+#define N_SHIP_TORP    52
 #define N_SUB_BOMB     53
 /* unused              54 */
 #define N_UNIT_BOMB    55
 #define N_SUB_BOMB     53
 /* unused              54 */
 #define N_UNIT_BOMB    55
-#define        N_LHIT_MINE     56
-#define        N_FIRE_F_ATTACK 57
-#define        N_FIRE_L_ATTACK 58
-#define        N_FIRE_S_ATTACK 59
+#define N_LHIT_MINE    56
+#define N_FIRE_F_ATTACK        57
+#define N_FIRE_L_ATTACK        58
+#define N_FIRE_S_ATTACK        59
 #define N_SACK_CAP      60
 #define N_UP_FRIENDLY   61
 #define N_DOWN_FRIENDLY 62
 #define N_SACK_CAP      60
 #define N_UP_FRIENDLY   61
 #define N_DOWN_FRIENDLY 62
@@ -145,7 +145,7 @@ struct rptstr {
 #define N_WELCH_DEAL    80
 #define N_LND_LOSE      81
 #define N_BOARD_LAND    82
 #define N_WELCH_DEAL    80
 #define N_LND_LOSE      81
 #define N_BOARD_LAND    82
-#define        N_MAX_VERB      82
+#define N_MAX_VERB     82
 
 #define N_NOTUSED        0
 #define N_FOR            1
 
 #define N_NOTUSED        0
 #define N_FOR            1
@@ -159,7 +159,7 @@ struct rptstr {
 #define N_HOME           9
 #define N_SPY           10
 #define N_TELE          11
 #define N_HOME           9
 #define N_SPY           10
 #define N_TELE          11
-#define        N_MAX_PAGE      11
+#define N_MAX_PAGE     11
 
 #define getnews(n, p) ef_read(EF_NEWS, (n), (p))
 #define putnews(n, p) ef_write(EF_NEWS, (n), (p))
 
 #define getnews(n, p) ef_read(EF_NEWS, (n), (p))
 #define putnews(n, p) ef_write(EF_NEWS, (n), (p))
index 89a832848b178047992025709c6b8ca51148d67e..89d8e02c6f07e2f472ff60d16806bd0199621857 100644 (file)
@@ -37,8 +37,8 @@
 #include <time.h>
 #include "types.h"
 
 #include <time.h>
 #include "types.h"
 
-#define        N_MAXNUKE       20
-#define        MIN_DRNUKE_CONST        0.001
+#define N_MAXNUKE      20
+#define MIN_DRNUKE_CONST       0.001
 
 struct nukstr {
     /* initial part must match struct empobj */
 
 struct nukstr {
     /* initial part must match struct empobj */
@@ -77,7 +77,7 @@ struct nchrstr {
     signed char n_type;                /* index in nchr[] */
 };
 
     signed char n_type;                /* index in nchr[] */
 };
 
-#define        N_NEUT  bit(0)          /* Neutron bomb (low damage, high fallout) */
+#define N_NEUT bit(0)          /* Neutron bomb (low damage, high fallout) */
 
 #define getnuke(n, p) ef_read(EF_NUKE, (n), (p))
 #define putnuke(n, p) ef_write(EF_NUKE, (n), (p))
 
 #define getnuke(n, p) ef_read(EF_NUKE, (n), (p))
 #define putnuke(n, p) ef_write(EF_NUKE, (n), (p))
index 973daa84297758b8175ce8abcc2eca2aa6d067b4..40a5497411c4934ea3e32c14ca6e3ee1c6f19510 100644 (file)
@@ -41,7 +41,7 @@
 extern char dflt_econfig[];
 
 /* Game parameters, can be set in econfig */
 extern char dflt_econfig[];
 
 /* Game parameters, can be set in econfig */
-#define        EMP_CONFIG_H_OUTPUT
+#define EMP_CONFIG_H_OUTPUT
 #include "econfig-spec.h"
 #undef EMP_CONFIG_H_OUTPUT
 
 #include "econfig-spec.h"
 #undef EMP_CONFIG_H_OUTPUT
 
index 545da6aec042bd40ae47e557d6f00e54aa79a42c..d59b5dc0e64ce41b1df2442099f1181cca6859de 100644 (file)
 #include "types.h"
 
        /* direction indices */
 #include "types.h"
 
        /* direction indices */
-#define        DIR_STOP        0
-#define        DIR_UR          1
-#define        DIR_R           2
-#define        DIR_DR          3
-#define        DIR_DL          4
-#define        DIR_L           5
-#define        DIR_UL          6
-#define        DIR_VIEW        7
-#define        DIR_MAP         8
-#define        DIR_FIRST       1
-#define        DIR_LAST        6
+#define DIR_STOP       0
+#define DIR_UR         1
+#define DIR_R          2
+#define DIR_DR         3
+#define DIR_DL         4
+#define DIR_L          5
+#define DIR_UL         6
+#define DIR_VIEW       7
+#define DIR_MAP                8
+#define DIR_FIRST      1
+#define DIR_LAST       6
 
 enum p_mode {                  /* How to find path to destination */
     P_NONE,                    /* don't */
 
 enum p_mode {                  /* How to find path to destination */
     P_NONE,                    /* don't */
index 4f8d68e619ea662beb84362e78fa0602e85bd238..5ca3fa0684291e1e782d191e2516075eefc1fec3 100644 (file)
 #ifndef PLAGUE_H
 #define PLAGUE_H
 
 #ifndef PLAGUE_H
 #define PLAGUE_H
 
-#define        PLG_HEALTHY     0
-#define        PLG_DYING       1
-#define        PLG_INFECT      2
-#define        PLG_INCUBATE    3
-#define        PLG_EXPOSED     4
+#define PLG_HEALTHY    0
+#define PLG_DYING      1
+#define PLG_INFECT     2
+#define PLG_INCUBATE   3
+#define PLG_EXPOSED    4
 
 #endif
 
 #endif
index d6aa6646f76576c7c3cecabd12a7e0a9d0c5ba71..6a0743ff0e7d3a40a69032a028e2d942b1eb2fd4 100644 (file)
@@ -42,7 +42,7 @@
 #include "types.h"
 
 #define PLN_TYPE_MAX   46
 #include "types.h"
 
 #define PLN_TYPE_MAX   46
-#define        PLANE_MINEFF    10
+#define PLANE_MINEFF   10
 
 struct plnstr {
     /* initial part must match struct empobj */
 
 struct plnstr {
     /* initial part must match struct empobj */
@@ -74,9 +74,9 @@ struct plnstr {
     float pln_theta;           /* position in orbital sine wave */
 };
 
     float pln_theta;           /* position in orbital sine wave */
 };
 
-#define        PLN_LAUNCHED    bit(0)  /* Flying (satellite: in orbit) */
-#define        PLN_SYNCHRONOUS bit(1)  /* A satellite in geo-synchronous orbit */
-#define        PLN_AIRBURST    bit(2)  /* Airburst the nuke we're armed with */
+#define PLN_LAUNCHED   bit(0)  /* Flying (satellite: in orbit) */
+#define PLN_SYNCHRONOUS        bit(1)  /* A satellite in geo-synchronous orbit */
+#define PLN_AIRBURST   bit(2)  /* Airburst the nuke we're armed with */
 
 struct plchrstr {
     char *pl_name;             /* full name of type of plane */
 
 struct plchrstr {
     char *pl_name;             /* full name of type of plane */
index 48599de89d049605a7c0050f7237d4608e900e0b..9ebe1cf1c98dc69df177804c01c24d0dc8ab6179 100644 (file)
@@ -48,8 +48,8 @@
 #define NORM           (bit(2) | VIS)
 #define GOD            (bit(3) | NORM | VIS)
 #define EXEC           bit(5)
 #define NORM           (bit(2) | VIS)
 #define GOD            (bit(3) | NORM | VIS)
 #define EXEC           bit(5)
-#define        CAP             bit(6)
-#define        MONEY           bit(7)
+#define CAP            bit(6)
+#define MONEY          bit(7)
 
 enum player_sleep {
     PLAYER_SLEEP_NEVER, PLAYER_SLEEP_ON_INPUT, PLAYER_SLEEP_FREELY
 
 enum player_sleep {
     PLAYER_SLEEP_NEVER, PLAYER_SLEEP_ON_INPUT, PLAYER_SLEEP_FREELY
index f10292caa8fed44db4d338d1f7f0c0ac543423e1..d39ab3ad4b6c7d8193972f812af972dfff1f0956 100644 (file)
  */
 #define CLIENTPROTO    2
 
  */
 #define CLIENTPROTO    2
 
-#define        C_CMDOK         0x0
-#define        C_DATA          0x1
-#define        C_INIT          0x2
-#define        C_EXIT          0x3
+#define C_CMDOK                0x0
+#define C_DATA         0x1
+#define C_INIT         0x2
+#define C_EXIT         0x3
 #define C_FLUSH                0x4
 #define C_FLUSH                0x4
-#define        C_NOECHO        0x5
+#define C_NOECHO       0x5
 #define C_PROMPT       0x6
 #define C_PROMPT       0x6
-#define        C_ABORT         0x7
+#define C_ABORT                0x7
 #define C_REDIR                0x8
 #define C_PIPE         0x9
 #define C_REDIR                0x8
 #define C_PIPE         0x9
-#define        C_CMDERR        0xA
-#define        C_BADCMD        0xB
+#define C_CMDERR       0xA
+#define C_BADCMD       0xB
 #define C_EXECUTE      0xC
 #define C_FLASH                0xD
 #define C_INFORM        0xE
 #define C_EXECUTE      0xC
 #define C_FLASH                0xD
 #define C_INFORM        0xE
index a07bae892d632f8070a86a389ed22504fdd07fa7..32ea92e40891fafaf6130d681aae0f592cbe7a06 100644 (file)
@@ -34,7 +34,7 @@
 #ifndef QUEUE_H
 #define QUEUE_H
 
 #ifndef QUEUE_H
 #define QUEUE_H
 
-#define        QEMPTY(p)       ((p)->q_forw == (p))
+#define QEMPTY(p)      ((p)->q_forw == (p))
 
 struct emp_qelem {
     struct emp_qelem *q_forw;
 
 struct emp_qelem {
     struct emp_qelem *q_forw;
index b4dcf9168d1455bd1a8fb0b68de0c07aa4237dc2..ebe00e7d3aa5eb212ce7c37ed114e046467441c4 100644 (file)
 #ifndef RETREAT_H
 #define RETREAT_H
 
 #ifndef RETREAT_H
 #define RETREAT_H
 
-#define        MAX_RETREAT     2       /* Max number of sectors you can retreat */
-#define        RET_LEN         10
+#define MAX_RETREAT    2       /* Max number of sectors you can retreat */
+#define RET_LEN                10
 
 /* Retreat conditions */
 
 /* Retreat conditions */
-#define        RET_GROUP       1       /* Whole group retreats */
-#define        RET_INJURED     2       /* Retreat when damaged at all */
-#define        RET_TORPED      4       /* Retreat when torped */
-#define        RET_SONARED     8       /* Retreat when sonared */
-#define        RET_HELPLESS    16      /* Retreat when fired upon from beyond range */
-#define        RET_BOMBED      32      /* Retreat when bombed */
-#define        RET_DCHRGED     64      /* Retreat when depth-charged */
-#define        RET_BOARDED     128     /* Retreat when unsuccessfully boarded */
+#define RET_GROUP      1       /* Whole group retreats */
+#define RET_INJURED    2       /* Retreat when damaged at all */
+#define RET_TORPED     4       /* Retreat when torped */
+#define RET_SONARED    8       /* Retreat when sonared */
+#define RET_HELPLESS   16      /* Retreat when fired upon from beyond range */
+#define RET_BOMBED     32      /* Retreat when bombed */
+#define RET_DCHRGED    64      /* Retreat when depth-charged */
+#define RET_BOARDED    128     /* Retreat when unsuccessfully boarded */
 
 #endif
 
 #endif
index 1994f4248146ef6695db168c9a6aa8d7d641012f..268e31ea4c75b3a035c38b2d4c80b40c52fd2075 100644 (file)
@@ -124,37 +124,37 @@ struct dchrstr {
 
        /* sector types (must agree with order in dchr, empglb.c) */
 
 
        /* sector types (must agree with order in dchr, empglb.c) */
 
-#define        SCT_WATER       0       /* basics */
-#define        SCT_MOUNT       1
-#define        SCT_SANCT       2
-#define        SCT_WASTE       3
-#define        SCT_RURAL       4
-#define        SCT_CAPIT       5
-#define        SCT_URAN        6
-#define        SCT_PARK        7
-#define        SCT_ARMSF       8       /* industries */
-#define        SCT_AMMOF       9
-#define        SCT_MINE        10
-#define        SCT_GMINE       11
-#define        SCT_HARBR       12
-#define        SCT_WAREH       13
-#define        SCT_AIRPT       14
-#define        SCT_AGRI        15
-#define        SCT_OIL         16
-#define        SCT_LIGHT       17
-#define        SCT_HEAVY       18
-#define        SCT_FORTR       19      /* military/scientific */
-#define        SCT_TECH        20
-#define        SCT_RSRCH       21
-#define        SCT_NUKE        22
-#define        SCT_LIBR        23
-#define        SCT_HIWAY       24      /* communications */
-#define        SCT_RADAR       25
-#define        SCT_HEADQ       26      /* headquarters */
-#define        SCT_BHEAD       27      /* Bridge head */
-#define        SCT_BSPAN       28      /* Bridge span */
-#define        SCT_BANK        29      /* financial */
-#define        SCT_REFINE      30      /* refinery */
+#define SCT_WATER      0       /* basics */
+#define SCT_MOUNT      1
+#define SCT_SANCT      2
+#define SCT_WASTE      3
+#define SCT_RURAL      4
+#define SCT_CAPIT      5
+#define SCT_URAN       6
+#define SCT_PARK       7
+#define SCT_ARMSF      8       /* industries */
+#define SCT_AMMOF      9
+#define SCT_MINE       10
+#define SCT_GMINE      11
+#define SCT_HARBR      12
+#define SCT_WAREH      13
+#define SCT_AIRPT      14
+#define SCT_AGRI       15
+#define SCT_OIL                16
+#define SCT_LIGHT      17
+#define SCT_HEAVY      18
+#define SCT_FORTR      19      /* military/scientific */
+#define SCT_TECH       20
+#define SCT_RSRCH      21
+#define SCT_NUKE       22
+#define SCT_LIBR       23
+#define SCT_HIWAY      24      /* communications */
+#define SCT_RADAR      25
+#define SCT_HEADQ      26      /* headquarters */
+#define SCT_BHEAD      27      /* Bridge head */
+#define SCT_BSPAN      28      /* Bridge span */
+#define SCT_BANK       29      /* financial */
+#define SCT_REFINE     30      /* refinery */
 #define SCT_ENLIST     31      /* enlistment center */
 #define SCT_PLAINS      32     /* plains sector */
 #define SCT_BTOWER      33     /* Bridge tower */
 #define SCT_ENLIST     31      /* enlistment center */
 #define SCT_PLAINS      32     /* plains sector */
 #define SCT_BTOWER      33     /* Bridge tower */
index f2e4c0fd38b8c49601eba41ca87900f61b118ef8..c9b8393a9326e4039b8badf2a4d2b4bb67c51437 100644 (file)
@@ -45,7 +45,7 @@
 #include "types.h"
 
 #define SHP_TYPE_MAX   46
 #include "types.h"
 
 #define SHP_TYPE_MAX   46
-#define        SHIP_MINEFF     20
+#define SHIP_MINEFF    20
 
 /* bit masks for the autonav mode flags */
 
 
 /* bit masks for the autonav mode flags */
 
@@ -59,7 +59,7 @@
 
 
 #define MAXSHPPATH     28
 
 
 #define MAXSHPPATH     28
-#define        MAXSHPNAMLEN    24
+#define MAXSHPNAMLEN   24
 
 struct shpstr {
     /* initial part must match struct empobj */
 
 struct shpstr {
     /* initial part must match struct empobj */
index cd9c5cfaf9a3e02a4d6073a3997a1080a1430ebc..49e7ff8f6bd3bbe3ea258d6e3e8ceab754299e68 100644 (file)
@@ -38,7 +38,7 @@
 #include <time.h>
 #include "types.h"
 
 #include <time.h>
 #include "types.h"
 
-#define        MAXTELSIZE      1024    /* doesn't apply to TEL_UPDATE */
+#define MAXTELSIZE     1024    /* doesn't apply to TEL_UPDATE */
 
 #define TEL_NORM       0       /* normal */
 #define TEL_ANNOUNCE   1       /* announcement */
 
 #define TEL_NORM       0       /* normal */
 #define TEL_ANNOUNCE   1       /* announcement */
index 5656c9989abaef5dafc35b9046c89182ac6fe265..150b524cbe64a858aadcda651f23d84ec16560e1 100644 (file)
@@ -59,16 +59,16 @@ struct trtstr {
 #define TS_SIGNED      AGREE_SIGNED
 
        /* treaty clauses */
 #define TS_SIGNED      AGREE_SIGNED
 
        /* treaty clauses */
-#define        LNDATT  bit(0)          /* no attacks on land units */
-#define        SEAATT  bit(1)          /* no attacks on ships */
-#define        SEAFIR  bit(2)          /* no shelling ships */
-#define        LANATT  bit(3)          /* no attacks on sectors */
-#define        LANFIR  bit(4)          /* no shelling sectors */
-#define        NEWSHP  bit(5)          /* no new ships */
-#define        NEWNUK  bit(6)          /* no new nuclear weapons */
-#define        NEWPLN  bit(7)          /* no new planes */
+#define LNDATT bit(0)          /* no attacks on land units */
+#define SEAATT bit(1)          /* no attacks on ships */
+#define SEAFIR bit(2)          /* no shelling ships */
+#define LANATT bit(3)          /* no attacks on sectors */
+#define LANFIR bit(4)          /* no shelling sectors */
+#define NEWSHP bit(5)          /* no new ships */
+#define NEWNUK bit(6)          /* no new nuclear weapons */
+#define NEWPLN bit(7)          /* no new planes */
 #define NEWLND  bit(8)         /* no new land units */
 #define NEWLND  bit(8)         /* no new land units */
-#define        TRTENL  bit(9)          /* no enlistment */
+#define TRTENL bit(9)          /* no enlistment */
 #define SUBFIR  bit(10)                /* no depth-charging submarines */
 
 #define gettre(n, p) ef_read(EF_TREATY, (n), (p))
 #define SUBFIR  bit(10)                /* no depth-charging submarines */
 
 #define gettre(n, p) ef_read(EF_TREATY, (n), (p))
index 981fa6c28622089fbff73b9ae2cd305ef20aa5d7..c6817816ef8693bfbd62787545c6b69e8ac70b81 100644 (file)
@@ -61,7 +61,7 @@ struct as_node {
     int flags;
     struct as_node *back;
 };
     int flags;
     struct as_node *back;
 };
-#define        AS_TRIED        1       /* we've tried this node before */
+#define AS_TRIED       1       /* we've tried this node before */
 
 /*
  * Linked list of nodes, used internally by A* algorithm.
 
 /*
  * Linked list of nodes, used internally by A* algorithm.
@@ -133,15 +133,15 @@ struct as_frompath {
 /*
  * Some cheezy allocation macros.
  */
 /*
  * Some cheezy allocation macros.
  */
-#define        AS_NEW_ARRAY(p, type, n, err) \
+#define AS_NEW_ARRAY(p, type, n, err) \
        (p) = (type *)calloc((n), sizeof(*(p))); \
        if ((p) == NULL) \
                return err; \
 
        (p) = (type *)calloc((n), sizeof(*(p))); \
        if ((p) == NULL) \
                return err; \
 
-#define        AS_NEW(p, type, err) \
+#define AS_NEW(p, type, err) \
        AS_NEW_ARRAY((p), type, 1, err);
 
        AS_NEW_ARRAY((p), type, 1, err);
 
-#define        AS_NEW_MALLOC(p, type, err) \
+#define AS_NEW_MALLOC(p, type, err) \
        (p) = (type *)malloc(sizeof(type)); \
        if ((p) == NULL) \
               return err; \
        (p) = (type *)malloc(sizeof(type)); \
        if ((p) == NULL) \
               return err; \
index 9576586f03612740ed6ba53f1c8df4ec7e2c9bd6..d8bd60ab1b8d3d127bc7b717e43c1a27b44b6a0b 100644 (file)
@@ -38,7 +38,7 @@
 #include "optlist.h"
 #include "ship.h"
 
 #include "optlist.h"
 #include "ship.h"
 
-#define        TSIZE   200
+#define TSIZE  200
 
 struct coast {
     struct coast *c_next;
 
 struct coast {
     struct coast *c_next;
index c6e41f0911dcb50da6649af4a1ab71ed4e4bf7d6..fadb17ad18794c50333e202bb0018804993bb2e5 100644 (file)
@@ -50,8 +50,8 @@
 /*
  * The values 1 and -1 are important below, don't change them.
  */
 /*
  * The values 1 and -1 are important below, don't change them.
  */
-#define        LOAD    1
-#define        UNLOAD  -1
+#define LOAD   1
+#define UNLOAD -1
 
 static int load_plane_ship(struct sctstr *sectp, struct shpstr *sp,
                           int noisy, int load_unload, int *nshipsp);
 
 static int load_plane_ship(struct sctstr *sectp, struct shpstr *sp,
                           int noisy, int load_unload, int *nshipsp);
index 422c8596b08fbf27cf9c96f8bd24141f9b45d588..4a9bfc170c2c6a534f9a7dd0e96e76f3f5a7234f 100644 (file)
@@ -37,7 +37,7 @@
 #include "optlist.h"
 #include "plane.h"
 
 #include "optlist.h"
 #include "plane.h"
 
-#define        TSIZE   200
+#define TSIZE  200
 
 struct sky {
     struct sky *s_next;
 
 struct sky {
     struct sky *s_next;
index 765c7b568506eac189d8583bef1faff1d0dacd89..c0344d13e33a8cfda3613b75f8f97fdb71a20903 100644 (file)
@@ -47,8 +47,8 @@
 #include "sect.h"
 #include "xy.h"
 
 #include "sect.h"
 #include "xy.h"
 
-#define        BP_ASHASHSIZE   128     /* A* queue hash table size */
-#define        BP_NEIGHBORS    6       /* max number of neighbors */
+#define BP_ASHASHSIZE  128     /* A* queue hash table size */
+#define BP_NEIGHBORS   6       /* max number of neighbors */
 
 struct bestp {
     int sctcache_hits;
 
 struct bestp {
     int sctcache_hits;
index 5bd4449b48f8a1cb2988e163a0d4f9766002a682..d95b9e89fa9fc22b692c56856aaef394d37532be 100644 (file)
@@ -223,7 +223,7 @@ float start_research = 0.0;
 /* econfig keys */
 static int emp_config_dummy;
 struct keymatch configkeys[] = {
 /* econfig keys */
 static int emp_config_dummy;
 struct keymatch configkeys[] = {
-#define        EMP_CONFIG_C_OUTPUT
+#define EMP_CONFIG_C_OUTPUT
 #include "econfig-spec.h"
 #undef EMP_CONFIG_C_OUTPUT
 };
 #include "econfig-spec.h"
 #undef EMP_CONFIG_C_OUTPUT
 };
index aec624e8668e4123287a05fcd5296b890390bc97..50d2276862ba669404f34cb6bbc98c901cc22f04 100644 (file)
@@ -47,7 +47,7 @@
 #include "sect.h"
 #include "ship.h"
 
 #include "sect.h"
 #include "ship.h"
 
-#define        NOISY   1
+#define NOISY  1
 
 static int sb(natid, natid, struct sctstr *, coord, coord, int, int);
 
 
 static int sb(natid, natid, struct sctstr *, coord, coord, int, int);
 
index 1b2faa4baef7d1951e4406065f2aa5af71220bda..81679bcb50185f8db0b5c3f9f8be16e6c65cc287 100644 (file)
@@ -40,7 +40,7 @@
 #include "update.h"
 
 #ifndef PI
 #include "update.h"
 
 #ifndef PI
-#define        PI      3.14159265358979323846
+#define PI     3.14159265358979323846
 #endif
 
 void
 #endif
 
 void
index c49db293b3eabd6ba32d61476f26117c06252caa..a5bd1e362e1a7f0168b22bf5cd4fa1ea3f730697 100644 (file)
@@ -54,9 +54,9 @@ struct fltheadstr {
     int leader;
     signed char real_q;
 /* defines for the real_q member */
     int leader;
     signed char real_q;
 /* defines for the real_q member */
-#define        LEADER_VIRTUAL  0
-#define        LEADER_REAL     1
-#define        LEADER_WRONGSECT        2
+#define LEADER_VIRTUAL 0
+#define LEADER_REAL    1
+#define LEADER_WRONGSECT       2
     coord x, y;
     natid own;
     unsigned maxmoves;
     coord x, y;
     natid own;
     unsigned maxmoves;