Fix insufficiently parenthesized macro expansions.

This commit is contained in:
Markus Armbruster 2006-04-30 16:08:45 +00:00
parent cee8e126a2
commit a292d6f98a
16 changed files with 43 additions and 80 deletions

View file

@ -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];