Lines Matching refs:idx
41 zip_file_replace(struct zip *za, zip_uint64_t idx, struct zip_source *source, zip_flags_t flags) in zip_file_replace() argument
43 if (idx >= za->nentry || source == NULL) { in zip_file_replace()
48 if (_zip_file_replace(za, idx, NULL, source, flags) == -1) in zip_file_replace()
60 _zip_file_replace(struct zip *za, zip_uint64_t idx, const char *name, struct zip_source *source, zi… in _zip_file_replace() argument
70 if (idx == ZIP_UINT64_MAX) { in _zip_file_replace()
81 idx = (zip_uint64_t)i; in _zip_file_replace()
84 if (name && _zip_set_name(za, idx, name, flags) != 0) { in _zip_file_replace()
86 _zip_entry_finalize(za->entry+idx); in _zip_file_replace()
94 _zip_unchange_data(za->entry+idx); in _zip_file_replace()
96 …if (za->entry[idx].orig != NULL && (za->entry[idx].changes == NULL || (za->entry[idx].changes->cha… in _zip_file_replace()
97 if (za->entry[idx].changes == NULL) { in _zip_file_replace()
98 if ((za->entry[idx].changes=_zip_dirent_clone(za->entry[idx].orig)) == NULL) { in _zip_file_replace()
104 za->entry[idx].changes->comp_method = ZIP_CM_REPLACED_DEFAULT; in _zip_file_replace()
105 za->entry[idx].changes->changed |= ZIP_DIRENT_COMP_METHOD; in _zip_file_replace()
108 za->entry[idx].source = source; in _zip_file_replace()
110 return (zip_int64_t)idx; in _zip_file_replace()