Complain about invalid constants in config files.

reviewed by: plam
This commit is contained in:
Patrick Lam 2005-11-17 16:17:05 +00:00
parent 1c5b6345b9
commit f28472fdb4
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2005-11-17 Frederic Crozat <fcrozat@mandriva.com>
reviewed by: plam
* src/fcxml.c (FcTypecheckExpr):
Complain about invalid constants in config files.
2005-11-17 Andreas Schwab <schwab@suse.de>
reviewed by: plam

View File

@ -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);