From: handa Date: Thu, 22 Jul 2004 08:21:29 +0000 (+0000) Subject: (load_flt): Treat the symbol Mend as end-of-file. X-Git-Tag: REL-1-1-0~89 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=0b3d6da4b23a4c06d0c32c14d790bab941fe0b3b;p=m17n%2Fm17n-lib.git (load_flt): Treat the symbol Mend as end-of-file. --- diff --git a/src/font-flt.c b/src/font-flt.c index ba88e27..a4d0bce 100644 --- a/src/font-flt.c +++ b/src/font-flt.c @@ -848,6 +848,7 @@ load_flt (MSymbol layouter_name) MPlist *top = NULL, *plist; MSymbol Mcategory = msymbol ("category"); MSymbol Mgenerator = msymbol ("generator"); + MSymbol Mend = msymbol ("end"); MFontLayoutTable *layouter = NULL; MCharTable *category = NULL; @@ -863,6 +864,9 @@ load_flt (MSymbol layouter_name) MSymbol sym; MPlist *elt; + if (MPLIST_SYMBOL_P (plist) + && MPLIST_SYMBOL (plist) == Mend) + break; if (! MPLIST_PLIST (plist)) MERROR_GOTO (MERROR_FONT, finish); elt = MPLIST_PLIST (plist);