(dump_chain_class_set_list): Ignore an element
authorhanda <handa>
Mon, 29 Oct 2007 12:14:49 +0000 (12:14 +0000)
committerhanda <handa>
Mon, 29 Oct 2007 12:14:49 +0000 (12:14 +0000)
whose offset is zero.

example/otfdump.c

index fc5eb72..5189771 100644 (file)
@@ -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 (")");
+      }
 }