Clarify error callback API, and actually use the return value.

Improve repair implementation.
This commit is contained in:
Michael R Sweet
2025-04-23 14:43:14 -04:00
parent 1e6bb710e3
commit 278ddb7fa7
7 changed files with 168 additions and 62 deletions

View File

@@ -47,7 +47,7 @@ _pdfioFileConsume(pdfio_file_t *pdf, // I - PDF file
// `false` to halt.
//
bool // O - `false` to stop
bool // O - `false` to stop, `true` to continue
_pdfioFileDefaultError(
pdfio_file_t *pdf, // I - PDF file
const char *message, // I - Error message
@@ -57,7 +57,7 @@ _pdfioFileDefaultError(
fprintf(stderr, "%s: %s\n", pdf->filename, message);
return (false);
return (!strncmp(message, "WARNING:", 8));
}