mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-29 15:22:06 +02:00
Restructure unit test program to include unit tests and alternate error handling.
Don't log all strings after adding one. Don't trim string buffer after reading a token.
This commit is contained in:
@@ -75,15 +75,7 @@ pdfioStringCreate(
|
||||
if (pdf->num_strings > 1)
|
||||
qsort(pdf->strings, pdf->num_strings, sizeof(char *), (int (*)(const void *, const void *))compare_strings);
|
||||
|
||||
#ifdef DEBUG
|
||||
{
|
||||
size_t i; // Looping var
|
||||
|
||||
PDFIO_DEBUG("pdfioStringCreate: %lu strings\n", (unsigned long)pdf->num_strings);
|
||||
for (i = 0; i < pdf->num_strings; i ++)
|
||||
PDFIO_DEBUG("pdfioStringCreate: strings[%lu]=%p(\"%s\")\n", (unsigned long)i, pdf->strings[i], pdf->strings[i]);
|
||||
}
|
||||
#endif // DEBUG
|
||||
PDFIO_DEBUG("pdfioStringCreate: %lu strings\n", (unsigned long)pdf->num_strings);
|
||||
|
||||
return (news);
|
||||
}
|
||||
|
Reference in New Issue
Block a user