kc3-lang/libxkbcommon/src/xkbcomp/rules.c

Branch :


Log

Author Commit Date CI Message
68edd5f0 2012-05-19 12:50:47 rules: allow wildcard match against "" layout/varaint Currently, if you pass in an rmlvo with an empty string for layout or variant, it would not match layout and variant rules even with wildcards. But if the rules file had set an appropriate default, and someone passes in the empty string, than he should get the default. NULL in this case signifies not wanting to match against the layout or variant at all, and so the rule should still fail to match NULLs. Signed-off-by: Ran Benita <ran234@gmail.com>
d18cf315 2012-05-18 19:37:01 rules: remove unused struct describe_vars It's not actually used for anything. Signed-off-by: Ran Benita <ran234@gmail.com>
56b125fc 2012-05-18 18:38:06 rules: reformat AddRule and AddGroup Signed-off-by: Ran Benita <ran234@gmail.com>
c900c417 2012-05-19 01:00:52 rules: remove struct var_defs We can just use struct xkb_rule_names which we already receive as an argument. Signed-off-by: Ran Benita <ran234@gmail.com>
f790257f 2012-05-18 18:34:47 rules: reformat GetComponents Signed-off-by: Ran Benita <ran234@gmail.com>
3d28b6d1 2012-05-19 00:53:57 rules: reformat components_from_rules Signed-off-by: Ran Benita <ran234@gmail.com>
7895eeb8 2012-05-18 19:39:25 rules: reformat LoadRules and XkbRF_Free Signed-off-by: Ran Benita <ran234@gmail.com>
06205717 2012-05-18 02:53:29 rules: reformat MakeMultiDefs Signed-off-by: Ran Benita <ran234@gmail.com>
f7de6286 2012-05-18 02:20:14 rules: use asprintf instead of _Concat function Signed-off-by: Ran Benita <ran234@gmail.com>
5f54764d 2012-05-17 16:15:46 rules: reformat CheckLine and break into several functions And remove struct file_spec which is really unneeded. Should be slightly more clear now. Signed-off-by: Ran Benita <ran234@gmail.com>
2df35895 2012-05-17 14:18:31 rules: reformat SetUpRemap and struct remap_spec Rename to more descriptive names and reformat. Signed-off-by: Ran Benita <ran234@gmail.com>
b8ae68c2 2012-05-17 13:55:38 rules: rewrite get_index to use sscanf Signed-off-by: Ran Benita <ran234@gmail.com>
ef76ba97 2012-05-16 10:09:03 rules: don't typedef the structs and rename them The long prefix is unnecessary now that they are all private. Signed-off-by: Ran Benita <ran234@gmail.com>
52939d4b 2012-05-18 18:25:59 rules: reformat SubstituteVars Signed-off-by: Ran Benita <ran234@gmail.com>
478a6a31 2012-05-16 09:49:32 rules: reformat input line handling Signed-off-by: Ran Benita <ran234@gmail.com>
72d1f2ed 2012-05-16 09:39:01 rules: don't use custom logging functions Signed-off-by: Ran Benita <ran234@gmail.com>
a9477b57 2012-05-18 12:02:29 rules: reformat CheckApplyRules and ApplyPartialMatches Signed-off-by: Ran Benita <ran234@gmail.com>
b73bd676 2012-05-13 09:49:08 rules: only export a single function Really all we need from this file is a way to get xkb_component_names from an xkb_rule_names, which is now the only thing being exposed. This should allow for some much needed refactoring of this code. Since this is only used by xkbcomp.c and uses xkbcomp functions, also move rules.{c,h} under the xkbcomp dir. Signed-off-by: Ran Benita <ran234@gmail.com>
a47dd252 2012-05-18 10:43:24 rules: reformat CheckGroup and CheckApplyRule Signed-off-by: Ran Benita <ran234@gmail.com>
18d331b8 2012-05-18 11:01:20 rules: rewrite MatchOneOf Signed-off-by: Ran Benita <ran234@gmail.com>
c02c9ab2 2012-05-18 10:33:38 rules: reformat ApplyRule Signed-off-by: Ran Benita <ran234@gmail.com>