]> git.cworth.org Git - ttt/blob - ChangeLog
2005-11-11 Carl Worth <cworth@pippin.local>
[ttt] / ChangeLog
1 2005-11-11  Carl Worth  <cworth@pippin.local>
2
3         * src/ttt-server.c: (main): Don't assign to stderr which is
4         apparently an invalid lvalue on Mac OS X.
5
6         * src/x.h:
7         * src/x.c: (xfreopen): Change return type to void.
8
9         * src/ttt-board.c: (ttt_board_to_string): Add missing return
10         statement.
11
12 2005-11-11  Carl Worth  <cworth@cworth.org>
13
14         * configure.in: Key off of src/ttt.h instead of src/ttt.c which no
15         longer exists.
16
17 2005-11-11  Carl Worth  <cworth@cworth.org>
18
19         * src/ttt.h:
20         * src/x.c:
21         * src/x.h: Move include of stdarg.h from x.c to ttt.h.
22
23 2005-11-11  Carl Worth  <cworth@cworth.org>
24
25         * src/ttt-board.h: Include ttt.h to get standard includes.
26         
27         * src/ttt-socket.c: Replace include of netinet/ip.h with
28         netinet/in.h which seems to be necessary for BSD libc, (eg. Mac OS
29         X).
30
31 2005-11-09  Carl Worth  <cworth@cworth.org>
32
33         * src/Makefile.am:
34         * src/ttt.h:
35         * src/ttt-server.c: (ttt_dispatch), (main):
36         * src/ttt-socket.h:
37         * src/ttt-socket.c: (_sockaddr_init), (_wait_for_connection),
38         (ttt_socket_create_server), (ttt_socket_accept): Push a lot of
39         code out of ttt-server.c down into a new ttt_socket abstraction
40         layer. The code is much easier to read now. The server also no
41         longer exits when the first client exits, but continues to listen
42         for more connections.
43
44 2005-11-09  Carl Worth  <cworth@cworth.org>
45
46         * src/ttt-args.h:
47         * src/ttt-args.c: (ttt_args_help), (ttt_args_parse): Add support
48         for -h,--host, -p,--port, and --log-file command-line arguments.
49         
50         * src/ttt-server.c: (main): Use host, port, and log-file
51         command-line arguments.
52
53         * src/ttt-client.c: (main): Track change in signature of
54         ttt_args_parse.
55         
56         * src/x.h:
57         * src/x.c: (xfdopen), (xfreopen): More wrappers.
58
59 2005-11-08  Carl Worth  <cworth@cworth.org>
60
61         * src/ttt.h:
62         * src/ttt-server.c: (_sockaddr_init), (_wait_for_connection),
63         (main): Add socket, bind, listen, accept calls to provide a
64         simple, functional, one-shot server demonstration.
65
66         * src/x.h:
67         * src/x.c: (xsocket), (xbind), (xlisten), (xfcntl), (xselect): Add
68         more wrapped system calls.
69
70 2005-11-07  Carl Worth  <cworth@cworth.org>
71
72         * src/ttt.h: Grab some useful definitions from wdo.h:
73         ASSERT_NOT_REACHEED and TTT_PRINTF_FORMAT. Add several needed
74         include directives.
75
76         * src/Makefile.am: Rip out not-yet existing ttt-command and
77         ttt-error.
78         
79         * src/ttt-args.c: (ttt_args_parse): Track name change from
80         args_help to ttt_args_help.
81
82         * src/ttt.c: Remove in favor of ttt-server.c and ttt-client.c.
83         
84         * src/x.h: Add prototype for xfwrite.
85
86 2005-11-05  Richard D. Worth  <richard@theworths.org>
87
88         * src/ttt-board.c: (ttt_board_init): Added for loop counter init.
89         * src/ttt-board.h: Added prototypes.
90
91 2005-11-05  Richard D. Worth  <richard@theworths.org>
92
93         * src/args.c: Renamed ttt-args.c
94         * src/args.h: Renamed ttt-args.h
95         * src/ttt-args.c: (ttt_args_help), (ttt_args_usage),
96         (ttt_args_parse): Added ttt_ prefix.
97         * src/ttt-args.h: Added ttt_, TTT_ prefix.
98
99 2005-11-05  Kevin Worth  <kevin@cworth.org>
100
101         * src/ttt-board.c: (ttt_board_init): Implemented board_init.
102         * src/ttt-board.h: (ttt_board_t): Added cells array.
103
104 2005-11-05  Carl Worth  <cworth@cworth.org>
105
106         * src/Makefile.am: Add ttt-board.[ch] and x.[ch]
107         
108         * src/ttt-board.h:
109         * src/ttt-board.c: (ttt_board_init), (ttt_board_init_from_string),
110         (ttt_board_to_string), (ttt_board_write): Add some stub functions
111         for Richard and Kevin to have some practice
112         implementing. Functions to represent a board and to go to/from a
113         string.
114         
115         * src/x.h:
116         * src/x.c: (xasprintf), (xvasprintf), (xpipe), (xfork), (xmalloc),
117         (xcalloc), (xrealloc), (xfdopen), (xstrdup), (xfwrite): Several
118         utility functions that make system calls, check the result, and
119         exit on any error. This will simplify the error checking needed in
120         programs using these functions.
121         
122 2005-11-05  Carl Worth  <cworth@cworth.org>
123
124         * src/Makefile.am: Break things up for separate ttt-client and
125         ttt-server and programs.
126