From 81fa711bc04271a8c0a0926e6c198f91e797f59a Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 14 Jan 2006 17:11:34 +0000 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ Makefile.am | 2 +- configure.in | 1 + kub/Makefile.am | 7 +++++++ src/ttt-board.c | 4 ++-- 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 kub/Makefile.am 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]; } -- 2.43.0