Let PROMOTED and DEMOTED macros use argument
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 29 Jan 2016 16:41:58 +0000 (17:41 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 29 Jan 2016 16:41:58 +0000 (17:41 +0100)
commitff23924264802924788f2a15c73a8d058e90432e
treef959b124d5c42c4941e5b1ee7a0c412c6b6ee17a
parent4a93b2d0743219a65784b043395cda77fa80662c
Let PROMOTED and DEMOTED macros use argument

These macros were expanding to offsets added to what followed them.
Now the thing that followed them is passed to them as an argument.
This will allow them to expand the prmomotion or demotion to a table
lookup, rather than just an addition. Where PROMOTED appeared in a case
label, though, it was just a readability enhancement for the fixed
assignment, and a new macro PROMO equal to the old PROMOTED is introduced
for that.
backend.c
moves.c
parser.c