[gs-commits] Mirror of MuPDF from darcs http://mupdf.com/repos/mupdf//master - 0_7-41-g834c79f - Add convenience function for debug printing indirect objects.

Tor Andersson tor at ghostscript.com
Fri Dec 10 11:20:25 UTC 2010


commit 834c79f1b992466d2b71e2f6bdd67eca6f61c1c2
Author: Sebastian Rasmussen <sebras at hotmail.com>
Date:   Wed Dec 1 00:54:16 2010 +0000

    Add convenience function for debug printing indirect objects.
    
    Ignore-this: e65b05f7f52bdef8ba1e1e20543c8591
    
    darcs-hash:20101201005416-86a4e-f48e660b2581ca32573d2e2958deeed625de54d6.gz

 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/fitz/fitz.h b/fitz/fitz.h
index ac3bf00..37bffbc 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -440,6 +440,7 @@ void fz_sortdict(fz_obj *dict);
 int fz_sprintobj(char *s, int n, fz_obj *obj, int tight);
 int fz_fprintobj(FILE *fp, fz_obj *obj, int tight);
 void fz_debugobj(fz_obj *obj);
+void fz_debugref(fz_obj *obj);
 
 char *fz_objkindstr(fz_obj *obj);
 
diff --git a/fitz/obj_print.c b/fitz/obj_print.c
index 94509b9..a6ef73e 100644
--- a/fitz/obj_print.c
+++ b/fitz/obj_print.c
@@ -325,3 +325,12 @@ fz_debugobj(fz_obj *obj)
 {
 	fz_fprintobj(stdout, obj, 0);
 }
+
+void
+fz_debugref(fz_obj *ref)
+{
+	fz_obj *obj;
+	obj = fz_resolveindirect(ref);
+	fz_debugobj(obj);
+}
+

--
git/hooks/post-receive


More information about the gs-commits mailing list