Lines Matching refs:idx
41 zip_unchange(zip_t *za, zip_uint64_t idx) in zip_unchange() argument
43 return _zip_unchange(za, idx, 0); in zip_unchange()
48 _zip_unchange(zip_t *za, zip_uint64_t idx, int allow_duplicates) in _zip_unchange() argument
53 if (idx >= za->nentry) { in _zip_unchange()
58 …if (!allow_duplicates && za->entry[idx].changes && (za->entry[idx].changes->changed & ZIP_DIRENT_F… in _zip_unchange()
59 if (za->entry[idx].orig != NULL) { in _zip_unchange()
60 if ((orig_name=_zip_get_name(za, idx, ZIP_FL_UNCHANGED, &za->error)) == NULL) { in _zip_unchange()
65 if (i >= 0 && (zip_uint64_t)i != idx) { in _zip_unchange()
74 if ((changed_name=_zip_get_name(za, idx, 0, &za->error)) == NULL) { in _zip_unchange()
79 if (_zip_hash_add(za->names, (const zip_uint8_t *)orig_name, idx, 0, &za->error) == false) { in _zip_unchange()
89 _zip_dirent_free(za->entry[idx].changes); in _zip_unchange()
90 za->entry[idx].changes = NULL; in _zip_unchange()
92 _zip_unchange_data(za->entry+idx); in _zip_unchange()