diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-15 22:29:16 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-15 22:29:16 +0200 |
commit | ee721be496f849764b317c9c82f8eda5f417546a (patch) | |
tree | 598544e70deb9a0613a49593c624329ba118d391 | |
parent | c12abb7ddbbdfa6414fe00542f942276aefa7182 (diff) | |
download | chawan-ee721be496f849764b317c9c82f8eda5f417546a.tar.gz |
Include libunicode header in binding
-rw-r--r-- | src/bindings/libunicode.nim | 5 |
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.} |