diff options
author | bptato <nincsnevem662@gmail.com> | 2024-04-16 15:08:44 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-04-17 23:19:09 +0200 |
commit | 66b9574b165be62e76c7397cf0eaa8d229d42675 (patch) | |
tree | adb8a9719cc70f2b577706aaa4e30bb0d5d629a6 /src/bindings/zlib.nim | |
parent | d86f1939204eee771a30f47e4cbe71fd8d9a4f5f (diff) | |
download | chawan-66b9574b165be62e76c7397cf0eaa8d229d42675.tar.gz |
Update code style
* separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
Diffstat (limited to 'src/bindings/zlib.nim')
-rw-r--r-- | src/bindings/zlib.nim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bindings/zlib.nim b/src/bindings/zlib.nim index e090bc71..e7e4e94d 100644 --- a/src/bindings/zlib.nim +++ b/src/bindings/zlib.nim @@ -35,11 +35,11 @@ const Z_UNKNOWN* = cint(2) type - alloc_func* {.importc, header: "zlib.h".} = proc (opaque: pointer, - items: cuint, size: cuint): pointer {.cdecl.} + alloc_func* {.importc, header: "zlib.h".} = proc (opaque: pointer; + items, size: cuint): pointer {.cdecl.} - free_func* {.importc, header: "zlib.h".} = proc (opaque: pointer, - address: pointer) {.cdecl.} + free_func* {.importc, header: "zlib.h".} = proc (opaque, address: pointer) + {.cdecl.} internal_state* {.importc, header: "zlib.h".} = object @@ -70,10 +70,10 @@ type proc inflateInit*(strm: z_streamp): cint proc inflate*(strm: z_streamp, flush: cint): cint proc inflateEnd*(strm: z_streamp): cint -proc compress*(dest: ptr uint8, destLen: ptr culong, source: ptr uint8, +proc compress*(dest: ptr uint8; destLen: ptr culong; source: ptr uint8; sourceLen: culong): cint proc compressBound*(sourceLen: culong): culong -proc uncompress*(dest: ptr uint8, destLen: ptr culong, source: ptr uint8, +proc uncompress*(dest: ptr uint8; destLen: ptr culong; source: ptr uint8; sourceLen: culong): cint -proc crc32*(crc: culong, buf: ptr uint8, len: cuint): culong +proc crc32*(crc: culong; buf: ptr uint8; len: cuint): culong {.pop.} |