From 24289cd5fea3bad9f1b7581763c203319f8a3488 Mon Sep 17 00:00:00 2001 From: Pompolic <pompolic@special-circumstanc.es> Date: Tue, 4 Feb 2020 16:55:06 +0100 Subject: [PATCH] Custom token type and associated struct --- pdf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pdf.c b/pdf.c index 0520696..ad36654 100644 --- a/pdf.c +++ b/pdf.c @@ -116,7 +116,7 @@ struct Env { /* * custom token types */ -HTokenType TT_XREntry, TT_Ref; +HTokenType TT_XREntry, TT_Ref, TT_Dict; typedef struct { enum {XR_FREE, XR_INUSE, XR_OBJSTM} type; @@ -130,6 +130,10 @@ typedef struct { typedef struct { size_t nr, gen; } Ref; +typedef struct { + const HParsedToken *obj; +} Dict; + void pp_xrentry(FILE *stream, const HParsedToken *tok, int indent, int delta) { -- GitLab