Lines Matching full:stream
35 #define DUMP(format) dump (stream, indent, format)
36 #define DUMP1(format, arg1) dump (stream, indent, format, arg1)
37 #define DUMP2(format, arg1, arg2) dump (stream, indent, format, arg1, arg2)
38 #define DUMP3(format, arg1, arg2, arg3) dump (stream, indent, format, arg1, arg2, arg3)
40 #define DUMP_FINT(strct,fld) dump (stream, indent, "<" #fld ">%d</" #fld ">\n", (strct)->fld)
41 #define DUMP_FUINT(strct,fld) dump (stream, indent, "<" #fld ">%u</" #fld ">\n", (strct)->fld)
42 #define DUMP_FGLYPH(strct,fld) dump (stream, indent, "<" #fld ">%#06x</" #fld ">\n", (strct)->fld)
43 #define DUMP_FGLYPH(strct,fld) dump (stream, indent, "<" #fld ">%#06x</" #fld ">\n", (strct)->fld)
44 #define DUMP_USHORT_ARRAY(strct,fld,cnt) Dump_UShort_Array ((strct)->fld, cnt, #fld, stream, indent);
46 #define DEF_DUMP(type) static void Dump_ ## type (HB_ ## type *type, FILE *stream, int indent, HB_Type hb_type)
47 #define RECURSE(name, type, val) do { DUMP ("<" #name ">\n"); Dump_ ## type (val, stream, indent + 1, hb_type); DUMP ("</" #name ">\n"); } while (0)
48 #define RECURSE_NUM(name, i, type, val) do { DUMP1 ("<" #name "> <!-- %d -->\n", i); Dump_ ## type (val, stream, indent + 1, hb_type); DUMP ("</" #name ">\n"); } while (0)
49 #define DUMP_VALUE_RECORD(val, frmt) do { DUMP ("<ValueRecord>\n"); Dump_ValueRecord (val, stream, indent + 1, hb_type, frmt); DUMP ("</ValueRecord>\n"); } while (0)
52 do_indent (FILE *stream, int indent)
54 fprintf (stream, "%*s", indent * 3, "");
58 dump (FILE *stream, int indent, const char *format, ...)
62 do_indent (stream, indent);
65 vfprintf (stream, format, list);
70 Dump_UShort_Array (HB_UShort *array, int count, const char *name, FILE *stream, int indent)
74 do_indent (stream, indent);
76 fprintf (stream, "<%s>", name);
78 fprintf (stream, "%d%s", array[i], i == 0 ? "" : " ");
79 fprintf (stream, "</%s>\n", name);
83 Print_Tag (HB_UInt tag, FILE *stream)
85 fprintf (stream, "%c%c%c%c",
116 do_indent (stream, indent);
117 fprintf (stream, "<LangSysTag>");
118 Print_Tag (ScriptTable->LangSysRecord[i].LangSysTag, stream);
119 fprintf (stream, "</LangSysTag>\n");
132 do_indent (stream, indent);
133 fprintf (stream, "<ScriptTag>");
134 Print_Tag (ScriptList->ScriptRecord[i].ScriptTag, stream);
135 fprintf (stream, "</ScriptTag>\n");
179 do_indent (stream, indent);
180 fprintf (stream, "<FeatureTag>");
181 Print_Tag (FeatureList->FeatureRecord[i].FeatureTag, stream);
182 fprintf (stream, "</FeatureTag> <!-- %d -->\n", i);
286 Dump_GSUB_Lookup_Single (HB_SubTable *subtable, FILE *stream, int indent, HB_Type hb_type)
331 Dump_GSUB_Lookup_Ligature (HB_SubTable *subtable, FILE *stream, int indent, HB_Type hb_type)
370 Dump_GSUB_Lookup_Context (HB_SubTable *subtable, FILE *stream, int indent, HB_Type hb_type)
378 Dump_ContextSubstFormat1 (&ContextSubst->csf.csf1, stream, indent+2, hb_type);
381 Dump_ContextSubstFormat2 (&ContextSubst->csf.csf2, stream, indent+2, hb_type);
384 Dump_ContextSubstFormat3 (&ContextSubst->csf.csf3, stream, indent+2, hb_type);
436 Dump_GSUB_Lookup_Chain (HB_SubTable *subtable, FILE *stream, int indent, HB_Type hb_type)
444 Dump_ChainContextSubstFormat1 (&chain->ccsf.ccsf1, stream, indent+2, hb_type);
447 Dump_ChainContextSubstFormat2 (&chain->ccsf.ccsf2, stream, indent+2, hb_type);
450 Dump_ChainContextSubstFormat3 (&chain->ccsf.ccsf3, stream, indent+2, hb_type);
458 Dump_Device (HB_Device *Device, FILE *stream, int indent, HB_Type hb_type)
502 dump (stream, indent, "%d", signed_val >> (16 - bits));
511 Dump_ValueRecord (HB_ValueRecord *ValueRecord, FILE *stream, int indent, HB_Type hb_type, HB_UShort value_format)
542 Dump_GPOS_Lookup_Single (HB_SubTable *subtable, FILE *stream, int indent, HB_Type hb_type)
566 Dump_PairValueRecord (HB_PairValueRecord *PairValueRecord, FILE *stream, int indent, HB_Type hb_type, HB_UShort ValueFormat1, HB_UShort ValueFormat2)
574 Dump_PairSet (HB_PairSet *PairSet, FILE *stream, int indent, HB_Type hb_type, HB_UShort ValueFormat1, HB_UShort ValueFormat2)
582 Dump_PairValueRecord (&PairSet->PairValueRecord[i], stream, indent + 1, hb_type, ValueFormat1, ValueFormat2);
588 Dump_GPOS_Lookup_Pair (HB_SubTable *subtable, FILE *stream, int indent, HB_Type hb_type)
606 Dump_PairSet (&PairPos->ppf.ppf1.PairSet[i], stream, indent + 1, hb_type, PairPos->ValueFormat1, PairPos->ValueFormat2);
616 Dump_GPOS_Lookup_Markbase (HB_SubTable *subtable, FILE *stream, int indent, HB_Type hb_type)
649 void (*lookup_func) (HB_SubTable *subtable, FILE *stream, int indent, HB_Type hb_type) = NULL;
728 (*lookup_func) (&Lookup->SubTable[i], stream, indent + 1, hb_type);
744 HB_Dump_GSUB_Table (HB_GSUB gsub, FILE *stream)
749 do_indent (stream, indent);
750 fprintf(stream, "<!-- GSUB -->\n");
757 HB_Dump_GPOS_Table (HB_GPOS gpos, FILE *stream)
762 do_indent (stream, indent);
763 fprintf(stream, "<!-- GPOS -->\n");