⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 给出了 zip 压缩算法的完整实现过程。
💻
字号:
Acorn-specific compile instructions-----------------------------------Use the "RunMe1st" file (it is an Obey file) to convert all the files from"filename/[chs]" to "[chs].filename" (so that zip could be easily compiledunder RISC OS). It will also set the correct makefile.To compile just set the CSD to the main zip directory and run 'amu'.Currently only the Acorn C V5 compiler has been tested but probably alsoAcorn C V4 and the Acorn Assembler V2 will be able to compile zip.The default makefile is configured without the support for theExtended Timestamp Extra Field. If you wan to enable it you have toadd "-DUSE_EF_UT_TIME" to CFLAGS (see makefile). Without the ExtendedTimestamp Field support, zipfiles created by zip are identical to thezipfiles created by SparkFS. However, the Extended Timestamp Field canbe useful if you are going to unzip your zipfiles on a non-RISC OS machinesince the correct time stamp will be preserved across different timezones.Note that in this case, both the SparkFS Extra Field and the ExtendedTimestamp Extra Field will be used, so the zipfiles will still be fullycompatible with SparkFS and with the RISC OS version of unzip.The executables-only distributions will be compiled without the support forthe Extended Timestamp Extra Field. If you need it but you can't compile zipyourself, you can contact the authors at the Info-ZIP address who will do itfor you.Acorn-specific usage instructions---------------------------------An extra option ('I') has been added to the Acorn port: if it is specifiedzip will not consider Image files (eg. DOS partitions or Spark archives whenSparkFS is loaded) as directories but will store them as single files. Thismeans that if you have, say, SparkFS loaded, zipping a Spark archive willresult in a zipfile containing a directory (and its content) while using the'I' option will result in a zipfile containing a Spark archive. Obviouslythis second case will also be obtained (without the 'I' option) if SparkFSisn't loaded.When adding files to a zipfile; to maintain FileCore compliance, allfiles named "file/ext" will be added to the archive as "file.ext".This presents no problem if you wish to use unzip to extract them on anyother machine, as the files are correctly named. This also presents noproblem if you use unzip for RISC OS, as the files are converted back to"file/ext" format. The only problem appears when you use SparkFS todecompress the files, as a file called "file.ext" will be extracted as"file_ext", not what it was added as. You must be careful about this.Case Specific. Depending on how you type the command, files will be addedexactly as named; in this example:*zip new/zip newfile*zip new/zip NewFile*zip new/zip NEWFILEwill create an archive containing 3 copies of the same Risc OS file 'newfile'called 'newfile', 'NewFile' and 'NEWFILE'. Please be careful.The Acorn port conserves file attributes, including filetype, so if youzip on an Acorn, and unzip on another Acorn, filetypes will be maintainedprecisely as if you used uncompressed files. If you de-archive on anothermachine (PC, Mac, Unix etc..), filetypes will be ignored, but the fileswill be identical despite this. This feature is fully compatible withSparkFS, so zipfiles created by zip will be correctly uncompressed (includingfiletype, etc.) by SparkFS.An additional feature went into this port to cope better with C-codeand extensions. This allows the acorn files "c.foo" to be added to thearchive as "foo/c", eventually appearing in the archive as "foo.c", allowingfor better handling of C or C++ code. Example:*Set Zip$Exts "dir1:dir2:dir3"*zip new/zip dir1.file*zip new/zip dir2.help*zip new/zip dir3.textfileCreates a zipfile new/zip, with entries file.dir1, help.dir2, textfile.dir3.The usual settings for Zip$Exts are "h:o:s:c", allowing C code to be addedto the archive in standard form.A final note about the Acorn port regards the use of the 'n' option: this isused to specify a list of suffixes that will not be compressed (eg. .ZIP,since it is already a compressed file). Since RISC OS uses filetypes insteadof suffixes, this list of suffixes is actually considered as a list offiletypes (3 hex digit format). By default, zip doesn't compress filetypesDDC (Archive, Spark or Zip), D96 (CFS files) and 68E (PackDir).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -