The semantics of this flag were already a boolean value, so we can use the type
system to more obviously indicate this.
* Written by Emden Gansner
*/
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
fprintf(stderr, "ingraphs: out of memory\n");
return 0;
}
- sp->heap = 1;
+ sp->heap = true;
} else
- sp->heap = 0;
+ sp->heap = false;
if (graphs) {
sp->ingraphs = 1;
sp->u.Graphs = graphs;
* of Agraph_t.
*/
+#include <stdbool.h>
#include <stdio.h>
#ifdef __cplusplus
int ingraphs;
void *fp;
ingdisc *fns;
- char heap;
+ bool heap;
unsigned errors;
} ingraph_state;