]> granicus.if.org Git - graphviz/commitdiff
Make sure fdp global parameters are statically initialized.
authorerg <devnull@localhost>
Tue, 6 Jan 2009 04:23:23 +0000 (04:23 +0000)
committererg <devnull@localhost>
Tue, 6 Jan 2009 04:23:23 +0000 (04:23 +0000)
This avoids making the algorithm independent of processing argv[].

lib/common/globals.c

index 927b3cb61f054bda3626cf0f3606975515e73921..9c3a35a7788427c30201b4f90e2bfedbb8afaad5 100644 (file)
 #define EXTERN
 #include "types.h"
 #include "globals.h"
+
+/* Default layout values, possibly set via command line; -1 indicates unset */
+fdpParms_t fdp_parms = {
+    1,                          /* useGrid */
+    1,                          /* useNew */
+    -1,                         /* numIters */
+    50,                         /* unscaled */
+    0.0,                        /* C */
+    1.0,                        /* Tfact */
+    -1.0,                       /* K - set in initParams; used in init_edge */
+    -1.0,                       /* T0 */
+};
+