Lines Matching defs:cmp
866 static void compile_fs_type(char *fs_type, struct fs_type_compile *cmp)
879 cmp->list = xzalloc(num * sizeof(char *));
880 cmp->type = xzalloc(num * sizeof(int));
881 cmp->negate = 0;
904 cmp->type[num] = negate ? FS_TYPE_NEGOPT : FS_TYPE_OPT;
907 cmp->negate = negate;
910 if ((negate && !cmp->negate) ||
911 (!negate && cmp->negate)) {
915 cmp->list[num++] = string_copy(s);
946 static int fs_match(struct fs_info *fs, struct fs_type_compile *cmp)
951 if (cmp->list == 0 || cmp->list[0] == 0)
954 for (n=0; (cp = cmp->list[n]); n++) {
955 switch (cmp->type[n]) {
974 return (cmp->negate ? !ret : ret);