2006-01-14 Carl Worth <cworth@cworth.org>
authorCarl Worth <carl@theworths.org>
Sat, 14 Jan 2006 17:11:34 +0000 (17:11 +0000)
committerCarl Worth <carl@theworths.org>
Sat, 14 Jan 2006 17:11:34 +0000 (17:11 +0000)
        * Makefile.am:
        * configure.in:
        * kub/Makefile.am: Add kub directory to build system.

        * src/ttt-board.c: (ttt_board_is_won): Fix whitespace.

ChangeLog
Makefile.am
configure.in
kub/Makefile.am [new file with mode: 0644]
src/ttt-board.c

index 6d6855b010ed456419ffba376c95f172ff852e85..eba582e196508837177c27f708133aeff52df892 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-01-14  Carl Worth  <cworth@cworth.org>
+
+       * Makefile.am:
+       * configure.in:
+       * kub/Makefile.am: Add kub directory to build system.
+
+       * src/ttt-board.c: (ttt_board_is_won): Fix whitespace.
+
 2005-12-14  Carl Worth  <cworth@cworth.org>
 
        * src/ttt-server.h: Update the documentation of these functions to
index bd02e6c42764ee4b6f25650b5cb908da750be9e1..0d19a317288846f4290ed820c3ebb63c4f1e513f 100644 (file)
@@ -1,3 +1,3 @@
-SUBDIRS = . src
+SUBDIRS = . src kub
 
 
index 96a500fbd43fdde4831471e3335266bae3174e9e..584a6cc6f04452ae1828e7524945cb9715ba509c 100644 (file)
@@ -40,4 +40,5 @@ dnl ===========================================================================
 AC_OUTPUT([
 Makefile
 src/Makefile
+kub/Makefile
 ])
diff --git a/kub/Makefile.am b/kub/Makefile.am
new file mode 100644 (file)
index 0000000..69e5c10
--- /dev/null
@@ -0,0 +1,7 @@
+bin_PROGRAMS = kub
+
+kub_sources =          \
+       kub.c
+
+AM_CFLAGS = $(WARN_CFLAGS) $(TTT_CFLAGS)
+kub_LDFLAGS = $(TTT_LIBS)
index e55fda1b9bb48cca37578bfef2875127d9b335c2..bafa0fd56fae79a0873daee57cf06152b4f93f2a 100644 (file)
@@ -163,14 +163,14 @@ ttt_cell_t ttt_board_is_won (ttt_board_t *board)
 
     if (board->cells[0] != TTT_CELL_EMPTY &&
        board->cells[0] == board->cells[4] &&
-       board->cells[0]== board->cells[8])
+       board->cells[0] == board->cells[8])
     {
        return board->cells[0];
     }
 
     if (board->cells[2] != TTT_CELL_EMPTY &&
        board->cells[2] == board->cells[4] &&
-       board->cells[2]== board->cells[6])
+       board->cells[2] == board->cells[6])
     {
        return board->cells[2];
     }