about summary refs log tree commit diff stats
path: root/src/bindings
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-28 21:19:21 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-28 21:23:26 +0100
commitd91d1dda2ad1219b3b798eafc14151811ed9a1b3 (patch)
treef82d8da0763f0dbc62dedb2aa9aaa51114d2aad9 /src/bindings
parentb035e53d641d71fab89f92cd8d5188501be0d058 (diff)
downloadchawan-d91d1dda2ad1219b3b798eafc14151811ed9a1b3.tar.gz
Compile with styleCheck:usages
much better
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/libregexp.nim2
-rw-r--r--src/bindings/libunicode.nim2
-rw-r--r--src/bindings/quickjs.nim12
-rw-r--r--src/bindings/zlib.nim2
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)
-25 21:55:04 +0100 updated pydoc pages' href='/akspecs/ranger/commit/doc/test.tc_history.html?h=v1.7.0&id=f07bb12fc5c59430e995a64956b36331ce3629b9'>f07bb12f ^
34a60763 ^
f07bb12f ^





34a60763 ^
f07bb12f ^





34a60763 ^
f07bb12f ^

34a60763 ^
f07bb12f ^

34a60763 ^
f07bb12f ^



34a60763 ^
f07bb12f ^
34a60763 ^
f07bb12f ^
34a60763 ^
f07bb12f ^






f07bb12f ^

34a60763 ^
f07bb12f ^
34a60763 ^





f07bb12f ^
34a60763 ^

f07bb12f ^
34a60763 ^
f07bb12f ^
34a60763 ^





f07bb12f ^
34a60763 ^

f07bb12f ^
34a60763 ^





f07bb12f ^






34a60763 ^

f07bb12f ^
34a60763 ^

f07bb12f ^












34a60763 ^
f07bb12f ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189