summaryrefslogtreecommitdiff
path: root/include/mupdf/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-04-16 12:00:28 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-04-25 12:16:36 +0200
commit706ed587b875fab178fbfc2b60e1a49527e89b80 (patch)
treefb6d50795458b52a3d78febf4ce4ffc675d727e8 /include/mupdf/pdf
parent51b8205a513e86c62121a927a067632c1a933839 (diff)
downloadmupdf-706ed587b875fab178fbfc2b60e1a49527e89b80.tar.xz
Tweak ordering of constant pdf_obj enums to make PDF_NULL == NULL.
Diffstat (limited to 'include/mupdf/pdf')
-rw-r--r--include/mupdf/pdf/object.h9
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