Lines Matching refs:za
43 _zip_add_entry(zip_t *za) in _zip_add_entry() argument
47 if (za->nentry+1 >= za->nentry_alloc) { in _zip_add_entry()
49 zip_uint64_t nalloc = za->nentry_alloc; in _zip_add_entry()
63 if (sizeof(struct zip_entry) * (size_t)za->nentry_alloc > realloc_size) { in _zip_add_entry()
64 zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_add_entry()
67 rentries = (zip_entry_t *)realloc(za->entry, sizeof(struct zip_entry) * (size_t)nalloc); in _zip_add_entry()
69 zip_error_set(&za->error, ZIP_ER_MEMORY, 0); in _zip_add_entry()
72 za->entry = rentries; in _zip_add_entry()
73 za->nentry_alloc = nalloc; in _zip_add_entry()
76 idx = za->nentry++; in _zip_add_entry()
78 _zip_entry_init(za->entry+idx); in _zip_add_entry()