Rework debug functions, start xref stream support.

This commit is contained in:
Michael R Sweet
2021-05-06 09:51:48 -04:00
parent c0b18a7e4f
commit d2a0484d93
5 changed files with 244 additions and 122 deletions

View File

@@ -305,6 +305,26 @@ pdfioArrayCreate(pdfio_file_t *pdf) // I - PDF file
}
#ifdef DEBUG
//
// '_pdfioArrayDebug()' - Print the contents of an array.
//
void
_pdfioArrayDebug(pdfio_array_t *a) // I - Array
{
size_t i; // Looping var
_pdfio_value_t *v; // Current value
PDFIO_DEBUG("[");
for (i = a->num_values, v = a->values; i > 0; i --, v ++)
_pdfioValueDebug(v);
PDFIO_DEBUG("]");
}
#endif // DEBUG
//
// '_pdfioArrayDelete()' - Free the memory used by an array.
//