From e5720af140822099b4f309e98ca5d269af4f8aee Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 15 Feb 2018 16:12:28 +0100 Subject: Remove typedef in favor of explicit enum keyword. Avoids the silliness of fz_annot_type pdf_annot_type(). --- source/pdf/pdf-annot-edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/pdf/pdf-annot-edit.c') diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c index 5142b8c1..e6f5f0d7 100644 --- a/source/pdf/pdf-annot-edit.c +++ b/source/pdf/pdf-annot-edit.c @@ -13,7 +13,7 @@ #define isdigit(c) (c >= '0' && c <= '9') const char * -pdf_string_from_annot_type(fz_context *ctx, fz_annot_type type) +pdf_string_from_annot_type(fz_context *ctx, enum pdf_annot_type type) { switch (type) { @@ -97,7 +97,7 @@ static void check_allowed_subtypes(fz_context *ctx, pdf_annot *annot, pdf_obj *p } pdf_annot * -pdf_create_annot(fz_context *ctx, pdf_page *page, fz_annot_type type) +pdf_create_annot(fz_context *ctx, pdf_page *page, enum pdf_annot_type type) { pdf_annot *annot = NULL; pdf_document *doc = page->doc; -- cgit v1.2.3