]> git.wh0rd.org Git - fontconfig.git/commitdiff
Complain about invalid constants in config files.
authorPatrick Lam <plam@MIT.EDU>
Thu, 17 Nov 2005 16:17:05 +0000 (16:17 +0000)
committerPatrick Lam <plam@MIT.EDU>
Thu, 17 Nov 2005 16:17:05 +0000 (16:17 +0000)
reviewed by: plam

ChangeLog
src/fcxml.c

index c02da827edb6cd7d99f93fcafb35ef7556642923..325481ee169d77bd169d32d1d4a601b243b66c1b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
        
index b497bd7297f596d3244791c80bb49993e1578328..b3777b9bb43247f3329a69551cc21ea3eb8551e0 100644 (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);