]> granicus.if.org Git - graphviz/commitdiff
Re-do some .h files to limit exposure of internal values, .h files,
authorerg <devnull@localhost>
Thu, 7 Dec 2006 22:49:37 +0000 (22:49 +0000)
committererg <devnull@localhost>
Thu, 7 Dec 2006 22:49:37 +0000 (22:49 +0000)
and dependencies on config.h; return to a simple, concrete boolean type

lib/pack/ccomps.c
lib/pack/pack.c
lib/pack/pack.h

index 568cdfc048f8f9043bbf18ef1387a8b7596589e2..d4b55be8e45235046a4c9e9685e38d416ca8f04d 100644 (file)
@@ -70,7 +70,7 @@ static void insertFn(Agnode_t * n, void *state)
  * Note that the component subgraphs do not contain any edges. These must
  * be obtained from the root graph.
  */
-Agraph_t **pccomps(Agraph_t * g, int *ncc, char *pfx, bool * pinned)
+Agraph_t **pccomps(Agraph_t * g, int *ncc, char *pfx, boolean * pinned)
 {
     int c_cnt = 0;
     char buffer[SMALLBUF];
@@ -80,7 +80,7 @@ Agraph_t **pccomps(Agraph_t * g, int *ncc, char *pfx, bool * pinned)
     Agraph_t **ccs;
     int len;
     int bnd = 10;
-    bool pin = FALSE;
+    boolean pin = FALSE;
 
     if (agnnodes(g) == 0) {
        *ncc = 0;
index 049893b80841596ece4478ad83c86a0ff5701906..883a8ca865db2458003d201d295774316181217f 100644 (file)
@@ -579,7 +579,7 @@ point *putGraphs(int ng, Agraph_t ** gs, Agraph_t * root,
     point *places;
     Dict_t *ps;
     int i;
-    bool *fixed = pinfo->fixed;
+    boolean *fixed = pinfo->fixed;
     int fixed_cnt = 0;
     box fixed_bb = { {0, 0}, {0, 0} };
     point center;
@@ -847,7 +847,7 @@ packSubgraphs(int ng, Agraph_t ** gs, Agraph_t * root, pack_info * info)
  * Pack subgraphs followed by postprocessing.
  */
 int 
-pack_graph(int ng, Agraph_t** gs, Agraph_t* root, bool* fixed)
+pack_graph(int ng, Agraph_t** gs, Agraph_t* root, boolean* fixed)
 {
     int ret;
     pack_info info;
index e77330ad737787fddf01fb2c6df9f9c8f37382d8..a32017dd3fecfb49e4f4d8b743fd68f7d49dc1a6 100644 (file)
@@ -45,19 +45,19 @@ extern "C" {
        unsigned int margin;    /* margin left around objects, in points */
        int doSplines;          /* use splines in constructing graph shape */
        pack_mode mode;         /* granularity and method */
-       bool *fixed;            /* fixed[i] == true implies g[i] should not be moved */
+       boolean *fixed;         /* fixed[i] == true implies g[i] should not be moved */
     } pack_info;
 
     extern point *putGraphs(int, Agraph_t **, Agraph_t *, pack_info *);
     extern int packGraphs(int, Agraph_t **, Agraph_t *, pack_info *);
     extern int packSubgraphs(int, Agraph_t **, Agraph_t *, pack_info *);
-    extern int pack_graph(int, Agraph_t **, Agraph_t *, bool*);
+    extern int pack_graph(int, Agraph_t **, Agraph_t *, boolean*);
     extern pack_mode getPackMode(Agraph_t * g, pack_mode dflt);
     extern int getPack(Agraph_t *, int not_def, int dflt);
 
     extern int isConnected(Agraph_t *);
     extern Agraph_t **ccomps(Agraph_t *, int *, char *);
-    extern Agraph_t **pccomps(Agraph_t *, int *, char *, bool *);
+    extern Agraph_t **pccomps(Agraph_t *, int *, char *, boolean *);
     extern int nodeInduce(Agraph_t *);
 
 #ifdef __cplusplus