Home | History | Annotate | Download | only in src

Lines Matching defs:spec1

769 static enum selabel_cmp_result incomp(struct spec *spec1, struct spec *spec2, const char *reason, int i, int j)
774 i, spec1->regex_str, spec1->mode, spec1->lr.ctx_raw,
792 struct spec *spec1 = &spec_arr1[i];
800 if (!spec1->hasMetaChars && spec2->hasMetaChars) {
806 if (spec1->hasMetaChars && !spec2->hasMetaChars) {
812 if (spec1->regcomp && spec2->regcomp) {
816 rc = pcre_fullinfo(spec1->regex, NULL, PCRE_INFO_SIZE, &len1);
821 memcmp(spec1->regex, spec2->regex, len1))
822 return incomp(spec1, spec2, "regex", i, j);
824 if (strcmp(spec1->regex_str, spec2->regex_str))
825 return incomp(spec1, spec2, "regex_str", i, j);
828 if (spec1->mode != spec2->mode)
829 return incomp(spec1, spec2, "mode", i, j);
831 if (spec1->stem_id == -1 && spec2->stem_id != -1)
832 return incomp(spec1, spec2, "stem_id", i, j);
833 if (spec2->stem_id == -1 && spec1->stem_id != -1)
834 return incomp(spec1, spec2, "stem_id", i, j);
835 if (spec1->stem_id != -1 && spec2->stem_id != -1) {
836 struct stem *stem1 = &stem_arr1[spec1->stem_id];
840 return incomp(spec1, spec2, "stem", i, j);
843 if (strcmp(spec1->lr.ctx_raw, spec2->lr.ctx_raw))
844 return incomp(spec1, spec2, "ctx_raw", i, j);