- **Breaking**: The `fixed` member of the `pack_info` struct is now an array of
C99 `bool`s instead of an array of Graphviz-specific `boolean`s. Similarly,
`pack_graph` now takes a `bool` array instead of a `boolean` array.
+- **Breaking**: `pccomps` now takes a C99 `bool` instead of a `boolean` output
+ parameter.
- **Breaking**: 1-bit fields of the `obj_state_s` struct are now unsigned
instead of signed.
- **Breaking**: Graphviz headers no longer define the constant `MAXSHORT`. A
graph_t **cc;
int n_cc;
int i;
- boolean pin;
+ bool pin;
cc = pccomps(g, &n_cc, cc_pfx, &pin);
* be obtained from the root graph.
* Return NULL on error or if graph is empty.
*/
-Agraph_t **pccomps(Agraph_t * g, int *ncc, char *pfx, boolean * pinned)
+Agraph_t **pccomps(Agraph_t * g, int *ncc, char *pfx, bool *pinned)
{
size_t c_cnt = 0;
char buffer[SMALLBUF];
else {
ccs = RALLOC(c_cnt, ccs, Agraph_t *);
*ncc = (int) c_cnt;
- *pinned = pin ? TRUE : FALSE;
+ *pinned = pin;
}
return ccs;
}
PACK_API int isConnected(Agraph_t *);
PACK_API Agraph_t **ccomps(Agraph_t *, int *, char *);
PACK_API Agraph_t **cccomps(Agraph_t *, int *, char *);
- PACK_API Agraph_t **pccomps(Agraph_t *, int *, char *, boolean *);
+ PACK_API Agraph_t **pccomps(Agraph_t *, int *, char *, bool *);
PACK_API int nodeInduce(Agraph_t *);
PACK_API Agraph_t *mapClust(Agraph_t *);
#undef PACK_API