Home | History | Annotate | Download | only in src

Lines Matching defs:spec2

1128 static enum selabel_cmp_result incomp(struct spec *spec1, struct spec *spec2, const char *reason, int i, int j)
1134 j, spec2->regex_str, spec2->mode, spec2->lr.ctx_raw);
1152 struct spec *spec2 = &spec_arr2[j];
1159 if (!spec1->hasMetaChars && spec2->hasMetaChars) {
1165 if (spec1->hasMetaChars && !spec2->hasMetaChars) {
1171 if (spec1->regex && spec2->regex) {
1172 if (regex_cmp(spec1->regex, spec2->regex) == SELABEL_INCOMPARABLE){
1173 return incomp(spec1, spec2, "regex", i, j);
1176 if (strcmp(spec1->regex_str, spec2->regex_str))
1177 return incomp(spec1, spec2, "regex_str", i, j);
1180 if (spec1->mode != spec2->mode)
1181 return incomp(spec1, spec2, "mode", i, j);
1183 if (spec1->stem_id == -1 && spec2->stem_id != -1)
1184 return incomp(spec1, spec2, "stem_id", i, j);
1185 if (spec2->stem_id == -1 && spec1->stem_id != -1)
1186 return incomp(spec1, spec2, "stem_id", i, j);
1187 if (spec1->stem_id != -1 && spec2->stem_id != -1) {
1189 struct stem *stem2 = &stem_arr2[spec2->stem_id];
1192 return incomp(spec1, spec2, "stem", i, j);
1195 if (strcmp(spec1->lr.ctx_raw, spec2->lr.ctx_raw))
1196 return incomp(spec1, spec2, "ctx_raw", i, j);