18
18
19
19
20
20
21
-
22
-
23
- typedef struct {
24
- const int32_t * ptr ;
25
- } blink_cmp_fuzzy__Option_int32_t;
26
- typedef struct {
27
- const int32_t * ptr ;
28
- size_t len ;
29
- size_t capacity ;
30
- } blink_cmp_fuzzy__Vec_int32_t;
31
-
32
21
typedef struct {
33
22
const char * * ptr ;
34
23
size_t len ;
35
24
size_t capacity ;
36
25
} blink_cmp_fuzzy__Vec___string_ptr;
37
- typedef struct {
38
- const char * * ptr ;
39
- } blink_cmp_fuzzy__Option___string_ptr;
40
26
typedef struct {
41
27
const blink_cmp_fuzzy__Vec___string_ptr * ptr ;
42
28
} blink_cmp_fuzzy__Option_Vec___string_ptr;
43
29
30
+ typedef struct {
31
+ const int32_t * ptr ;
32
+ } blink_cmp_fuzzy__Option_int32_t;
33
+
34
+
35
+
44
36
typedef struct {
45
37
const int8_t use_frecency ;
46
38
const blink_cmp_fuzzy__Option_Vec___string_ptr nearby_words ;
@@ -50,6 +42,14 @@ typedef struct {
50
42
} blink_cmp_fuzzy__FuzzyOptions;
51
43
52
44
45
+ typedef struct {
46
+ const uint32_t * ptr ;
47
+ size_t len ;
48
+ size_t capacity ;
49
+ } blink_cmp_fuzzy__Vec_uint32_t;
50
+ typedef struct {
51
+ const char * * ptr ;
52
+ } blink_cmp_fuzzy__Option___string_ptr;
53
53
54
54
typedef struct {
55
55
const char * label ;
@@ -61,10 +61,10 @@ typedef struct {
61
61
} blink_cmp_fuzzy__LspItem;
62
62
63
63
typedef struct {
64
- const uint32_t * ptr ;
64
+ const int32_t * ptr ;
65
65
size_t len ;
66
66
size_t capacity ;
67
- } blink_cmp_fuzzy__Vec_uint32_t ;
67
+ } blink_cmp_fuzzy__Vec_int32_t ;
68
68
int32_t init_db (
69
69
const char * ,
70
70
int8_t * );
@@ -106,38 +106,11 @@ end
106
106
107
107
108
108
109
- local __const_c_typename_bool = ffi .typeof (" const int8_t[?]" )
110
- local __c_function_argument_bool = ffi .typeof (" int8_t[?]" )
111
- local __c_mut_function_argument_bool = ffi .typeof (" int8_t[?]" )
112
-
113
-
114
- local __const_c_typename_size_t = ffi .typeof (" const size_t[?]" )
115
- local __c_function_argument_size_t = ffi .typeof (" size_t[?]" )
116
- local __c_mut_function_argument_size_t = ffi .typeof (" size_t[?]" )
117
-
118
-
119
- local __const_c_typename_uint16_t = ffi .typeof (" const uint16_t[?]" )
120
- local __c_function_argument_uint16_t = ffi .typeof (" uint16_t[?]" )
121
- local __c_mut_function_argument_uint16_t = ffi .typeof (" uint16_t[?]" )
122
-
123
-
124
109
local __const_c_typename_int32_t = ffi .typeof (" const int32_t[?]" )
125
110
local __c_function_argument_int32_t = ffi .typeof (" int32_t[?]" )
126
111
local __c_mut_function_argument_int32_t = ffi .typeof (" int32_t[?]" )
127
112
128
113
129
- local __typename_Option_int32_t = ffi .metatype (" blink_cmp_fuzzy__Option_int32_t" , {})
130
- local __const_c_typename_Option_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Option_int32_t[?]" )
131
- local __c_function_argument_Option_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Option_int32_t*[?]" )
132
- local __c_mut_function_argument_Option_int32_t = ffi .typeof (" blink_cmp_fuzzy__Option_int32_t*[?]" )
133
-
134
-
135
- local __typename_Vec_int32_t = ffi .metatype (" blink_cmp_fuzzy__Vec_int32_t" , {})
136
- local __const_c_typename_Vec_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_int32_t[?]" )
137
- local __c_function_argument_Vec_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_int32_t*[?]" )
138
- local __c_mut_function_argument_Vec_int32_t = ffi .typeof (" blink_cmp_fuzzy__Vec_int32_t*[?]" )
139
-
140
-
141
114
local __const_c_typename___string_ptr = ffi .typeof (" const char *[?]" )
142
115
local __c_function_argument___string_ptr = ffi .typeof (" const char *[?]" )
143
116
local __c_mut_function_argument___string_ptr = ffi .typeof (" char *[?]" )
@@ -149,18 +122,33 @@ local __c_function_argument_Vec___string_ptr = ffi.typeof("const blink_cmp_fuzzy
149
122
local __c_mut_function_argument_Vec___string_ptr = ffi .typeof (" blink_cmp_fuzzy__Vec___string_ptr*[?]" )
150
123
151
124
152
- local __typename_Option___string_ptr = ffi .metatype (" blink_cmp_fuzzy__Option___string_ptr" , {})
153
- local __const_c_typename_Option___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option___string_ptr[?]" )
154
- local __c_function_argument_Option___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option___string_ptr*[?]" )
155
- local __c_mut_function_argument_Option___string_ptr = ffi .typeof (" blink_cmp_fuzzy__Option___string_ptr*[?]" )
156
-
157
-
158
125
local __typename_Option_Vec___string_ptr = ffi .metatype (" blink_cmp_fuzzy__Option_Vec___string_ptr" , {})
159
126
local __const_c_typename_Option_Vec___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option_Vec___string_ptr[?]" )
160
127
local __c_function_argument_Option_Vec___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option_Vec___string_ptr*[?]" )
161
128
local __c_mut_function_argument_Option_Vec___string_ptr = ffi .typeof (" blink_cmp_fuzzy__Option_Vec___string_ptr*[?]" )
162
129
163
130
131
+ local __const_c_typename_size_t = ffi .typeof (" const size_t[?]" )
132
+ local __c_function_argument_size_t = ffi .typeof (" size_t[?]" )
133
+ local __c_mut_function_argument_size_t = ffi .typeof (" size_t[?]" )
134
+
135
+
136
+ local __typename_Option_int32_t = ffi .metatype (" blink_cmp_fuzzy__Option_int32_t" , {})
137
+ local __const_c_typename_Option_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Option_int32_t[?]" )
138
+ local __c_function_argument_Option_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Option_int32_t*[?]" )
139
+ local __c_mut_function_argument_Option_int32_t = ffi .typeof (" blink_cmp_fuzzy__Option_int32_t*[?]" )
140
+
141
+
142
+ local __const_c_typename_bool = ffi .typeof (" const int8_t[?]" )
143
+ local __c_function_argument_bool = ffi .typeof (" int8_t[?]" )
144
+ local __c_mut_function_argument_bool = ffi .typeof (" int8_t[?]" )
145
+
146
+
147
+ local __const_c_typename_uint16_t = ffi .typeof (" const uint16_t[?]" )
148
+ local __c_function_argument_uint16_t = ffi .typeof (" uint16_t[?]" )
149
+ local __c_mut_function_argument_uint16_t = ffi .typeof (" uint16_t[?]" )
150
+
151
+
164
152
local __typename_FuzzyOptions = ffi .metatype (" blink_cmp_fuzzy__FuzzyOptions" , {})
165
153
local __const_c_typename_FuzzyOptions = ffi .typeof (" const blink_cmp_fuzzy__FuzzyOptions[?]" )
166
154
local __c_function_argument_FuzzyOptions = ffi .typeof (" const blink_cmp_fuzzy__FuzzyOptions*[?]" )
@@ -172,16 +160,28 @@ local __c_function_argument_uint32_t = ffi.typeof("uint32_t[?]")
172
160
local __c_mut_function_argument_uint32_t = ffi .typeof (" uint32_t[?]" )
173
161
174
162
163
+ local __typename_Vec_uint32_t = ffi .metatype (" blink_cmp_fuzzy__Vec_uint32_t" , {})
164
+ local __const_c_typename_Vec_uint32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_uint32_t[?]" )
165
+ local __c_function_argument_Vec_uint32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_uint32_t*[?]" )
166
+ local __c_mut_function_argument_Vec_uint32_t = ffi .typeof (" blink_cmp_fuzzy__Vec_uint32_t*[?]" )
167
+
168
+
169
+ local __typename_Option___string_ptr = ffi .metatype (" blink_cmp_fuzzy__Option___string_ptr" , {})
170
+ local __const_c_typename_Option___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option___string_ptr[?]" )
171
+ local __c_function_argument_Option___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option___string_ptr*[?]" )
172
+ local __c_mut_function_argument_Option___string_ptr = ffi .typeof (" blink_cmp_fuzzy__Option___string_ptr*[?]" )
173
+
174
+
175
175
local __typename_LspItem = ffi .metatype (" blink_cmp_fuzzy__LspItem" , {})
176
176
local __const_c_typename_LspItem = ffi .typeof (" const blink_cmp_fuzzy__LspItem[?]" )
177
177
local __c_function_argument_LspItem = ffi .typeof (" const blink_cmp_fuzzy__LspItem*[?]" )
178
178
local __c_mut_function_argument_LspItem = ffi .typeof (" blink_cmp_fuzzy__LspItem*[?]" )
179
179
180
180
181
- local __typename_Vec_uint32_t = ffi .metatype (" blink_cmp_fuzzy__Vec_uint32_t " , {})
182
- local __const_c_typename_Vec_uint32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_uint32_t [?]" )
183
- local __c_function_argument_Vec_uint32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_uint32_t *[?]" )
184
- local __c_mut_function_argument_Vec_uint32_t = ffi .typeof (" blink_cmp_fuzzy__Vec_uint32_t *[?]" )
181
+ local __typename_Vec_int32_t = ffi .metatype (" blink_cmp_fuzzy__Vec_int32_t " , {})
182
+ local __const_c_typename_Vec_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_int32_t [?]" )
183
+ local __c_function_argument_Vec_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_int32_t *[?]" )
184
+ local __c_mut_function_argument_Vec_int32_t = ffi .typeof (" blink_cmp_fuzzy__Vec_int32_t *[?]" )
185
185
186
186
function M .init_db (
187
187
db_path )
0 commit comments