From: erg Date: Thu, 7 Dec 2006 22:49:37 +0000 (+0000) Subject: Re-do some .h files to limit exposure of internal values, .h files, X-Git-Tag: LAST_LIBGRAPH~32^2~5767 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0073cd783ed39eccbe07826d09de35e0f11acb26;p=graphviz Re-do some .h files to limit exposure of internal values, .h files, and dependencies on config.h; return to a simple, concrete boolean type --- diff --git a/lib/neatogen/quad_prog_vpsc.h b/lib/neatogen/quad_prog_vpsc.h index e78b2045d..e69bcee44 100644 --- a/lib/neatogen/quad_prog_vpsc.h +++ b/lib/neatogen/quad_prog_vpsc.h @@ -68,7 +68,7 @@ extern void generateNonoverlapConstraints( float nsizeScale, float** coords, int k, - bool transitiveClosure, + boolean transitiveClosure, ipsep_options* opt ); diff --git a/lib/neatogen/smart_ini_x.c b/lib/neatogen/smart_ini_x.c index b04e2dffd..dde478246 100644 --- a/lib/neatogen/smart_ini_x.c +++ b/lib/neatogen/smart_ini_x.c @@ -268,7 +268,7 @@ void IMDS_given_dim(vtx_data* graph, int n, double* given_coords, double pos_i; double* balance = N_GNEW(n, double); double b; - bool converged; + boolean converged; #if 0 iterations1=mat_mult_count1=0; /* We don't compute the x-axis at all. */ @@ -352,9 +352,9 @@ void IMDS_given_dim(vtx_data* graph, int n, double* given_coords, } } - for (converged=false,iterations2=0; iterations2<200 && !converged; iterations2++) { - conjugate_gradient_f(lap, y, balance, n, conj_tol, n, true); - converged=true; + for (converged=FALSE,iterations2=0; iterations2<200 && !converged; iterations2++) { + conjugate_gradient_f(lap, y, balance, n, conj_tol, n, TRUE); + converged=TRUE; for (i=0; i1e-5)) { - converged=false; + converged=FALSE; balance[i]=b; } }