Lines Matching refs:ziinit
505 zip_internal ziinit;
511 fill_fopen_filefunc(&ziinit.z_filefunc);
513 ziinit.z_filefunc = *pzlib_filefunc_def;
515 ziinit.filestream = (*(ziinit.z_filefunc.zopen_file))
516 (ziinit.z_filefunc.opaque,
522 if (ziinit.filestream == NULL)
524 ziinit.begin_pos = ZTELL(ziinit.z_filefunc,ziinit.filestream);
525 ziinit.in_opened_file_inzip = 0;
526 ziinit.ci.stream_initialised = 0;
527 ziinit.number_entry = 0;
528 ziinit.add_position_when_writting_offset = 0;
529 init_linkedlist(&(ziinit.central_dir));
535 ZCLOSE(ziinit.z_filefunc,ziinit.filestream);
541 ziinit.globalcomment = NULL;
560 central_pos = ziplocal_SearchCentralDir(&ziinit.z_filefunc,ziinit.filestream);
564 if (ZSEEK(ziinit.z_filefunc, ziinit.filestream,
569 if (ziplocal_getLong(&ziinit.z_filefunc, ziinit.filestream,&uL)!=ZIP_OK)
573 if (ziplocal_getShort(&ziinit.z_filefunc, ziinit.filestream,&number_disk)!=ZIP_OK)
577 if (ziplocal_getShort(&ziinit.z_filefunc, ziinit.filestream,&number_disk_with_CD)!=ZIP_OK)
581 if (ziplocal_getShort(&ziinit.z_filefunc, ziinit.filestream,&number_entry)!=ZIP_OK)
585 if (ziplocal_getShort(&ziinit.z_filefunc, ziinit.filestream,&number_entry_CD)!=ZIP_OK)
594 if (ziplocal_getLong(&ziinit.z_filefunc, ziinit.filestream,&size_central_dir)!=ZIP_OK)
599 if (ziplocal_getLong(&ziinit.z_filefunc, ziinit.filestream,&offset_central_dir)!=ZIP_OK)
603 if (ziplocal_getShort(&ziinit.z_filefunc, ziinit.filestream,&size_comment)!=ZIP_OK)
612 ZCLOSE(ziinit.z_filefunc, ziinit.filestream);
618 ziinit.globalcomment = ALLOC(size_comment+1);
619 if (ziinit.globalcomment)
621 size_comment = ZREAD(ziinit.z_filefunc, ziinit.filestream,ziinit.globalcomment,size_comment);
622 ziinit.globalcomment[size_comment]=0;
628 ziinit.add_position_when_writting_offset = byte_before_the_zipfile;
634 if (ZSEEK(ziinit.z_filefunc, ziinit.filestream,
644 if (ZREAD(ziinit.z_filefunc, ziinit.filestream,buf_read,read_this) != read_this)
648 err = add_data_in_datablock(&ziinit.central_dir,buf_read,
654 ziinit.begin_pos = byte_before_the_zipfile;
655 ziinit.number_entry = number_entry_CD;
657 if (ZSEEK(ziinit.z_filefunc, ziinit.filestream,
664 *globalcomment = ziinit.globalcomment;
671 TRYFREE(ziinit.globalcomment);
678 *zi = ziinit;