Skip to content

Commit 27903be

Browse files
committed
fix: update ffi.lua
1 parent 1f0c0f3 commit 27903be

File tree

1 file changed

+53
-53
lines changed

1 file changed

+53
-53
lines changed

lua/blink/cmp/fuzzy/ffi.lua

+53-53
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,21 @@ end
1818

1919

2020

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-
3221
typedef struct {
3322
const char * *ptr;
3423
size_t len;
3524
size_t capacity;
3625
} blink_cmp_fuzzy__Vec___string_ptr;
37-
typedef struct {
38-
const char * *ptr;
39-
} blink_cmp_fuzzy__Option___string_ptr;
4026
typedef struct {
4127
const blink_cmp_fuzzy__Vec___string_ptr *ptr;
4228
} blink_cmp_fuzzy__Option_Vec___string_ptr;
4329

30+
typedef struct {
31+
const int32_t *ptr;
32+
} blink_cmp_fuzzy__Option_int32_t;
33+
34+
35+
4436
typedef struct {
4537
const int8_t use_frecency;
4638
const blink_cmp_fuzzy__Option_Vec___string_ptr nearby_words;
@@ -50,6 +42,14 @@ typedef struct {
5042
} blink_cmp_fuzzy__FuzzyOptions;
5143

5244

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;
5353

5454
typedef struct {
5555
const char * label;
@@ -61,10 +61,10 @@ typedef struct {
6161
} blink_cmp_fuzzy__LspItem;
6262

6363
typedef struct {
64-
const uint32_t *ptr;
64+
const int32_t *ptr;
6565
size_t len;
6666
size_t capacity;
67-
} blink_cmp_fuzzy__Vec_uint32_t;
67+
} blink_cmp_fuzzy__Vec_int32_t;
6868
int32_t init_db(
6969
const char *,
7070
int8_t*);
@@ -106,38 +106,11 @@ end
106106

107107

108108

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-
124109
local __const_c_typename_int32_t = ffi.typeof("const int32_t[?]")
125110
local __c_function_argument_int32_t = ffi.typeof("int32_t[?]")
126111
local __c_mut_function_argument_int32_t = ffi.typeof("int32_t[?]")
127112

128113

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-
141114
local __const_c_typename___string_ptr = ffi.typeof("const char *[?]")
142115
local __c_function_argument___string_ptr = ffi.typeof("const char *[?]")
143116
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
149122
local __c_mut_function_argument_Vec___string_ptr = ffi.typeof("blink_cmp_fuzzy__Vec___string_ptr*[?]")
150123

151124

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-
158125
local __typename_Option_Vec___string_ptr = ffi.metatype("blink_cmp_fuzzy__Option_Vec___string_ptr", {})
159126
local __const_c_typename_Option_Vec___string_ptr = ffi.typeof("const blink_cmp_fuzzy__Option_Vec___string_ptr[?]")
160127
local __c_function_argument_Option_Vec___string_ptr = ffi.typeof("const blink_cmp_fuzzy__Option_Vec___string_ptr*[?]")
161128
local __c_mut_function_argument_Option_Vec___string_ptr = ffi.typeof("blink_cmp_fuzzy__Option_Vec___string_ptr*[?]")
162129

163130

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+
164152
local __typename_FuzzyOptions = ffi.metatype("blink_cmp_fuzzy__FuzzyOptions", {})
165153
local __const_c_typename_FuzzyOptions = ffi.typeof("const blink_cmp_fuzzy__FuzzyOptions[?]")
166154
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[?]")
172160
local __c_mut_function_argument_uint32_t = ffi.typeof("uint32_t[?]")
173161

174162

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+
175175
local __typename_LspItem = ffi.metatype("blink_cmp_fuzzy__LspItem", {})
176176
local __const_c_typename_LspItem = ffi.typeof("const blink_cmp_fuzzy__LspItem[?]")
177177
local __c_function_argument_LspItem = ffi.typeof("const blink_cmp_fuzzy__LspItem*[?]")
178178
local __c_mut_function_argument_LspItem = ffi.typeof("blink_cmp_fuzzy__LspItem*[?]")
179179

180180

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*[?]")
185185

186186
function M.init_db(
187187
db_path)

0 commit comments

Comments
 (0)