about summary refs log tree commit diff stats
path: root/src/bindings/libunicode.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-15 22:29:16 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-15 22:29:16 +0200
commitee721be496f849764b317c9c82f8eda5f417546a (patch)
tree598544e70deb9a0613a49593c624329ba118d391 /src/bindings/libunicode.nim
parentc12abb7ddbbdfa6414fe00542f942276aefa7182 (diff)
downloadchawan-ee721be496f849764b317c9c82f8eda5f417546a.tar.gz
Include libunicode header in binding
Diffstat (limited to 'src/bindings/libunicode.nim')
-rw-r--r--src/bindings/libunicode.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bindings/libunicode.nim b/src/bindings/libunicode.nim
index d53fa060..84163a7e 100644
--- a/src/bindings/libunicode.nim
+++ b/src/bindings/libunicode.nim
@@ -11,6 +11,10 @@ type
   UnicodeNormalizationEnum* {.size: sizeof(cint).} = enum
     UNICODE_NFC, UNICODE_NFD, UNICODE_NKFC, UNICODE_NKFD
 
+{.passC: "-Ilib/".}
+
+{.push header: "quickjs/libunicode.h", importc.}
+
 proc cr_init*(cr: ptr CharRange, mem_opaque: pointer,
               realloc_func: DynBufReallocFunc) {.importc.}
 
@@ -21,3 +25,4 @@ proc unicode_normalize*(pdst: ptr ptr uint32, src: ptr uint32, src_len: cint,
                         realloc_func: DynBufReallocFunc): cint {.importc.}
 
 proc unicode_general_category*(cr: ptr CharRange, gc_name: cstring): cint {.importc.}
+{.pop.}