chiark / gitweb /
Remove spurious semicolons from macros; their upset compilers that don't like
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Thu, 22 Feb 2007 21:31:59 +0000 (21:31 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Thu, 22 Feb 2007 21:31:59 +0000 (21:31 +0000)
mixing declarations and code (I accidentally tried to compile it with one
such).

[originally from svn r7313]

unfinished/sokoban.c

index bb2e68fe2c4e317bd120a0a92cf21eb23fb9ce44..2d76954e2958d8b92e67f3815e693e435ee49251 100644 (file)
@@ -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