Commits


explicitly cast some strings to (uint8_t *)


consistently use (uint8_t *) as string type in act_txtobj


content stream todos


skip leading whitespace in rule a85zero This matches the other rules. An ASCII85-encoded stream may begin with arbitrary whitespace.


use nnn (number, non-negative) in appropriate places


paths must begin with an "m" or "re" operator


cast a string literal to (uint8_t *)


ignore .o and test .out files


move HBytes utilities to util.c


comment


ignore stream /Type when parsing content streams


add dumpcstream (-d c)


fix argument representation for act_op


clean objects


support multiple oids on the command line


include requested object id in error message


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 member obj from TextEntry


remove now unused member tobj from struct textstr


comment fix


remove unused helper basename I think this must have been left over from an earlier refactoring of text_extract().


move opening/closing of xfile into main


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?