Dropped from TZipFileStream

This commit is contained in:
patrick dw
2015-06-06 08:57:13 -05:00
parent ccb9ae2d52
commit a400987590
2 changed files with 3 additions and 2 deletions

View File

@@ -109,12 +109,13 @@ proc addFile*(z: var ZipArchive, dest: string, src: Stream) =
# -------------- zip file stream ---------------------------------------------
type
TZipFileStream = object of StreamObj
ZipFileStream = object of StreamObj
f: PZipFile
atEnd: bool
PZipFileStream* =
ref ZipFileStream ## a reader stream of a file within a zip archive
{.deprecated: [TZipFileStream: ZipFileStream].}
proc fsClose(s: Stream) = zip_fclose(PZipFileStream(s).f)
proc fsAtEnd(s: Stream): bool = PZipFileStream(s).atEnd

View File

@@ -538,7 +538,7 @@ when haveZipLib:
var n = "$#.zip" % proj
if c.outdir.len == 0: n = "build" / n
else: n = c.outdir / n
var z: TZipArchive
var z: ZipArchive
if open(z, n, fmWrite):
addFile(z, proj / buildBatFile32, "build" / buildBatFile32)
addFile(z, proj / buildBatFile64, "build" / buildBatFile64)