+2007-09-04 Kenichi Handa <handa@m17n.org>
+
+ * m17n-flt.c (MFontLayoutTable): Delete this type.
+ (struct _MFLT): New member mdb and coverage.
+ (list_flt): Set flt->mdb.
+ (load_generator): Argument and return value changed. Caller
+ changed.
+ (get_font_layout_table): Delete this function.
+ (run_stages): Argument changed. Caller changed.
+ (CHECK_FLT_STAGES): New macro.
+ (mfont__flt_encode_char): Argument changed.
+ (mflt_find): Likewise.
+ (mflt_coverage): New function.
+ (mflt_run): Argument changed.
+ (mdebug_dump_flt): Likewise.
+
+ * m17n-flt.h (mflt_coverage): Extern it.
+
2007-09-03 Kenichi Handa <handa@m17n.org>
* internal.h (MTABLE_CALLOC_SAFE, MSTRUCT_CALLOC_SAFE): New macros.
{
if (! CHECK_FLT_STAGES (flt))
continue;
- if (start)
- {
- MCharTable *category = MPLIST_VAL (flt->stages);
-
- for (i = pos; i < gstring->used; i++)
- if (mchartable_lookup (category, GREF (gstring, i)->c))
- break;
- *start = i;
- }
return flt;
}
}
{
if (! CHECK_FLT_STAGES (flt))
MERROR (MERROR_FLT, NULL);
- return flt->coverages;
+ return flt->coverage;
}
int