From f28472fdb4e51a06283161f9e7a645d5354a37d2 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Thu, 17 Nov 2005 16:17:05 +0000 Subject: [PATCH] Complain about invalid constants in config files. reviewed by: plam --- ChangeLog | 7 +++++++ src/fcxml.c | 4 ++++ 2 files changed, 11 insertions(+) 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); -- 2.39.5