diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-07-06 20:10:03 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-07-06 20:10:03 +0000 |
| commit | d7588e60487337b6d0ca4a6280a812804afe08e6 (patch) | |
| tree | d20975d2fc219c69a4ef9648d6f40102cd848fe6 /solo.c | |
| parent | 6ea61aa98e9b4a39504f0cd2eb768ecb4d508f7a (diff) | |
| download | puzzles-d7588e60487337b6d0ca4a6280a812804afe08e6.zip puzzles-d7588e60487337b6d0ca4a6280a812804afe08e6.tar.gz puzzles-d7588e60487337b6d0ca4a6280a812804afe08e6.tar.bz2 puzzles-d7588e60487337b6d0ca4a6280a812804afe08e6.tar.xz | |
Move various printf()s after declarations.
[originally from svn r6078]
Diffstat (limited to 'solo.c')
| -rw-r--r-- | solo.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -529,8 +529,8 @@ static int solver_elim(struct solver_usage *usage, int start, int step if (!usage->grid[YUNTRANS(y)*cr+x]) { #ifdef STANDALONE_SOLVER if (solver_show_working) { - printf("%*s", solver_recurse_depth*4, ""); va_list ap; + printf("%*s", solver_recurse_depth*4, ""); va_start(ap, fmt); vprintf(fmt, ap); va_end(ap); @@ -544,8 +544,8 @@ static int solver_elim(struct solver_usage *usage, int start, int step } else if (m == 0) { #ifdef STANDALONE_SOLVER if (solver_show_working) { - printf("%*s", solver_recurse_depth*4, ""); va_list ap; + printf("%*s", solver_recurse_depth*4, ""); va_start(ap, fmt); vprintf(fmt, ap); va_end(ap); @@ -598,8 +598,8 @@ static int solver_intersect(struct solver_usage *usage, int px, py, pn; if (!ret) { - printf("%*s", solver_recurse_depth*4, ""); va_list ap; + printf("%*s", solver_recurse_depth*4, ""); va_start(ap, fmt); vprintf(fmt, ap); va_end(ap); @@ -732,9 +732,9 @@ static int solver_set(struct solver_usage *usage, if (rows > n - count) { #ifdef STANDALONE_SOLVER if (solver_show_working) { + va_list ap; printf("%*s", solver_recurse_depth*4, ""); - va_list ap; va_start(ap, fmt); vprintf(fmt, ap); va_end(ap); @@ -776,9 +776,9 @@ static int solver_set(struct solver_usage *usage, int px, py, pn; if (!progress) { + va_list ap; printf("%*s", solver_recurse_depth*4, ""); - va_list ap; va_start(ap, fmt); vprintf(fmt, ap); va_end(ap); |