From 51b8205a513e86c62121a927a067632c1a933839 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 29 Mar 2018 22:25:09 +0200 Subject: Remove need for namedump by using macros and preprocessor. Add a PDF_NAME(Foo) macro that evaluates to a pdf_obj for /Foo. Use the C preprocessor to create the enum values and string table from one include file instead of using a separate code generator tool. --- source/pdf/pdf-run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf/pdf-run.c') diff --git a/source/pdf/pdf-run.c b/source/pdf/pdf-run.c index 22ee32c7..2cc56edb 100644 --- a/source/pdf/pdf-run.c +++ b/source/pdf/pdf-run.c @@ -66,7 +66,7 @@ pdf_run_page_contents_with_usage(fz_context *ctx, pdf_document *doc, pdf_page *p if (group) { - pdf_obj *cs = pdf_dict_get(ctx, group, PDF_NAME_CS); + pdf_obj *cs = pdf_dict_get(ctx, group, PDF_NAME(CS)); if (cs) { fz_try(ctx) -- cgit v1.2.3