Implement more config bool operations for boolean types

Meh.
This commit is contained in:
Behdad Esfahbod 2017-09-18 14:59:49 -04:00
parent 2544bc5343
commit 0ed241cb30
1 changed files with 12 additions and 0 deletions

View File

@ -808,6 +808,18 @@ FcConfigCompareValue (const FcValue *left_o,
case FcOpNotContains: case FcOpNotContains:
ret = !(left.u.b == right.u.b || left.u.b == FcDontCare); ret = !(left.u.b == right.u.b || left.u.b == FcDontCare);
break; break;
case FcOpLess:
ret = left.u.b != right.u.b && right.u.b == FcDontCare;
break;
case FcOpLessEqual:
ret = left.u.b == right.u.b || right.u.b == FcDontCare;
break;
case FcOpMore:
ret = left.u.b != right.u.b && left.u.b == FcDontCare;
break;
case FcOpMoreEqual:
ret = left.u.b == right.u.b || left.u.b == FcDontCare;
break;
default: default:
break; break;
} }