summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-04-19 16:54:52 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-05-13 11:42:00 +0200
commitb994d72069d761c8645cc6a0638bde21109c0b40 (patch)
tree2d95cbdb501d81b49210d6c115b51bb5fa9c62a7 /scripts
parente67981e781fd087d7cd19e2373b3e054375e82ad (diff)
downloadmupdf-b994d72069d761c8645cc6a0638bde21109c0b40.tar.xz
Introduce a general output context.
This makes it possible to redirect standard out and standard error output streams to output streams of your liking. This means that now you can, in gdb, type: (gdb) call pdf_print_obj(ctx, fz_stdout(ctx), obj, 0) (gdb) call fflush(0) or when dealing with an unresolved indirect reference: (gdb) call pdf_print_obj(ctx, fz_stdout(ctx), pdf_resolve_indirect(ctx, ref), 0) (gdb) call fflush(0)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmapdump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c
index 9cc3523b..6467739b 100644
--- a/scripts/cmapdump.c
+++ b/scripts/cmapdump.c
@@ -14,6 +14,7 @@
#include "../source/fitz/context.c"
#include "../source/fitz/error.c"
#include "../source/fitz/memory.c"
+#include "../source/fitz/output.c"
#include "../source/fitz/string.c"
#include "../source/fitz/buffer.c"
#include "../source/fitz/stream-open.c"