[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Apr 30 08:34:32 PDT 2013


 src/hb-buffer.cc  |    6 +++---
 src/hb-private.hh |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 6c15ddfe2b45383824b64058ae69939d002183a6
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Apr 30 11:34:00 2013 -0400

    Renamed DEBUG to something else
    
    Some infrastructures use DEBUG as a generic symbol.

diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index 4e26250..c0ca484 100644
--- a/src/hb-buffer.cc
+++ b/src/hb-buffer.cc
@@ -549,7 +549,7 @@ void hb_buffer_t::allocate_var (unsigned int byte_i, unsigned int count, const c
 {
   assert (byte_i < 8 && byte_i + count <= 8);
 
-  if (DEBUG (BUFFER))
+  if (DEBUG_ENABLED (BUFFER))
     dump_var_allocation (this);
   DEBUG_MSG (BUFFER, this,
 	     "Allocating var bytes %d..%d for %s",
@@ -564,7 +564,7 @@ void hb_buffer_t::allocate_var (unsigned int byte_i, unsigned int count, const c
 
 void hb_buffer_t::deallocate_var (unsigned int byte_i, unsigned int count, const char *owner)
 {
-  if (DEBUG (BUFFER))
+  if (DEBUG_ENABLED (BUFFER))
     dump_var_allocation (this);
 
   DEBUG_MSG (BUFFER, this,
@@ -581,7 +581,7 @@ void hb_buffer_t::deallocate_var (unsigned int byte_i, unsigned int count, const
 
 void hb_buffer_t::assert_var (unsigned int byte_i, unsigned int count, const char *owner)
 {
-  if (DEBUG (BUFFER))
+  if (DEBUG_ENABLED (BUFFER))
     dump_var_allocation (this);
 
   DEBUG_MSG (BUFFER, this,
diff --git a/src/hb-private.hh b/src/hb-private.hh
index f1a9c3a..8121640 100644
--- a/src/hb-private.hh
+++ b/src/hb-private.hh
@@ -563,8 +563,8 @@ _hb_debug (unsigned int level,
   return level < max_level;
 }
 
-#define DEBUG_LEVEL(WHAT, LEVEL) (_hb_debug ((LEVEL), HB_DEBUG_##WHAT))
-#define DEBUG(WHAT) (DEBUG_LEVEL (WHAT, 0))
+#define DEBUG_LEVEL_ENABLED(WHAT, LEVEL) (_hb_debug ((LEVEL), HB_DEBUG_##WHAT))
+#define DEBUG_ENABLED(WHAT) (DEBUG_LEVEL_ENABLED (WHAT, 0))
 
 template <int max_level> static inline void
 _hb_debug_msg_va (const char *what,



More information about the HarfBuzz mailing list