From 706ed587b875fab178fbfc2b60e1a49527e89b80 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 16 Apr 2018 12:00:28 +0200 Subject: Tweak ordering of constant pdf_obj enums to make PDF_NULL == NULL. --- include/mupdf/pdf/object.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'include/mupdf/pdf') diff --git a/include/mupdf/pdf/object.h b/include/mupdf/pdf/object.h index d5979b80..d2945199 100644 --- a/include/mupdf/pdf/object.h +++ b/include/mupdf/pdf/object.h @@ -183,20 +183,17 @@ void pdf_set_int(fz_context *ctx, pdf_obj *obj, int64_t i); #define PDF_MAKE_NAME(STRING,NAME) PDF_ENUM_NAME_##NAME, enum { - PDF_ENUM_DUMMY, -#include "mupdf/pdf/name-table.h" - PDF_ENUM_LIMIT_NAME, PDF_ENUM_NULL, PDF_ENUM_TRUE, PDF_ENUM_FALSE, - PDF_ENUM_LIMIT_OBJ +#include "mupdf/pdf/name-table.h" + PDF_ENUM_LIMIT, }; #undef PDF_MAKE_NAME -#define PDF_NAME_LIMIT ((pdf_obj*)(intptr_t)PDF_ENUM_LIMIT_NAME) -#define PDF_OBJ_LIMIT ((pdf_obj*)(intptr_t)PDF_ENUM_LIMIT_OBJ) #define PDF_NULL ((pdf_obj*)(intptr_t)PDF_ENUM_NULL) #define PDF_TRUE ((pdf_obj*)(intptr_t)PDF_ENUM_TRUE) #define PDF_FALSE ((pdf_obj*)(intptr_t)PDF_ENUM_FALSE) +#define PDF_LIMIT ((pdf_obj*)(intptr_t)PDF_ENUM_LIMIT) #endif -- cgit v1.2.3