From: Carl Worth Date: Sat, 14 Jan 2006 17:11:34 +0000 (+0000) Subject: 2006-01-14 Carl Worth X-Git-Url: https://git.cworth.org/git?p=ttt;a=commitdiff_plain;h=81fa711bc04271a8c0a0926e6c198f91e797f59a;ds=inline 2006-01-14 Carl Worth * Makefile.am: * configure.in: * kub/Makefile.am: Add kub directory to build system. * src/ttt-board.c: (ttt_board_is_won): Fix whitespace. --- diff --git a/ChangeLog b/ChangeLog index 6d6855b..eba582e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-01-14 Carl Worth + + * 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 * src/ttt-server.h: Update the documentation of these functions to diff --git a/Makefile.am b/Makefile.am index bd02e6c..0d19a31 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,3 @@ -SUBDIRS = . src +SUBDIRS = . src kub diff --git a/configure.in b/configure.in index 96a500f..584a6cc 100644 --- a/configure.in +++ b/configure.in @@ -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 index 0000000..69e5c10 --- /dev/null +++ b/kub/Makefile.am @@ -0,0 +1,7 @@ +bin_PROGRAMS = kub + +kub_sources = \ + kub.c + +AM_CFLAGS = $(WARN_CFLAGS) $(TTT_CFLAGS) +kub_LDFLAGS = $(TTT_LIBS) diff --git a/src/ttt-board.c b/src/ttt-board.c index e55fda1..bafa0fd 100644 --- a/src/ttt-board.c +++ b/src/ttt-board.c @@ -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]; }