`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**: `gvusershape_file_access` now returns a C99 `bool` instead of a
+ Graphviz-specific `boolean`.
- **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
#define GVPLUGIN_LOADIMAGE_API /* nothing */
#endif
-GVPLUGIN_LOADIMAGE_API boolean gvusershape_file_access(usershape_t *us);
+GVPLUGIN_LOADIMAGE_API bool gvusershape_file_access(usershape_t *us);
GVPLUGIN_LOADIMAGE_API void gvusershape_file_release(usershape_t *us);
struct gvloadimage_engine_s {
}
#define MAX_USERSHAPE_FILES_OPEN 50
-boolean gvusershape_file_access(usershape_t *us)
+bool gvusershape_file_access(usershape_t *us)
{
static int usershape_files_open_cnt;
const char *fn;
else {
if (! (fn = safefile(us->name))) {
agerr(AGWARN, "Filename \"%s\" is unsafe\n", us->name);
- return FALSE;
+ return false;
}
us->f = fopen(fn, "rb");
if (us->f == NULL) {
agerr(AGWARN, "%s while opening %s\n", strerror(errno), fn);
- return FALSE;
+ return false;
}
if (usershape_files_open_cnt >= MAX_USERSHAPE_FILES_OPEN)
us->nocache = true;
usershape_files_open_cnt++;
}
assert(us->f);
- return TRUE;
+ return true;
}
void gvusershape_file_release(usershape_t *us)