From: handa Date: Fri, 11 Feb 2011 02:52:37 +0000 (+0000) Subject: (indent_spaces): Delete it. X-Git-Tag: REL-0-9-13~6 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f122262022baca0933f22f89d98f2e6ddf1809a;p=m17n%2Flibotf.git (indent_spaces): Delete it. (IPRINT): Do not use indent_spaces. (dump_anchor): Do nothing if anchor->offset is zero. --- diff --git a/example/otfdump.c b/example/otfdump.c index 2f9dda3..c75053a 100644 --- a/example/otfdump.c +++ b/example/otfdump.c @@ -32,12 +32,8 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite #include -char *indent_spaces[] = - { "", " ", " ", " ", " ", " ", " ", - " ", " ", " " }; - /* Indented print. */ -#define IPRINT printf("\n%s", indent_spaces[indent]), printf +#define IPRINT printf("\n%*s", indent * 2, ""), printf static void dump_tag (OTF_Tag tag) @@ -457,6 +453,8 @@ dump_class1_record_list (int indent, static void dump_anchor (int indent, OTF_Anchor *anchor) { + if (anchor->offset == 0) + return; IPRINT ("(Anchor (offset #x%04X) (AnchorFormat %d)", anchor->offset, anchor->AnchorFormat); indent++;