18
18
19
19
20
20
21
-
22
21
typedef struct {
23
22
const int32_t * ptr ;
24
23
size_t len ;
25
24
size_t capacity ;
26
25
} blink_cmp_fuzzy__Vec_int32_t;
27
26
28
- typedef struct {
29
- const uint32_t * ptr ;
30
- size_t len ;
31
- size_t capacity ;
32
- } blink_cmp_fuzzy__Vec_uint32_t;
33
- typedef struct {
34
- const int32_t * ptr ;
35
- } blink_cmp_fuzzy__Option_int32_t;
36
27
37
- typedef struct {
38
- const char * * ptr ;
39
- size_t len ;
40
- size_t capacity ;
41
- } blink_cmp_fuzzy__Vec___string_ptr;
42
- typedef struct {
43
- const blink_cmp_fuzzy__Vec___string_ptr * ptr ;
44
- } blink_cmp_fuzzy__Option_Vec___string_ptr;
28
+
45
29
typedef struct {
46
30
const char * * ptr ;
47
31
} blink_cmp_fuzzy__Option___string_ptr;
48
32
33
+ typedef struct {
34
+ const int32_t * ptr ;
35
+ } blink_cmp_fuzzy__Option_int32_t;
36
+
49
37
typedef struct {
50
38
const char * label ;
51
39
const blink_cmp_fuzzy__Option___string_ptr sort_text ;
@@ -55,10 +43,24 @@ typedef struct {
55
43
const char * source ;
56
44
} blink_cmp_fuzzy__LspItem;
57
45
46
+ typedef struct {
47
+ const uint32_t * ptr ;
48
+ size_t len ;
49
+ size_t capacity ;
50
+ } blink_cmp_fuzzy__Vec_uint32_t;
51
+ typedef struct {
52
+ const char * * ptr ;
53
+ size_t len ;
54
+ size_t capacity ;
55
+ } blink_cmp_fuzzy__Vec___string_ptr;
56
+ typedef struct {
57
+ const blink_cmp_fuzzy__Vec___string_ptr * ptr ;
58
+ } blink_cmp_fuzzy__Option_Vec___string_ptr;
58
59
59
60
typedef struct {
60
61
const int8_t use_frecency ;
61
62
const blink_cmp_fuzzy__Option_Vec___string_ptr nearby_words ;
63
+ const uint16_t min_score ;
62
64
const size_t max_items ;
63
65
const blink_cmp_fuzzy__Vec___string_ptr sorts ;
64
66
} blink_cmp_fuzzy__FuzzyOptions;
@@ -101,21 +103,16 @@ int32_t __gc_get_words(
101
103
102
104
103
105
104
- local __const_c_typename_bool = ffi .typeof (" const int8_t [?]" )
105
- local __c_function_argument_bool = ffi .typeof (" int8_t [?]" )
106
- local __c_mut_function_argument_bool = ffi .typeof (" int8_t [?]" )
106
+ local __const_c_typename_size_t = ffi .typeof (" const size_t [?]" )
107
+ local __c_function_argument_size_t = ffi .typeof (" size_t [?]" )
108
+ local __c_mut_function_argument_size_t = ffi .typeof (" size_t [?]" )
107
109
108
110
109
111
local __const_c_typename_int32_t = ffi .typeof (" const int32_t[?]" )
110
112
local __c_function_argument_int32_t = ffi .typeof (" int32_t[?]" )
111
113
local __c_mut_function_argument_int32_t = ffi .typeof (" int32_t[?]" )
112
114
113
115
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
116
local __typename_Vec_int32_t = ffi .metatype (" blink_cmp_fuzzy__Vec_int32_t" , {})
120
117
local __const_c_typename_Vec_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_int32_t[?]" )
121
118
local __c_function_argument_Vec_int32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_int32_t*[?]" )
@@ -127,10 +124,25 @@ local __c_function_argument_uint32_t = ffi.typeof("uint32_t[?]")
127
124
local __c_mut_function_argument_uint32_t = ffi .typeof (" uint32_t[?]" )
128
125
129
126
130
- local __typename_Vec_uint32_t = ffi .metatype (" blink_cmp_fuzzy__Vec_uint32_t" , {})
131
- local __const_c_typename_Vec_uint32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_uint32_t[?]" )
132
- local __c_function_argument_Vec_uint32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_uint32_t*[?]" )
133
- local __c_mut_function_argument_Vec_uint32_t = ffi .typeof (" blink_cmp_fuzzy__Vec_uint32_t*[?]" )
127
+ local __const_c_typename_uint16_t = ffi .typeof (" const uint16_t[?]" )
128
+ local __c_function_argument_uint16_t = ffi .typeof (" uint16_t[?]" )
129
+ local __c_mut_function_argument_uint16_t = ffi .typeof (" uint16_t[?]" )
130
+
131
+
132
+ local __const_c_typename___string_ptr = ffi .typeof (" const char *[?]" )
133
+ local __c_function_argument___string_ptr = ffi .typeof (" const char *[?]" )
134
+ local __c_mut_function_argument___string_ptr = ffi .typeof (" char *[?]" )
135
+
136
+
137
+ local __typename_Option___string_ptr = ffi .metatype (" blink_cmp_fuzzy__Option___string_ptr" , {})
138
+ local __const_c_typename_Option___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option___string_ptr[?]" )
139
+ local __c_function_argument_Option___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option___string_ptr*[?]" )
140
+ local __c_mut_function_argument_Option___string_ptr = ffi .typeof (" blink_cmp_fuzzy__Option___string_ptr*[?]" )
141
+
142
+
143
+ local __const_c_typename_bool = ffi .typeof (" const int8_t[?]" )
144
+ local __c_function_argument_bool = ffi .typeof (" int8_t[?]" )
145
+ local __c_mut_function_argument_bool = ffi .typeof (" int8_t[?]" )
134
146
135
147
136
148
local __typename_Option_int32_t = ffi .metatype (" blink_cmp_fuzzy__Option_int32_t" , {})
@@ -139,9 +151,16 @@ local __c_function_argument_Option_int32_t = ffi.typeof("const blink_cmp_fuzzy__
139
151
local __c_mut_function_argument_Option_int32_t = ffi .typeof (" blink_cmp_fuzzy__Option_int32_t*[?]" )
140
152
141
153
142
- local __const_c_typename___string_ptr = ffi .typeof (" const char *[?]" )
143
- local __c_function_argument___string_ptr = ffi .typeof (" const char *[?]" )
144
- local __c_mut_function_argument___string_ptr = ffi .typeof (" char *[?]" )
154
+ local __typename_LspItem = ffi .metatype (" blink_cmp_fuzzy__LspItem" , {})
155
+ local __const_c_typename_LspItem = ffi .typeof (" const blink_cmp_fuzzy__LspItem[?]" )
156
+ local __c_function_argument_LspItem = ffi .typeof (" const blink_cmp_fuzzy__LspItem*[?]" )
157
+ local __c_mut_function_argument_LspItem = ffi .typeof (" blink_cmp_fuzzy__LspItem*[?]" )
158
+
159
+
160
+ local __typename_Vec_uint32_t = ffi .metatype (" blink_cmp_fuzzy__Vec_uint32_t" , {})
161
+ local __const_c_typename_Vec_uint32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_uint32_t[?]" )
162
+ local __c_function_argument_Vec_uint32_t = ffi .typeof (" const blink_cmp_fuzzy__Vec_uint32_t*[?]" )
163
+ local __c_mut_function_argument_Vec_uint32_t = ffi .typeof (" blink_cmp_fuzzy__Vec_uint32_t*[?]" )
145
164
146
165
147
166
local __typename_Vec___string_ptr = ffi .metatype (" blink_cmp_fuzzy__Vec___string_ptr" , {})
@@ -156,18 +175,6 @@ local __c_function_argument_Option_Vec___string_ptr = ffi.typeof("const blink_cm
156
175
local __c_mut_function_argument_Option_Vec___string_ptr = ffi .typeof (" blink_cmp_fuzzy__Option_Vec___string_ptr*[?]" )
157
176
158
177
159
- local __typename_Option___string_ptr = ffi .metatype (" blink_cmp_fuzzy__Option___string_ptr" , {})
160
- local __const_c_typename_Option___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option___string_ptr[?]" )
161
- local __c_function_argument_Option___string_ptr = ffi .typeof (" const blink_cmp_fuzzy__Option___string_ptr*[?]" )
162
- local __c_mut_function_argument_Option___string_ptr = ffi .typeof (" blink_cmp_fuzzy__Option___string_ptr*[?]" )
163
-
164
-
165
- local __typename_LspItem = ffi .metatype (" blink_cmp_fuzzy__LspItem" , {})
166
- local __const_c_typename_LspItem = ffi .typeof (" const blink_cmp_fuzzy__LspItem[?]" )
167
- local __c_function_argument_LspItem = ffi .typeof (" const blink_cmp_fuzzy__LspItem*[?]" )
168
- local __c_mut_function_argument_LspItem = ffi .typeof (" blink_cmp_fuzzy__LspItem*[?]" )
169
-
170
-
171
178
local __typename_FuzzyOptions = ffi .metatype (" blink_cmp_fuzzy__FuzzyOptions" , {})
172
179
local __const_c_typename_FuzzyOptions = ffi .typeof (" const blink_cmp_fuzzy__FuzzyOptions[?]" )
173
180
local __c_function_argument_FuzzyOptions = ffi .typeof (" const blink_cmp_fuzzy__FuzzyOptions*[?]" )
348
355
end
349
356
end
350
357
)(value .nearby_words ),
358
+ (function (value ) return value end )(value .min_score ),
351
359
(function (value ) return value end )(value .max_items ),
352
360
(
353
361
function (value )
0 commit comments