1
1
/* automatically generated by rust-bindgen 0.69.4 */
2
2
3
-
4
-
5
3
pub const _STDIO_H: u32 = 1 ;
6
4
pub const _FEATURES_H: u32 = 1 ;
7
5
pub const _DEFAULT_SOURCE: u32 = 1 ;
@@ -195,7 +193,7 @@ pub const JS_PROP_NO_ADD: u32 = 65536;
195
193
pub const JS_PROP_NO_EXOTIC : u32 = 131072 ;
196
194
pub const JS_PROP_DEFINE_PROPERTY : u32 = 262144 ;
197
195
pub const JS_PROP_REFLECT_DEFINE_PROPERTY : u32 = 524288 ;
198
- pub const JS_DEFAULT_STACK_SIZE : u32 = 262144 ;
196
+ pub const JS_DEFAULT_STACK_SIZE : u32 = 1048576 ;
199
197
pub const JS_EVAL_TYPE_GLOBAL : u32 = 0 ;
200
198
pub const JS_EVAL_TYPE_MODULE : u32 = 1 ;
201
199
pub const JS_EVAL_TYPE_DIRECT : u32 = 2 ;
@@ -235,7 +233,7 @@ pub const JS_DEF_PROP_UNDEFINED: u32 = 7;
235
233
pub const JS_DEF_OBJECT : u32 = 8 ;
236
234
pub const JS_DEF_ALIAS : u32 = 9 ;
237
235
pub const QJS_VERSION_MAJOR : u32 = 0 ;
238
- pub const QJS_VERSION_MINOR : u32 = 7 ;
236
+ pub const QJS_VERSION_MINOR : u32 = 8 ;
239
237
pub const QJS_VERSION_PATCH : u32 = 0 ;
240
238
pub const QJS_VERSION_SUFFIX : & [ u8 ; 1 ] = b"\0 " ;
241
239
pub type __gnuc_va_list = __builtin_va_list ;
@@ -4237,6 +4235,9 @@ extern "C" {
4237
4235
extern "C" {
4238
4236
pub fn JS_IsError ( ctx : * mut JSContext , val : JSValue ) -> :: std:: os:: raw:: c_int ;
4239
4237
}
4238
+ extern "C" {
4239
+ pub fn JS_IsUncatchableError ( ctx : * mut JSContext , val : JSValue ) -> :: std:: os:: raw:: c_int ;
4240
+ }
4240
4241
extern "C" {
4241
4242
pub fn JS_ResetUncatchableError ( ctx : * mut JSContext ) ;
4242
4243
}
@@ -4691,6 +4692,27 @@ extern "C" {
4691
4692
extern "C" {
4692
4693
pub fn JS_GetUint8Array ( ctx : * mut JSContext , psize : * mut usize , obj : JSValue ) -> * mut u8 ;
4693
4694
}
4695
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8C : JSTypedArrayEnum = 0 ;
4696
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT8 : JSTypedArrayEnum = 1 ;
4697
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT8 : JSTypedArrayEnum = 2 ;
4698
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT16 : JSTypedArrayEnum = 3 ;
4699
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT16 : JSTypedArrayEnum = 4 ;
4700
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_INT32 : JSTypedArrayEnum = 5 ;
4701
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_UINT32 : JSTypedArrayEnum = 6 ;
4702
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_INT64 : JSTypedArrayEnum = 7 ;
4703
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_BIG_UINT64 : JSTypedArrayEnum = 8 ;
4704
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT16 : JSTypedArrayEnum = 9 ;
4705
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT32 : JSTypedArrayEnum = 10 ;
4706
+ pub const JSTypedArrayEnum_JS_TYPED_ARRAY_FLOAT64 : JSTypedArrayEnum = 11 ;
4707
+ pub type JSTypedArrayEnum = :: std:: os:: raw:: c_uint ;
4708
+ extern "C" {
4709
+ pub fn JS_NewTypedArray (
4710
+ ctx : * mut JSContext ,
4711
+ argc : :: std:: os:: raw:: c_int ,
4712
+ argv : * mut JSValue ,
4713
+ array_type : JSTypedArrayEnum ,
4714
+ ) -> JSValue ;
4715
+ }
4694
4716
extern "C" {
4695
4717
pub fn JS_GetTypedArrayBuffer (
4696
4718
ctx : * mut JSContext ,
@@ -4711,7 +4733,7 @@ extern "C" {
4711
4733
) -> JSValue ;
4712
4734
}
4713
4735
extern "C" {
4714
- pub fn JS_IsUint8Array ( obj : JSValue ) -> :: std:: os:: raw:: c_int ;
4736
+ pub fn JS_GetTypedArrayType ( obj : JSValue ) -> :: std:: os:: raw:: c_int ;
4715
4737
}
4716
4738
extern "C" {
4717
4739
pub fn JS_NewUint8ArrayCopy ( ctx : * mut JSContext , buf : * const u8 , len : usize ) -> JSValue ;
@@ -5254,6 +5276,7 @@ pub union JSCFunctionListEntry__bindgen_ty_1 {
5254
5276
pub str_ : * const :: std:: os:: raw:: c_char ,
5255
5277
pub i32_ : i32 ,
5256
5278
pub i64_ : i64 ,
5279
+ pub u64_ : u64 ,
5257
5280
pub f64_ : f64 ,
5258
5281
}
5259
5282
#[ repr( C ) ]
@@ -5547,6 +5570,16 @@ fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1() {
5547
5570
stringify!( i64_)
5548
5571
)
5549
5572
) ;
5573
+ assert_eq ! (
5574
+ unsafe { :: std:: ptr:: addr_of!( ( * ptr) . u64_) as usize - ptr as usize } ,
5575
+ 0usize ,
5576
+ concat!(
5577
+ "Offset of field: " ,
5578
+ stringify!( JSCFunctionListEntry__bindgen_ty_1 ) ,
5579
+ "::" ,
5580
+ stringify!( u64_)
5581
+ )
5582
+ ) ;
5550
5583
assert_eq ! (
5551
5584
unsafe { :: std:: ptr:: addr_of!( ( * ptr) . f64_) as usize - ptr as usize } ,
5552
5585
0usize ,
0 commit comments