match = 0;
}
break;
+ case INT_LE:
+ if (atoi(str) <= provider->match.number) {
+ match = 0;
+ }
+ break;
case INT_GT:
if (atoi(str) > provider->match.number) {
match = 0;
}
break;
+ case INT_GE:
+ if (atoi(str) >= provider->match.number) {
+ match = 0;
+ }
+ break;
case DEFINED: /* we already handled this:-) */
break;
}
switch (*match++) {
case '<':
- provider->match_type = INT_LT;
+ if (*match == '=') {
+ provider->match_type = INT_LE;
+ ++match;
+ }
+ else {
+ provider->match_type = INT_LT;
+ }
provider->match.number = atoi(match);
break;
case '>':
- provider->match_type = INT_GT;
+ if (*match == '=') {
+ provider->match_type = INT_GE;
+ ++match;
+ }
+ else {
+ provider->match_type = INT_GT;
+ }
provider->match.number = atoi(match);
break;
case '=':