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

@ -174,12 +174,9 @@ struct lchrstr {
/* Chance to detect L_SPY unit (percent) */
#define LND_SPY_DETECT_CHANCE(eff) ((110-(eff))/100.0)
#define getland(n, p) \
ef_read(EF_LAND, n, p)
#define putland(n, p) \
ef_write(EF_LAND, n, p)
#define getlandp(n) \
(struct lndstr *) ef_ptr(EF_LAND, n)
#define getland(n, p) ef_read(EF_LAND, (n), (p))
#define putland(n, p) ef_write(EF_LAND, (n), (p))
#define getlandp(n) (struct lndstr *)ef_ptr(EF_LAND, (n))
extern struct lchrstr lchr[N_MAXLAND + 1];