Fix insufficiently parenthesized macro expansions.
This commit is contained in:
parent
cee8e126a2
commit
a292d6f98a
16 changed files with 43 additions and 80 deletions
|
@ -178,12 +178,9 @@ struct mchrstr {
|
|||
#define M_CANAL bit(19) /* Can navigate a canal (BIG CITY) */
|
||||
#define M_ANTIMISSILE bit(20) /* Shoot down missile */
|
||||
|
||||
#define getship(n, p) \
|
||||
ef_read(EF_SHIP, n, p)
|
||||
#define putship(n, p) \
|
||||
ef_write(EF_SHIP, n, p)
|
||||
#define getshipp(n) \
|
||||
(struct shpstr *) ef_ptr(EF_SHIP, n)
|
||||
#define getship(n, p) ef_read(EF_SHIP, (n), (p))
|
||||
#define putship(n, p) ef_write(EF_SHIP, (n), (p))
|
||||
#define getshipp(n) (struct shpstr *)ef_ptr(EF_SHIP, (n))
|
||||
|
||||
extern struct mchrstr mchr[N_MAXSHIPS + 1];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue