pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] Debug options patch


From: Aleksander Morgado
Subject: Re: [pdf-devel] Debug options patch
Date: Thu, 28 Feb 2008 16:51:23 +0100
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

Hi Gerel,

I don't know if the message to be printed will work correctly if only page layer is selected (for example) to have debug information

+PDFLIB_DEBUG_DESCR="all disabled"

Here "all disabled" would be added

+
+if test "x$debug_base_mode" = "xyes"; then
+  AC_DEFINE([HAVE_DEBUG_BASE], [1], [Debugging Base Layer])
+  PDFLIB_DEBUG_DESCR="base, "
+fi +if test "x$debug_object_mode" = "xyes"; then
+  AC_DEFINE([HAVE_DEBUG_OBJECT], [1], [Debugging Object Layer])
+  PDFLIB_DEBUG_DESCR="${PDFLIB_DEBUG_DESCR}object, "
+fi
+if test "x$debug_document_mode" = "xyes"; then
+  AC_DEFINE([HAVE_DEBUG_DOCUMENT], [1], [Debugging Document Layer])
+  PDFLIB_DEBUG_DESCR="${PDFLIB_DEBUG_DESCR}document, "
+fi
+if test "x$debug_page_mode" = "xyes"; then
+  AC_DEFINE([HAVE_DEBUG_PAGE], [1], [Debugging Page Layer])
+  PDFLIB_DEBUG_DESCR="${PDFLIB_DEBUG_DESCR}page"
+fi
+# end debug_*_mode

And here "page" will be added, so at the end we would have:
"alldisabledpage"

You could start the message to "", then check the different layer debug options, and only set the message to "all disabled" if it is still "" after having checked for the last layer debug option.


-Aleksander




reply via email to

[Prev in Thread] Current Thread [Next in Thread]