diff options
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/libregexp.nim | 2 | ||||
-rw-r--r-- | src/bindings/libunicode.nim | 2 | ||||
-rw-r--r-- | src/bindings/quickjs.nim | 12 | ||||
-rw-r--r-- | src/bindings/zlib.nim | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/bindings/libregexp.nim b/src/bindings/libregexp.nim index c26111fd..85e7c1ca 100644 --- a/src/bindings/libregexp.nim +++ b/src/bindings/libregexp.nim @@ -6,7 +6,7 @@ const LRE_FLAG_UTF16* = 1 shl 4 LRE_FLAG_STICKY* = 1 shl 5 -{.passC: "-Ilib/".} +{.passc: "-Ilib/".} {.push header: "quickjs/libregexp.h", importc.} proc lre_compile*(plen: ptr cint, error_msg: cstring, error_msg_size: cint, diff --git a/src/bindings/libunicode.nim b/src/bindings/libunicode.nim index 84163a7e..cb041e50 100644 --- a/src/bindings/libunicode.nim +++ b/src/bindings/libunicode.nim @@ -11,7 +11,7 @@ type UnicodeNormalizationEnum* {.size: sizeof(cint).} = enum UNICODE_NFC, UNICODE_NFD, UNICODE_NKFC, UNICODE_NKFD -{.passC: "-Ilib/".} +{.passc: "-Ilib/".} {.push header: "quickjs/libunicode.h", importc.} diff --git a/src/bindings/quickjs.nim b/src/bindings/quickjs.nim index e4a29029..a2cf431e 100644 --- a/src/bindings/quickjs.nim +++ b/src/bindings/quickjs.nim @@ -2,8 +2,8 @@ import bindings/constcharp const qjsheader = "quickjs/quickjs.h" -{.passC: "-Ilib/".} -{.passL: "-Llib/ -lquickjs -lm -lpthread".} +{.passc: "-Ilib/".} +{.passl: "-Llib/ -lquickjs -lm -lpthread".} const ## all tags with a reference count are negative JS_TAG_FIRST* = -10 ## first negative tag @@ -170,7 +170,7 @@ type cproto*: JSCFunctionEnum cfunc*: JSCFunctionType - JSCFunctionListEntryGetset = object + JSCFunctionListEntryGetSet = object get*: JSCFunctionType set*: JSCFunctionType @@ -179,12 +179,12 @@ type base: cint JSCFunctionListEntryPropList = object - tab: ptr JSCfunctionListEntry + tab: ptr JSCFunctionListEntry len: cint JSCFunctionListEntryU* {.union.} = object `func`* {.importc: "func".}: JSCFunctionListEntryFunc - getset: JSCFunctionListEntryGetset + getset: JSCFunctionListEntryGetSet alias: JSCFunctionListEntryAlias prop_list: JSCFunctionListEntryPropList str: cstring @@ -213,7 +213,7 @@ type JS_CLASS_ARRAY JS_CLASS_ERROR -converter toBool*(js: JS_BOOl): bool {.inline.} = +converter toBool*(js: JS_BOOL): bool {.inline.} = cast[cint](js) != 0 converter toJSBool*(b: bool): JS_BOOL {.inline.} = diff --git a/src/bindings/zlib.nim b/src/bindings/zlib.nim index 10a2c560..e090bc71 100644 --- a/src/bindings/zlib.nim +++ b/src/bindings/zlib.nim @@ -6,7 +6,7 @@ const zlib = (func(): string = when zlib == "": error("zlib not found") -{.passL: zlib.} +{.passl: zlib.} const Z_NO_FLUSH* = cint(0) |