diff options
author | Ran Benita <ran234@gmail.com> | 2013-11-30 23:24:18 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2013-12-01 10:47:56 +0200 |
commit | c24b6420252a92823ac1503d168d81f648830e42 (patch) | |
tree | 45c3d240982c7dc882fba1acb516405912517daa /src/xkbcomp/action.c | |
parent | c5d859385f1e65ce84e90beff384d92d1362646a (diff) | |
download | libxkbcommon-c24b6420252a92823ac1503d168d81f648830e42.tar.gz libxkbcommon-c24b6420252a92823ac1503d168d81f648830e42.tar.bz2 libxkbcommon-c24b6420252a92823ac1503d168d81f648830e42.zip |
expr: add constructor for boolean expressions
Also add a 'bool set' to the ExprDef union, instead of using 'ival' as a
bool.
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp/action.c')
-rw-r--r-- | src/xkbcomp/action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xkbcomp/action.c b/src/xkbcomp/action.c index 3522dc8..37b9338 100644 --- a/src/xkbcomp/action.c +++ b/src/xkbcomp/action.c @@ -60,14 +60,14 @@ static const ExprDef constTrue = { .common = { .type = STMT_EXPR, .next = NULL }, .op = EXPR_VALUE, .value_type = EXPR_TYPE_BOOLEAN, - .value = { .ival = 1 }, + .value = { .set = true }, }; static const ExprDef constFalse = { .common = { .type = STMT_EXPR, .next = NULL }, .op = EXPR_VALUE, .value_type = EXPR_TYPE_BOOLEAN, - .value = { .ival = 0 }, + .value = { .set = false }, }; enum action_field { |