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 3f52a86..d923704 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 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;
@@ -390,8 +390,6 @@ static void prep(void) {
   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