diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-04-16 12:00:28 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-04-25 12:16:36 +0200 |
commit | 706ed587b875fab178fbfc2b60e1a49527e89b80 (patch) | |
tree | fb6d50795458b52a3d78febf4ce4ffc675d727e8 /include | |
parent | 51b8205a513e86c62121a927a067632c1a933839 (diff) | |
download | mupdf-706ed587b875fab178fbfc2b60e1a49527e89b80.tar.xz |
Tweak ordering of constant pdf_obj enums to make PDF_NULL == NULL.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/pdf/object.h | 9 |
1 files changed, 3 insertions, 6 deletions
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 |