Skip to content

Commit 4866fe9

Browse files
committed
misc: remove no longer used JSValueConst type
1 parent 45540c7 commit 4866fe9

25 files changed

+317
-317
lines changed

src/_sqlite3.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static JSValue tjs_new_sqlite3(JSContext *ctx, sqlite3 *handle) {
6767
return obj;
6868
}
6969

70-
static TJSSqlite3Handle *tjs_sqlite3_get(JSContext *ctx, JSValueConst obj) {
70+
static TJSSqlite3Handle *tjs_sqlite3_get(JSContext *ctx, JSValue obj) {
7171
return JS_GetOpaque2(ctx, obj, tjs_sqlite3_class_id);
7272
}
7373

@@ -113,7 +113,7 @@ static JSValue tjs_new_sqlite3_stmt(JSContext *ctx, sqlite3_stmt *stmt) {
113113
return obj;
114114
}
115115

116-
static TJSSqlite3Stmt *tjs_sqlite3_stmt_get(JSContext *ctx, JSValueConst obj) {
116+
static TJSSqlite3Stmt *tjs_sqlite3_stmt_get(JSContext *ctx, JSValue obj) {
117117
return JS_GetOpaque2(ctx, obj, tjs_sqlite3_stmt_class_id);
118118
}
119119

@@ -131,7 +131,7 @@ JSValue tjs_throw_sqlite3_errno(JSContext *ctx, int err) {
131131
return JS_Throw(ctx, obj);
132132
}
133133

134-
static JSValue tjs_sqlite3_open(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
134+
static JSValue tjs_sqlite3_open(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
135135
const char *db_name = JS_ToCString(ctx, argv[0]);
136136

137137
if (!db_name) {
@@ -161,7 +161,7 @@ static JSValue tjs_sqlite3_open(JSContext *ctx, JSValueConst this_val, int argc,
161161
return obj;
162162
}
163163

164-
static JSValue tjs_sqlite3_close(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
164+
static JSValue tjs_sqlite3_close(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
165165
TJSSqlite3Handle *h = tjs_sqlite3_get(ctx, argv[0]);
166166

167167
if (!h)
@@ -177,7 +177,7 @@ static JSValue tjs_sqlite3_close(JSContext *ctx, JSValueConst this_val, int argc
177177
return JS_UNDEFINED;
178178
}
179179

180-
static JSValue tjs_sqlite3_prepare(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
180+
static JSValue tjs_sqlite3_prepare(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
181181
TJSSqlite3Handle *h = tjs_sqlite3_get(ctx, argv[0]);
182182

183183
if (!h)
@@ -206,7 +206,7 @@ static JSValue tjs_sqlite3_prepare(JSContext *ctx, JSValueConst this_val, int ar
206206
return obj;
207207
}
208208

209-
static JSValue tjs_sqlite3_stmt_finalize(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
209+
static JSValue tjs_sqlite3_stmt_finalize(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
210210
TJSSqlite3Stmt *h = tjs_sqlite3_stmt_get(ctx, argv[0]);
211211

212212
if (!h)
@@ -227,7 +227,7 @@ static JSValue tjs_sqlite3_stmt_finalize(JSContext *ctx, JSValueConst this_val,
227227
return JS_UNDEFINED;
228228
}
229229

230-
static JSValue tjs_sqlite3_stmt_expand(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
230+
static JSValue tjs_sqlite3_stmt_expand(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
231231
TJSSqlite3Stmt *h = tjs_sqlite3_stmt_get(ctx, argv[0]);
232232

233233
if (!h)
@@ -283,7 +283,7 @@ static JSValue tjs__stmt2obj(JSContext *ctx, TJSSqlite3Stmt *h) {
283283
return obj;
284284
}
285285

286-
static JSValue tjs__sqlite3_bind_param(JSContext *ctx, sqlite3_stmt *stmt, int idx, JSValueConst v) {
286+
static JSValue tjs__sqlite3_bind_param(JSContext *ctx, sqlite3_stmt *stmt, int idx, JSValue v) {
287287
int r;
288288

289289
#define CHECK_VALUE(ret, i) \
@@ -365,7 +365,7 @@ static JSValue tjs__sqlite3_bind_param(JSContext *ctx, sqlite3_stmt *stmt, int i
365365
#undef CHECK_RET
366366
}
367367

368-
static JSValue tjs__sqlite3_bind_params(JSContext *ctx, sqlite3_stmt *stmt, JSValueConst params) {
368+
static JSValue tjs__sqlite3_bind_params(JSContext *ctx, sqlite3_stmt *stmt, JSValue params) {
369369
sqlite3_clear_bindings(stmt);
370370

371371
if (JS_IsArray(ctx, params)) {
@@ -418,7 +418,7 @@ static JSValue tjs__sqlite3_bind_params(JSContext *ctx, sqlite3_stmt *stmt, JSVa
418418
return JS_UNDEFINED;
419419
}
420420

421-
static JSValue tjs_sqlite3_stmt_all(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
421+
static JSValue tjs_sqlite3_stmt_all(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
422422
TJSSqlite3Stmt *h = tjs_sqlite3_stmt_get(ctx, argv[0]);
423423

424424
if (!h)
@@ -455,7 +455,7 @@ static JSValue tjs_sqlite3_stmt_all(JSContext *ctx, JSValueConst this_val, int a
455455
return result;
456456
}
457457

458-
static JSValue tjs_sqlite3_stmt_run(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
458+
static JSValue tjs_sqlite3_stmt_run(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
459459
TJSSqlite3Stmt *h = tjs_sqlite3_stmt_get(ctx, argv[0]);
460460

461461
if (!h)

src/dns.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ static void uv__getaddrinfo_cb(uv_getaddrinfo_t *req, int status, struct addrinf
9595
else
9696
arg = tjs_addrinfo2obj(ctx, res);
9797

98-
TJS_SettlePromise(ctx, &gr->result, is_reject, 1, (JSValueConst *) &arg);
98+
TJS_SettlePromise(ctx, &gr->result, is_reject, 1, &arg);
9999

100100
uv_freeaddrinfo(res);
101101
js_free(ctx, gr);
102102
}
103103

104-
static JSValue tjs_dns_getaddrinfo(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
104+
static JSValue tjs_dns_getaddrinfo(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
105105
const char *service = NULL;
106106
const char *node = NULL;
107107

src/error.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ JSValue tjs_new_error(JSContext *ctx, int err) {
4343
return obj;
4444
}
4545

46-
static JSValue tjs_error_constructor(JSContext *ctx, JSValueConst new_target, int argc, JSValueConst *argv) {
46+
static JSValue tjs_error_constructor(JSContext *ctx, JSValue new_target, int argc, JSValue *argv) {
4747
int err;
4848
if (JS_ToInt32(ctx, &err, argv[0]))
4949
return JS_EXCEPTION;
5050
return tjs_new_error(ctx, err);
5151
}
5252

53-
static JSValue tjs_error_strerror(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
53+
static JSValue tjs_error_strerror(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
5454
int err;
5555
if (JS_ToInt32(ctx, &err, argv[0]))
5656
return JS_EXCEPTION;

src/ffi.c

+27-27
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ size_t ffi_type_get_sz(ffi_type *type) {
128128
}
129129

130130
static JSClassID js_ffi_type_classid;
131-
static JSValue js_ffi_type_create_struct(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
132-
JSValueConst *types = argv;
131+
static JSValue js_ffi_type_create_struct(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
132+
JSValue *types = argv;
133133
size_t typeCnt = argc;
134134
int arrSz = 0;
135135
if (JS_IsNumber(argv[0])) {
@@ -254,7 +254,7 @@ static void js_ffi_type_finalizer(JSRuntime *rt, JSValue val) {
254254
js_free_rt(rt, u);
255255
}
256256
}
257-
static void js_ffi_type_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func) {
257+
static void js_ffi_type_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func) {
258258
js_ffi_type *u = JS_GetOpaque(val, js_ffi_type_classid);
259259
if (u) {
260260
for (unsigned i = 0; i < u->elemCount; i++) {
@@ -264,7 +264,7 @@ static void js_ffi_type_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_
264264
}
265265
JSClassDef js_ffi_type_class = { "FfiType", .finalizer = js_ffi_type_finalizer, .gc_mark = js_ffi_type_mark };
266266

267-
static JSValue js_ffi_type_get_sz(JSContext *ctx, JSValueConst this_val) {
267+
static JSValue js_ffi_type_get_sz(JSContext *ctx, JSValue this_val) {
268268
js_ffi_type *type = JS_GetOpaque(this_val, js_ffi_type_classid);
269269
if (type == NULL) {
270270
JS_ThrowTypeError(ctx, "expected this to be FfiType");
@@ -273,7 +273,7 @@ static JSValue js_ffi_type_get_sz(JSContext *ctx, JSValueConst this_val) {
273273
return JS_NEW_SIZE_T(ctx, ffi_type_get_sz(type->ffi_type));
274274
}
275275

276-
int ffi_type_to_buffer(JSContext *ctx, JSValueConst val, ffi_type *type, uint8_t *buf) {
276+
int ffi_type_to_buffer(JSContext *ctx, JSValue val, ffi_type *type, uint8_t *buf) {
277277
if (type->type == FFI_TYPE_STRUCT) {
278278
if (!JS_IsArray(ctx, val)) {
279279
JS_ThrowTypeError(ctx, "expected argument 1 to be array");
@@ -392,7 +392,7 @@ int ffi_type_to_buffer(JSContext *ctx, JSValueConst val, ffi_type *type, uint8_t
392392
}
393393
}
394394

395-
static JSValue js_ffi_type_to_buffer(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
395+
static JSValue js_ffi_type_to_buffer(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
396396
js_ffi_type *type = JS_GetOpaque(this_val, js_ffi_type_classid);
397397
if (type == NULL) {
398398
JS_ThrowTypeError(ctx, "expected this to be FfiType");
@@ -486,7 +486,7 @@ static int ffi_type_from_buffer(JSContext *ctx, ffi_type *type, uint8_t *buf, JS
486486
}
487487
}
488488

489-
static JSValue js_ffi_type_from_buffer(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
489+
static JSValue js_ffi_type_from_buffer(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
490490
js_ffi_type *type = JS_GetOpaque(this_val, js_ffi_type_classid);
491491
if (type == NULL) {
492492
JS_ThrowTypeError(ctx, "expected this to be FfiType");
@@ -513,7 +513,7 @@ static JSValue js_ffi_type_from_buffer(JSContext *ctx, JSValueConst this_val, in
513513
return val;
514514
}
515515

516-
static JSValue js_ffi_type_name(JSContext *ctx, JSValueConst this_val) {
516+
static JSValue js_ffi_type_name(JSContext *ctx, JSValue this_val) {
517517
js_ffi_type *type = JS_GetOpaque(this_val, js_ffi_type_classid);
518518
if (type == NULL) {
519519
JS_ThrowTypeError(ctx, "expected this to be FfiType");
@@ -539,12 +539,12 @@ JSClassDef js_uv_dlsym_class = {
539539
"UvDlSym",
540540
};
541541

542-
static JSValue js_uv_dlsym_create(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
542+
static JSValue js_uv_dlsym_create(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
543543
JS_ThrowReferenceError(ctx, "no constructor for UvDlSym available");
544544
return JS_EXCEPTION;
545545
}
546546

547-
static JSValue js_uv_dlsym_get_addr(JSContext *ctx, JSValueConst this_val) {
547+
static JSValue js_uv_dlsym_get_addr(JSContext *ctx, JSValue this_val) {
548548
void *ptr = JS_GetOpaque(this_val, js_uv_dlsym_classid);
549549
if (ptr == NULL) {
550550
JS_ThrowTypeError(ctx, "expected this to be UvDlSym");
@@ -569,7 +569,7 @@ typedef struct {
569569
JSValue *deps;
570570
} js_ffi_cif;
571571

572-
static JSValue js_ffi_cif_create(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
572+
static JSValue js_ffi_cif_create(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
573573
ssize_t nfixedargs = -1;
574574
size_t ntotalargs = argc - 1;
575575
if (JS_IsNumber(argv[argc - 1])) {
@@ -638,7 +638,7 @@ static JSValue js_ffi_cif_create(JSContext *ctx, JSValueConst this_val, int argc
638638
return obj;
639639
}
640640

641-
static void js_ffi_cif_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func) {
641+
static void js_ffi_cif_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func) {
642642
js_ffi_cif *u = JS_GetOpaque(val, js_ffi_cif_classid);
643643
if (u) {
644644
for (unsigned i = 0; i < u->depsCount; i++) {
@@ -663,7 +663,7 @@ static void js_ffi_cif_finalizer(JSRuntime *rt, JSValue val) {
663663

664664
JSClassDef js_ffi_cif_class = { "FfiCif", .finalizer = js_ffi_cif_finalizer, .gc_mark = js_ffi_cif_mark };
665665

666-
static JSValue js_ffi_cif_call(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
666+
static JSValue js_ffi_cif_call(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
667667
js_ffi_cif *cif = JS_GetOpaque(this_val, js_ffi_cif_classid);
668668
if (!cif) {
669669
JS_ThrowTypeError(ctx, "this must be FfiCif");
@@ -676,7 +676,7 @@ static JSValue js_ffi_cif_call(JSContext *ctx, JSValueConst this_val, int argc,
676676
}
677677

678678
unsigned ffi_arg_cnt = argc - 1;
679-
JSValueConst *func_argv = &argv[1];
679+
JSValue *func_argv = &argv[1];
680680
if (ffi_arg_cnt != cif->ffi_cif.nargs) {
681681
JS_ThrowRangeError(ctx, "expected %d arguments but got %d", cif->ffi_cif.nargs, ffi_arg_cnt);
682682
return JS_EXCEPTION;
@@ -721,7 +721,7 @@ static JSCFunctionListEntry js_ffi_cif_proto_funcs[] = {
721721
// =====================================
722722

723723
static JSClassID js_uv_lib_classid;
724-
static JSValue js_uv_lib_create(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
724+
static JSValue js_uv_lib_create(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
725725
TJS_CHECK_ARG_RET(ctx, JS_IsString(argv[0]), 0, "string");
726726
JSValue obj = JS_NewObjectClass(ctx, js_uv_lib_classid);
727727
if (JS_IsException(obj)) {
@@ -749,7 +749,7 @@ static void js_uv_lib_finalizer(JSRuntime *rt, JSValue val) {
749749
}
750750
}
751751

752-
static JSValue js_uv_lib_dlsym(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
752+
static JSValue js_uv_lib_dlsym(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
753753
TJS_CHECK_ARG_RET(ctx, JS_IsString(argv[0]), 0, "string");
754754

755755
uv_lib_t *lib = JS_GetOpaque(this_val, js_uv_lib_classid);
@@ -789,15 +789,15 @@ static JSCFunctionListEntry js_uv_lib_proto_funcs[] = {
789789
#pragma region "Libc helpers"
790790
// ===========================
791791

792-
static JSValue js_libc_errno(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
792+
static JSValue js_libc_errno(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
793793
if (argc != 0) {
794794
JS_ThrowTypeError(ctx, "expected 0 arguments");
795795
return JS_EXCEPTION;
796796
}
797797
return JS_NEW_INT(ctx, errno);
798798
}
799799

800-
static JSValue js_libc_strerror(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
800+
static JSValue js_libc_strerror(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
801801
TJS_CHECK_ARG_RET(ctx, JS_IsNumber(argv[0]), 0, "number");
802802
int err;
803803
JS_TO_INT(ctx, &err, argv[0]);
@@ -808,7 +808,7 @@ static JSValue js_libc_strerror(JSContext *ctx, JSValueConst this_val, int argc,
808808
#pragma region "other helpers"
809809
// ============================
810810

811-
static JSValue js_array_buffer_get_ptr(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
811+
static JSValue js_array_buffer_get_ptr(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
812812
if (argc <= 0) {
813813
JS_ThrowTypeError(ctx, "expected argument 1 to be ArrayBuffer");
814814
return JS_EXCEPTION;
@@ -820,7 +820,7 @@ static JSValue js_array_buffer_get_ptr(JSContext *ctx, JSValueConst this_val, in
820820
return JS_NEW_UINTPTR_T(ctx, (uint64_t) buf);
821821
}
822822

823-
static JSValue js_get_cstring(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
823+
static JSValue js_get_cstring(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
824824
if (argc == 0 || argc >= 2) {
825825
TJS_CHECK_ARG_RET(ctx, JS_IS_PTR(ctx, argv[0]), 0, "pointer");
826826
TJS_CHECK_ARG_RET(ctx, JS_IsNumber(argv[1]), 1, "number");
@@ -848,7 +848,7 @@ static JSValue TJS_NewUint8ArrayShared(JSContext *ctx, uint8_t *data, size_t siz
848848
return JS_NewUint8Array(ctx, data, size, NULL, NULL, true);
849849
}
850850

851-
static JSValue js_ptr_to_buffer(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
851+
static JSValue js_ptr_to_buffer(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
852852
TJS_CHECK_ARG_RET(ctx, JS_IS_PTR(ctx, argv[0]), 0, "pointer");
853853
TJS_CHECK_ARG_RET(ctx, JS_IsNumber(argv[1]), 1, "number");
854854
uint8_t *ptr;
@@ -858,7 +858,7 @@ static JSValue js_ptr_to_buffer(JSContext *ctx, JSValueConst this_val, int argc,
858858
return TJS_NewUint8ArrayShared(ctx, ptr, sz);
859859
}
860860

861-
static JSValue js_deref_ptr(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
861+
static JSValue js_deref_ptr(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
862862
unsigned times = 1;
863863
if (argc <= 0 || !JS_IS_PTR(ctx, argv[0])) {
864864
JS_ThrowTypeError(ctx, "expected argument 1 to be pointer");
@@ -913,7 +913,7 @@ typedef struct {
913913
void js_ffi_closure_invoke(ffi_cif *cif, void *ret, void **args, void *userptr) {
914914
js_ffi_closure *jscl = (js_ffi_closure *) userptr;
915915
JSContext *ctx = jscl->ctx;
916-
JSValueConst *jsargs = js_malloc(ctx, sizeof(JSValue) * cif->nargs);
916+
JSValue *jsargs = js_malloc(ctx, sizeof(JSValue) * cif->nargs);
917917

918918
for (unsigned i = 0; i < cif->nargs; i++) {
919919
jsargs[i] = TJS_NewUint8ArrayShared(ctx, args[i], ffi_type_get_sz(cif->arg_types[i]));
@@ -939,7 +939,7 @@ void js_ffi_closure_invoke(ffi_cif *cif, void *ret, void **args, void *userptr)
939939
JS_FreeValue(ctx, jsret);
940940
}
941941

942-
static JSValue js_ffi_closure_create(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
942+
static JSValue js_ffi_closure_create(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
943943
TJS_CHECK_ARG_RET(ctx, JS_IsObject(argv[0]), 0, "object");
944944
TJS_CHECK_ARG_RET(ctx, JS_IsFunction(ctx, argv[1]), 1, "function");
945945

@@ -972,7 +972,7 @@ static JSValue js_ffi_closure_create(JSContext *ctx, JSValueConst this_val, int
972972
return obj;
973973
}
974974

975-
static void js_ffi_closure_mark(JSRuntime *rt, JSValueConst val, JS_MarkFunc *mark_func) {
975+
static void js_ffi_closure_mark(JSRuntime *rt, JSValue val, JS_MarkFunc *mark_func) {
976976
js_ffi_closure *u = JS_GetOpaque(val, js_ffi_closure_classid);
977977
if (u) {
978978
JS_MarkValue(rt, u->cif, mark_func);
@@ -993,7 +993,7 @@ JSClassDef js_ffi_closure_class = { "FfiClosure",
993993
.finalizer = js_ffi_closure_finalizer,
994994
.gc_mark = js_ffi_closure_mark };
995995

996-
static JSValue js_ffi_closure_get_addr(JSContext *ctx, JSValueConst this_val) {
996+
static JSValue js_ffi_closure_get_addr(JSContext *ctx, JSValue this_val) {
997997
js_ffi_closure *ptr = JS_GetOpaque(this_val, js_ffi_closure_classid);
998998
if (ptr == NULL) {
999999
JS_ThrowTypeError(ctx, "expected this to be FfiClosure");
@@ -1045,7 +1045,7 @@ static JSCFunctionListEntry funcs[] = {
10451045
JS_SetPropertyStr(ctx, obj, #name, name##_jsval)
10461046
#define ADD_ALIAS_TYPE(ctx, obj, alias, oldname) JS_SetPropertyStr(ctx, obj, #alias, JS_DupValue(ctx, oldname##_jsval))
10471047

1048-
static JSValue tjs__mod_ffi_init_js(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) {
1048+
static JSValue tjs__mod_ffi_init_js(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
10491049
JSValue ffiobj = JS_NewObject(ctx);
10501050
JS_SetPropertyFunctionList(ctx, ffiobj, funcs, countof(funcs));
10511051

0 commit comments

Comments
 (0)