diff --git a/pdf.c b/pdf.c index ed6afd0326403345282b893da4fea696848d9f41..144724bffd29935267b8fdcb759697f93218deee 100644 --- a/pdf.c +++ b/pdf.c @@ -383,7 +383,7 @@ Fontinfo_T *lookup_font(TextState_T *state, struct Env *aux); * custom token types */ HTokenType TT_XREntry, TT_Ref, TT_Dict, TT_Null; -HTokenType TT_HParseResult; // XXX what is this for?! +HTokenType TT_HParseResult; /* parsed stream data */ HTokenType TT_TextEntry, TT_ObjStm; typedef struct { @@ -3457,10 +3457,11 @@ p_take__m(HAllocator *mm__, size_t n, struct Env *aux) // Parser for object streams +// XXX move this back where it belongs (trawl git log) HParser *p_objstm__m(HAllocator *, const Dict *); // Action for stream continuation -HParsedToken *act_ks_value(const HParseResult *p, void *u); +// XXX move this back next to act_ks_value() where it belongs struct streamspec { Dict *dict; /* stream dictionary */ HParser *parser; /* data parser */ @@ -4532,7 +4533,6 @@ act_ks_value(const HParseResult *p, void *u) b.len = INT_MAX; log_message(7, "parse error in stream (type %*s)\n", (int)b.len, b.token); - // XXX return the undecoded stream (p->ast)? } return H_MAKE(HParseResult, res); }