From: handa Date: Mon, 29 Oct 2007 12:14:49 +0000 (+0000) Subject: (dump_chain_class_set_list): Ignore an element X-Git-Tag: REL-0-9-7~5 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de1e437f7d4e464882a54d8ca4da618cefda3f96;p=m17n%2Flibotf.git (dump_chain_class_set_list): Ignore an element whose offset is zero. --- diff --git a/example/otfdump.c b/example/otfdump.c index fc5eb72..5189771 100644 --- a/example/otfdump.c +++ b/example/otfdump.c @@ -711,13 +711,14 @@ dump_chain_class_set_list (int indent, OTF_ChainClassSet *set, int count) IPRINT ("(ChainClassSetCount %d)", count); for (i = 0; i < count; i++) - { - IPRINT ("(ChainClassSet (%d)", i); - dump_chain_class_rule_list (indent + 1, - set[i].ChainClassRule, - set[i].ChainClassRuleCnt); - printf (")"); - } + if (set[i].offset) + { + IPRINT ("(ChainClassSet (%d)", i); + dump_chain_class_rule_list (indent + 1, + set[i].ChainClassRule, + set[i].ChainClassRuleCnt); + printf (")"); + } }