Lines Matching defs:prev_name
740 static int new_name(ntfs_attr_search_ctx *ctx, char *prev_name)
745 if (prev_name && name) {
746 if (strcmp(prev_name, name) != 0)
748 } else if (prev_name || name)
758 char *prev_name)
760 if (!prev_atype && !prev_name)
769 if (new_name(ctx, prev_name))
782 static void set_prev(char **prev_name, ATTR_TYPES *prev_atype,
785 free_name(prev_name);
787 *prev_name = strdup(name);
788 if (!*prev_name)
824 char *prev_name = NULL, *name1 = NULL, *name2 = NULL;
859 if (new_attribute(ctx1, prev_atype, prev_name)) {
862 set_prev(&prev_name, &prev_atype, name1,
867 if (new_attribute(ctx2, prev_atype, prev_name)) {
870 set_prev(&prev_name, &prev_atype, name2, atype2);
874 if (new_attribute(ctx1, prev_atype, prev_name)) {
876 set_prev(&prev_name, &prev_atype, name1, atype1);
881 free_name(&prev_name);