summaryrefslogtreecommitdiff
path: root/include/mupdf/memento.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-09-20 13:04:51 +0100
committerRobin Watts <robin.watts@artifex.com>2016-09-20 13:45:56 +0100
commit4d6d027dc9b72e945e4c8bb8c650e8110d2cf9a0 (patch)
treef23e8dd1762510be784a5d4cbddbb119cd77e497 /include/mupdf/memento.h
parente1a0ad2791fca8fbc03ec2751d4cb2f121f9d9e6 (diff)
downloadmupdf-4d6d027dc9b72e945e4c8bb8c650e8110d2cf9a0.tar.xz
Sync Memento with gs.
Including: Bug 697134: Tweak MEMENTO_GS_HACKS inclusion. Rather than rolling our own memset prototype in this case, use the one that gs provides. And, bug 697133: Fix typo in Memento. Causing a significant slowdown. Thanks to George Burgess IV for spotting this.
Diffstat (limited to 'include/mupdf/memento.h')
-rw-r--r--include/mupdf/memento.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mupdf/memento.h b/include/mupdf/memento.h
index d78f25e3..6dd27fc4 100644
--- a/include/mupdf/memento.h
+++ b/include/mupdf/memento.h
@@ -213,6 +213,7 @@ void Memento_listNewBlocks(void);
size_t Memento_setMax(size_t);
void Memento_stats(void);
void *Memento_label(void *, const char *);
+void Memento_tick(void);
void *Memento_malloc(size_t s);
void *Memento_realloc(void *, size_t s);
@@ -223,6 +224,7 @@ void Memento_info(void *addr);
void Memento_listBlockInfo(void);
void *Memento_takeRef(void *blk);
void *Memento_dropRef(void *blk);
+void *Memento_adjustRef(void *blk, int adjust);
void *Memento_reference(void *blk);
void Memento_startLeaking(void);
@@ -268,7 +270,9 @@ void Memento_fin(void);
#define Memento_listBlockInfo() do {} while (0)
#define Memento_takeRef(A) (A)
#define Memento_dropRef(A) (A)
+#define Memento_adjustRef(A,V) (A)
#define Memento_reference(A) (A)
+#define Memento_tick() do {} while (0)
#define Memento_startLeaking() do {} while (0)
#define Memento_stopLeaking() do {} while (0)
#define Memento_fin() do {} while (0)