summaryrefslogtreecommitdiff
path: root/src/fcdbg.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2014-03-27 15:10:44 +0900
committerAkira TAGOH <akira@tagoh.org>2017-11-07 15:24:54 +0900
commit9a0fcb948fe7346f6c68028b2e54ab600a2a2a6f (patch)
tree34cd373fb1529028fc8bb68526227e85ac520ad4 /src/fcdbg.c
parent0c149259e4cc8070f6c8bf149290abb1367f340a (diff)
Add the ruleset description support
Trying to address what these configuration files really do. This change allows to see the short description that mention the purpose of the content in the config file and obtain them through API. This change also encourage one who want to make some UI for the user-specific configuration management. it is the main purpose of this change for me though. Aside from that, I've also made programs translatable. so we see more dependencies on the build time for gettext, and itstool to generate PO from xml.
Diffstat (limited to 'src/fcdbg.c')
-rw-r--r--src/fcdbg.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fcdbg.c b/src/fcdbg.c
index e0c78b7..2e16a31 100644
--- a/src/fcdbg.c
+++ b/src/fcdbg.c
@@ -479,6 +479,9 @@ FcTestPrint (const FcTest *test)
case FcMatchScan:
printf ("scan ");
break;
+ case FcMatchKindEnd:
+ /* shouldn't be reached */
+ return;
}
switch (test->qual) {
case FcQualAny:
@@ -511,13 +514,12 @@ FcEditPrint (const FcEdit *edit)
}
void
-FcSubstPrint (const FcSubst *subst)
+FcRulePrint (const FcRule *rule)
{
- FcRule *r;
FcRuleType last_type = FcRuleUnknown;
+ const FcRule *r;
- printf ("match\n");
- for (r = subst->rule; r; r = r->next)
+ for (r = rule; r; r = r->next)
{
if (last_type != r->type)
{