diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-20 13:23:58 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2021-01-20 14:30:35 -0500 |
| commit | 9687827db547cf7a5bed7f43d2f51746914b43e3 (patch) | |
| tree | f08bc685da10ec7f9201f983e1b5528f388f7f88 /src/ctaklm.c | |
| parent | a8a9e84f44acbf8f6d0993d5a90cd589868fb020 (diff) | |
In-lined as much as a i dare
Diffstat (limited to 'src/ctaklm.c')
| -rw-r--r-- | src/ctaklm.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ctaklm.c b/src/ctaklm.c index a198d2c..eb2a788 100644 --- a/src/ctaklm.c +++ b/src/ctaklm.c @@ -296,8 +296,9 @@ load_ptn(const char* fn) { static float sum_depth, num_check; -static void -dot(const uint8_t depth) { +// Set up output function for ct1986 +inline void +ct1986_display_progress(const uint8_t depth) { sum_depth += depth; num_check += 1; if (depth == 0) { @@ -413,15 +414,12 @@ main(int argc, char **argv) { (void)(argc); (void)(argv); - // Set up output function for ct1986 - ct1986_display_progress = ˙ - human = 0; search_depth = 3; new_game(5); char *line = NULL; - ssize_t read; + ssize_t read = -1; size_t alloc_size; for (int playing = 1; playing;) { |
