mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Move various printf()s after declarations.
[originally from svn r6078]
This commit is contained in:
10
solo.c
10
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]) {
|
if (!usage->grid[YUNTRANS(y)*cr+x]) {
|
||||||
#ifdef STANDALONE_SOLVER
|
#ifdef STANDALONE_SOLVER
|
||||||
if (solver_show_working) {
|
if (solver_show_working) {
|
||||||
printf("%*s", solver_recurse_depth*4, "");
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
printf("%*s", solver_recurse_depth*4, "");
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vprintf(fmt, ap);
|
vprintf(fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
@ -544,8 +544,8 @@ static int solver_elim(struct solver_usage *usage, int start, int step
|
|||||||
} else if (m == 0) {
|
} else if (m == 0) {
|
||||||
#ifdef STANDALONE_SOLVER
|
#ifdef STANDALONE_SOLVER
|
||||||
if (solver_show_working) {
|
if (solver_show_working) {
|
||||||
printf("%*s", solver_recurse_depth*4, "");
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
printf("%*s", solver_recurse_depth*4, "");
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vprintf(fmt, ap);
|
vprintf(fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
@ -598,8 +598,8 @@ static int solver_intersect(struct solver_usage *usage,
|
|||||||
int px, py, pn;
|
int px, py, pn;
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
printf("%*s", solver_recurse_depth*4, "");
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
printf("%*s", solver_recurse_depth*4, "");
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vprintf(fmt, ap);
|
vprintf(fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
@ -732,9 +732,9 @@ static int solver_set(struct solver_usage *usage,
|
|||||||
if (rows > n - count) {
|
if (rows > n - count) {
|
||||||
#ifdef STANDALONE_SOLVER
|
#ifdef STANDALONE_SOLVER
|
||||||
if (solver_show_working) {
|
if (solver_show_working) {
|
||||||
|
va_list ap;
|
||||||
printf("%*s", solver_recurse_depth*4,
|
printf("%*s", solver_recurse_depth*4,
|
||||||
"");
|
"");
|
||||||
va_list ap;
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vprintf(fmt, ap);
|
vprintf(fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
@ -776,9 +776,9 @@ static int solver_set(struct solver_usage *usage,
|
|||||||
int px, py, pn;
|
int px, py, pn;
|
||||||
|
|
||||||
if (!progress) {
|
if (!progress) {
|
||||||
|
va_list ap;
|
||||||
printf("%*s", solver_recurse_depth*4,
|
printf("%*s", solver_recurse_depth*4,
|
||||||
"");
|
"");
|
||||||
va_list ap;
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vprintf(fmt, ap);
|
vprintf(fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
Reference in New Issue
Block a user