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/libunicode.nim | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/bindings/libunicode.nim') diff --git a/src/bindings/libunicode.nim b/src/bindings/libunicode.nim index cb041e50..f501ae3f 100644 --- a/src/bindings/libunicode.nim +++ b/src/bindings/libunicode.nim @@ -1,5 +1,5 @@ type - DynBufReallocFunc = proc(opaque: pointer, p: pointer, size: csize_t): pointer {.cdecl.} + DynBufReallocFunc = proc(opaque, p: pointer; size: csize_t): pointer {.cdecl.} CharRange* = object len*: cint # in points, always even @@ -15,14 +15,15 @@ type {.push header: "quickjs/libunicode.h", importc.} -proc cr_init*(cr: ptr CharRange, mem_opaque: pointer, - realloc_func: DynBufReallocFunc) {.importc.} +proc cr_init*(cr: ptr CharRange; mem_opaque: pointer; + realloc_func: DynBufReallocFunc) {.importc.} proc cr_free*(cr: ptr CharRange) {.importc.} -proc unicode_normalize*(pdst: ptr ptr uint32, src: ptr uint32, src_len: cint, - n_type: UnicodeNormalizationEnum, opaque: pointer, - realloc_func: DynBufReallocFunc): cint {.importc.} +proc unicode_normalize*(pdst: ptr ptr uint32; src: ptr uint32; src_len: cint; + n_type: UnicodeNormalizationEnum; opaque: pointer; + realloc_func: DynBufReallocFunc): cint {.importc.} -proc unicode_general_category*(cr: ptr CharRange, gc_name: cstring): cint {.importc.} +proc unicode_general_category*(cr: ptr CharRange; gc_name: cstring): cint + {.importc.} {.pop.} -- cgit 1.4.1-2-gfad0