From 0b3d6da4b23a4c06d0c32c14d790bab941fe0b3b Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 22 Jul 2004 08:21:29 +0000 Subject: [PATCH] (load_flt): Treat the symbol Mend as end-of-file. --- src/font-flt.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 1.7.10.4