diff options
-rw-r--r-- | include/mupdf/fitz/store.h | 5 | ||||
-rw-r--r-- | source/fitz/image.c | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/include/mupdf/fitz/store.h b/include/mupdf/fitz/store.h index 9dacee37..5b048ed0 100644 --- a/include/mupdf/fitz/store.h +++ b/include/mupdf/fitz/store.h @@ -60,11 +60,6 @@ void fz_drop_key_storable(fz_context *, const fz_key_storable *); void *fz_keep_key_storable_key(fz_context *, const fz_key_storable *); void fz_drop_key_storable_key(fz_context *, const fz_key_storable *); -static inline int fz_key_storable_needs_reaping(fz_context *ctx, const fz_key_storable *ks) -{ - return ks == NULL ? 0 : (ks->store_key_refs == ks->storable.refs); -} - /* The store can be seen as a dictionary that maps keys to fz_storable values. In order to allow keys of different types to be stored, we diff --git a/source/fitz/image.c b/source/fitz/image.c index 43addf96..81dfbab1 100644 --- a/source/fitz/image.c +++ b/source/fitz/image.c @@ -4,6 +4,13 @@ #include <math.h> #include <assert.h> +/* TODO: here or public? */ +static int +fz_key_storable_needs_reaping(fz_context *ctx, const fz_key_storable *ks) +{ + return ks == NULL ? 0 : (ks->store_key_refs == ks->storable.refs); +} + #define SANE_DPI 72.0f #define INSANE_DPI 4800.0f |