chiark / gitweb /
Move various printf()s after declarations.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 6 Jul 2005 20:10:03 +0000 (20:10 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 6 Jul 2005 20:10:03 +0000 (20:10 +0000)
[originally from svn r6078]

solo.c

diff --git a/solo.c b/solo.c
index 916742f8acc007a5160dfd970d211b05c1f2c1da..b85edeb9ceac98183dc64927e65b7ffa0c588c3e 100644 (file)
--- a/solo.c
+++ b/solo.c
@@ -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);