diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-11-06 19:55:40 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-11-08 17:57:09 +0100 |
commit | 143a4898f13cee32741c3acd6c4c428afd9545be (patch) | |
tree | 307c8202d543c0b5743d9904974bf29203413f90 | |
parent | b6de127414f5768db4b5484889bd8366ad9e65f1 (diff) | |
download | mupdf-143a4898f13cee32741c3acd6c4c428afd9545be.tar.xz |
Move static inline function out of header.
-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 |