From: jacob Date: Thu, 22 Feb 2007 21:31:59 +0000 (+0000) Subject: Remove spurious semicolons from macros; their upset compilers that don't like X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/3c9562a2f71995e2a6f6d6fee0bcead2bebfdebc Remove spurious semicolons from macros; their upset compilers that don't like mixing declarations and code (I accidentally tried to compile it with one such). git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7313 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unfinished/sokoban.c b/unfinished/sokoban.c index bb2e68f..2d76954 100644 --- a/unfinished/sokoban.c +++ b/unfinished/sokoban.c @@ -99,8 +99,8 @@ #define BARREL_LABEL(b) ( (b)>='A'&&(b)<='Z' ? (b) : \ (b)>=1 && (b)<=26 ? (b)+('A'-1) : 0 ) -#define DX(d) (d == 0 ? -1 : d == 2 ? +1 : 0); -#define DY(d) (d == 1 ? -1 : d == 3 ? +1 : 0); +#define DX(d) (d == 0 ? -1 : d == 2 ? +1 : 0) +#define DY(d) (d == 1 ? -1 : d == 3 ? +1 : 0) #define FLASH_LENGTH 0.3F