Lines Matching refs:spec2
1163 static enum selabel_cmp_result incomp(struct spec *spec1, struct spec *spec2, const char *reason, i… in incomp() argument
1169 j, spec2->regex_str, spec2->mode, spec2->lr.ctx_raw); in incomp()
1187 struct spec *spec2 = &spec_arr2[j]; in cmp() local
1194 if (!spec1->hasMetaChars && spec2->hasMetaChars) { in cmp()
1200 if (spec1->hasMetaChars && !spec2->hasMetaChars) { in cmp()
1206 if (spec1->regex && spec2->regex) { in cmp()
1207 if (regex_cmp(spec1->regex, spec2->regex) == SELABEL_INCOMPARABLE){ in cmp()
1208 return incomp(spec1, spec2, "regex", i, j); in cmp()
1211 if (strcmp(spec1->regex_str, spec2->regex_str)) in cmp()
1212 return incomp(spec1, spec2, "regex_str", i, j); in cmp()
1215 if (spec1->mode != spec2->mode) in cmp()
1216 return incomp(spec1, spec2, "mode", i, j); in cmp()
1218 if (spec1->stem_id == -1 && spec2->stem_id != -1) in cmp()
1219 return incomp(spec1, spec2, "stem_id", i, j); in cmp()
1220 if (spec2->stem_id == -1 && spec1->stem_id != -1) in cmp()
1221 return incomp(spec1, spec2, "stem_id", i, j); in cmp()
1222 if (spec1->stem_id != -1 && spec2->stem_id != -1) { in cmp()
1224 struct stem *stem2 = &stem_arr2[spec2->stem_id]; in cmp()
1227 return incomp(spec1, spec2, "stem", i, j); in cmp()
1230 if (strcmp(spec1->lr.ctx_raw, spec2->lr.ctx_raw)) in cmp()
1231 return incomp(spec1, spec2, "ctx_raw", i, j); in cmp()