From 66b9574b165be62e76c7397cf0eaa8d229d42675 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 16 Apr 2024 15:08:44 +0200 Subject: Update code style * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines --- src/bindings/zlib.nim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/bindings/zlib.nim') 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.} -- cgit 1.4.1-2-gfad0