diff options
author | Araq <rumpf_a@web.de> | 2011-12-30 11:03:01 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-12-30 11:03:01 +0100 |
commit | 73919e3082e3bd7905f9a11a33fc54d641a10ac7 (patch) | |
tree | b2b1b3185576aba3e45a84dad49b422cd7c839db /lib/impure/zipfiles.nim | |
parent | a26433b6ece813d8e14efe4f65b4be3a893c2116 (diff) | |
download | Nim-73919e3082e3bd7905f9a11a33fc54d641a10ac7.tar.gz |
GC stack scanning cares about interior pointers
Diffstat (limited to 'lib/impure/zipfiles.nim')
-rwxr-xr-x | lib/impure/zipfiles.nim | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/impure/zipfiles.nim b/lib/impure/zipfiles.nim index 2f0be6b99..1ab51fdd7 100755 --- a/lib/impure/zipfiles.nim +++ b/lib/impure/zipfiles.nim @@ -1,7 +1,7 @@ # # # Nimrod's Runtime Library -# (c) Copyright 2008 Andreas Rumpf +# (c) Copyright 2011 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. @@ -145,7 +145,7 @@ iterator walkFiles*(z: var TZipArchive): string = proc extractFile*(z: var TZipArchive, srcFile: string, dest: PStream) = - ## extracts a file from the zip archive 'z' to the destination stream. + ## extracts a file from the zip archive `z` to the destination stream. var strm = getStream(z, srcFile) while true: if not strm.atEnd: @@ -155,15 +155,13 @@ proc extractFile*(z: var TZipArchive, srcFile: string, dest: PStream) = strm.close() proc extractFile*(z: var TZipArchive, srcFile: string, dest: string) = - ## extracts a file from the zip archive 'z' to the destination filename. + ## extracts a file from the zip archive `z` to the destination filename. var file = newFileStream(dest, fmReadWrite) extractFile(z, srcFile, file) file.close() proc extractAll*(z: var TZipArchive, dest: string) = - ## extracts all files from archive 'z' to the destination directory. + ## extracts all files from archive `z` to the destination directory. for file in walkFiles(z): - extractFile(z, file, dest & "/" & extractFilename(file)) + extractFile(z, file, dest / extractFilename(file)) - - \ No newline at end of file |