chiark / gitweb /
make -b<startbest> more effective by moving initialisation of {n,m}_max_frags earlier
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 19:46:55 +0000 (19:46 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 19:46:55 +0000 (19:46 +0000)
main.c

diff --git a/main.c b/main.c
index 3f52a86e9d76bb5cb3efc2dc42ba832b5f2a9ba3..d923704f3962c805984567e957e1b02bbcfb2a7d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -115,7 +115,7 @@ static double best;
 static glp_prob *best_prob;
 static AdjWord *best_adjmatrix;
 
 static glp_prob *best_prob;
 static AdjWord *best_adjmatrix;
 
-static int n_max_frags, m_max_frags;
+static int n_max_frags=INT_MAX, m_max_frags=INT_MAX;
 static int *weight;
 
 static unsigned printcounter;
 static int *weight;
 
 static unsigned printcounter;
@@ -390,8 +390,6 @@ static void prep(void) {
   glp_term_out(GLP_OFF);
   setlinebuf(stderr);
   weight = calloc(sizeof(*weight), m);  assert(weight);
   glp_term_out(GLP_OFF);
   setlinebuf(stderr);
   weight = calloc(sizeof(*weight), m);  assert(weight);
-  n_max_frags = INT_MAX;
-  m_max_frags = INT_MAX;
 }
 
 #if 0
 }
 
 #if 0