Commit Briefs
explicitly cast some strings to (uint8_t *) (pagecontent)
skip leading whitespace in rule a85zero
This matches the other rules. An ASCII85-encoded stream may begin with arbitrary whitespace.
unify loops in act_txtobj
Instead of counting the space that will be needed for the concatenated string, use a dynamically-grown buffer. We use malloc/realloc for the growing buffer, because h_arena_realloc() is, at this time, very inefficient. After the loop, we copy the whole string into the arena at once and free the buffer.
remove unused helper basename
I think this must have been left over from an earlier refactoring of text_extract().
remove -X
According to Sumit, this was mainly meant as a temporary debugging aid anyway, so simplify the code a lot by removing the big extra loop.
only walk TextEntry objects in text_extract for font-info path
For the regular text extraction (without printing interspersed font info), the top-level "text" field of struct textstr seems to be fine. So only use the explicit loop if "outfn2" (i.e. -X) is given.
make nchars a size_t
Why did this have an explicitly sized type before?