[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Jul 20 00:27:24 UTC 2017


 util/hb-shape.cc |    2 +-
 util/options.cc  |    2 +-
 util/options.hh  |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 6f38845d9c6852812eb1963a1fd7e5ec771e5ce3
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Wed Jul 19 17:20:55 2017 -0700

    [hb-shape] Rename --show-messages to --trace
    
    https://github.com/behdad/harfbuzz/issues/506

diff --git a/util/hb-shape.cc b/util/hb-shape.cc
index 88584316..8a27da9e 100644
--- a/util/hb-shape.cc
+++ b/util/hb-shape.cc
@@ -76,7 +76,7 @@ struct output_buffer_t
       flags |= HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS;
     format_flags = (hb_buffer_serialize_flags_t) flags;
 
-    if (format.show_messages)
+    if (format.trace)
       hb_buffer_set_message_func (buffer, message_func, this, NULL);
   }
   void new_line (void)
diff --git a/util/options.cc b/util/options.cc
index ee749640..452b0ce8 100644
--- a/util/options.cc
+++ b/util/options.cc
@@ -777,7 +777,7 @@ format_options_t::add_options (option_parser_t *parser)
     {"no-clusters",	0, G_OPTION_FLAG_REVERSE,
 			      G_OPTION_ARG_NONE,	&this->show_clusters,		"Do not output cluster indices",					NULL},
     {"show-extents",	0, 0, G_OPTION_ARG_NONE,	&this->show_extents,		"Output glyph extents",							NULL},
-    {"show-messages",	0, 0, G_OPTION_ARG_NONE,	&this->show_messages,		"Output shaping debug messages",					NULL},
+    {"trace",		0, 0, G_OPTION_ARG_NONE,	&this->trace,			"Output interim shaping results",					NULL},
     {NULL}
   };
   parser->add_group (entries,
diff --git a/util/options.hh b/util/options.hh
index ff6a61ba..4b528c2b 100644
--- a/util/options.hh
+++ b/util/options.hh
@@ -437,7 +437,7 @@ struct format_options_t : option_group_t
     show_unicode = false;
     show_line_num = false;
     show_extents = false;
-    show_messages = false;
+    trace = false;
 
     add_options (parser);
   }
@@ -479,7 +479,7 @@ struct format_options_t : option_group_t
   hb_bool_t show_unicode;
   hb_bool_t show_line_num;
   hb_bool_t show_extents;
-  hb_bool_t show_messages;
+  hb_bool_t trace;
 };
 
 /* fallback implementation for scalbn()/scalbnf() for pre-2013 MSVC */


More information about the HarfBuzz mailing list