From: Patrick Lam Date: Thu, 17 Nov 2005 16:17:05 +0000 (+0000) Subject: Complain about invalid constants in config files. X-Git-Tag: fc-2_3_93~43 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f28472fdb4e51a06283161f9e7a645d5354a37d2;p=fontconfig.git Complain about invalid constants in config files. reviewed by: plam --- diff --git a/ChangeLog b/ChangeLog index c02da82..325481e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-11-17 Frederic Crozat + reviewed by: plam + + * src/fcxml.c (FcTypecheckExpr): + + Complain about invalid constants in config files. + 2005-11-17 Andreas Schwab reviewed by: plam diff --git a/src/fcxml.c b/src/fcxml.c index b497bd7..b3777b9 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -588,6 +588,10 @@ FcTypecheckExpr (FcConfigParse *parse, FcExpr *expr, FcType type) if (o) FcTypecheckValue (parse, o->type, type); } + else + FcConfigMessage (parse, FcSevereWarning, + "invalid constant used : %s", + expr->u.constant); break; case FcOpQuest: FcTypecheckExpr (parse, expr->u.tree.left, FcTypeBool);