Skip to content

Commit

Permalink
szip: update CompressionLevel fields to use their named C values (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 21, 2023
1 parent db1cdba commit 16b07a1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions vlib/szip/szip.c.v
Expand Up @@ -55,14 +55,13 @@ fn cb_zip_extract(filename &&char, arg &&char) int {
return 0
}

// CompressionLevel lists compression levels, see in "thirdparty/zip/miniz.h"
pub enum CompressionLevel {
no_compression = 0
best_speed = 1
best_compression = 9
uber_compression = 10
default_level = 6
default_compression = -1
no_compression = C.MZ_NO_COMPRESSION
best_speed = C.MZ_BEST_SPEED
best_compression = C.MZ_BEST_COMPRESSION
uber_compression = C.MZ_UBER_COMPRESSION
default_level = C.MZ_DEFAULT_LEVEL
default_compression = C.MZ_DEFAULT_COMPRESSION
}

// OpenMode lists the opening modes
Expand Down

0 comments on commit 16b07a1

Please sign in to comment.