Skip to content

Commit

Permalink
Merge pull request #2715 from 9il/zlib
Browse files Browse the repository at this point in the history
std.zlib: clean imports
  • Loading branch information
H. S. Teoh committed Nov 14, 2014
2 parents f874688 + cf5d056 commit f3def34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion std/zlib.d
Expand Up @@ -23,7 +23,7 @@ module std.zlib;

//debug=zlib; // uncomment to turn on debugging printf's

private import etc.c.zlib, std.conv;
import etc.c.zlib;

// Values for 'mode'

Expand Down Expand Up @@ -163,6 +163,7 @@ const(void)[] compress(const(void)[] buf)

void[] uncompress(void[] srcbuf, size_t destlen = 0u, int winbits = 15)
{
import std.conv : to;
int err;
ubyte[] destbuf;

Expand Down Expand Up @@ -267,6 +268,8 @@ enum HeaderFormat {

class Compress
{
import std.conv: to;

private:
z_stream zs;
int level = Z_DEFAULT_COMPRESSION;
Expand Down Expand Up @@ -429,6 +432,8 @@ class Compress

class UnCompress
{
import std.conv: to;

private:
z_stream zs;
int inited;
Expand Down

0 comments on commit f3def34

Please sign in to comment.