@@ -233,8 +233,8 @@ pub const JS_DEF_PROP_UNDEFINED: u32 = 7;
233
233
pub const JS_DEF_OBJECT : u32 = 8 ;
234
234
pub const JS_DEF_ALIAS : u32 = 9 ;
235
235
pub const QJS_VERSION_MAJOR : u32 = 0 ;
236
- pub const QJS_VERSION_MINOR : u32 = 6 ;
237
- pub const QJS_VERSION_PATCH : u32 = 1 ;
236
+ pub const QJS_VERSION_MINOR : u32 = 7 ;
237
+ pub const QJS_VERSION_PATCH : u32 = 0 ;
238
238
pub const QJS_VERSION_SUFFIX : & [ u8 ; 1 ] = b"\0 " ;
239
239
pub type __gnuc_va_list = __builtin_va_list ;
240
240
pub type __u_char = :: std:: os:: raw:: c_uchar ;
@@ -3022,11 +3022,7 @@ extern "C" {
3022
3022
extern "C" {
3023
3023
pub static mut signgam: :: std:: os:: raw:: c_int ;
3024
3024
}
3025
- //pub const FP_NAN: _bindgen_ty_1 = 0;
3026
- //pub const FP_INFINITE: _bindgen_ty_1 = 1;
3027
- //pub const FP_ZERO: _bindgen_ty_1 = 2;
3028
- //pub const FP_SUBNORMAL: _bindgen_ty_1 = 3;
3029
- //pub const FP_NORMAL: _bindgen_ty_1 = 4;
3025
+
3030
3026
pub type _bindgen_ty_1 = :: std:: os:: raw:: c_uint ;
3031
3027
#[ repr( C ) ]
3032
3028
#[ derive( Debug , Copy , Clone ) ]
@@ -3067,36 +3063,6 @@ pub const JS_TAG_EXCEPTION: _bindgen_ty_2 = 6;
3067
3063
pub const JS_TAG_FLOAT64 : _bindgen_ty_2 = 7 ;
3068
3064
pub type _bindgen_ty_2 = :: std:: os:: raw:: c_int ;
3069
3065
#[ repr( C ) ]
3070
- #[ derive( Debug , Copy , Clone ) ]
3071
- pub struct JSRefCountHeader {
3072
- pub ref_count : :: std:: os:: raw:: c_int ,
3073
- }
3074
- #[ test]
3075
- fn bindgen_test_layout_JSRefCountHeader ( ) {
3076
- const UNINIT : :: std:: mem:: MaybeUninit < JSRefCountHeader > = :: std:: mem:: MaybeUninit :: uninit ( ) ;
3077
- let ptr = UNINIT . as_ptr ( ) ;
3078
- assert_eq ! (
3079
- :: std:: mem:: size_of:: <JSRefCountHeader >( ) ,
3080
- 4usize ,
3081
- concat!( "Size of: " , stringify!( JSRefCountHeader ) )
3082
- ) ;
3083
- assert_eq ! (
3084
- :: std:: mem:: align_of:: <JSRefCountHeader >( ) ,
3085
- 4usize ,
3086
- concat!( "Alignment of " , stringify!( JSRefCountHeader ) )
3087
- ) ;
3088
- assert_eq ! (
3089
- unsafe { :: std:: ptr:: addr_of!( ( * ptr) . ref_count) as usize - ptr as usize } ,
3090
- 0usize ,
3091
- concat!(
3092
- "Offset of field: " ,
3093
- stringify!( JSRefCountHeader ) ,
3094
- "::" ,
3095
- stringify!( ref_count)
3096
- )
3097
- ) ;
3098
- }
3099
- #[ repr( C ) ]
3100
3066
#[ derive( Copy , Clone ) ]
3101
3067
pub union JSValueUnion {
3102
3068
pub int32 : i32 ,
@@ -3310,6 +3276,9 @@ fn bindgen_test_layout_JSMallocFunctions() {
3310
3276
)
3311
3277
) ;
3312
3278
}
3279
+ pub type JSRuntimeFinalizer = :: std:: option:: Option <
3280
+ unsafe extern "C" fn ( rt : * mut JSRuntime , arg : * mut :: std:: os:: raw:: c_void ) ,
3281
+ > ;
3313
3282
#[ repr( C ) ]
3314
3283
#[ derive( Debug , Copy , Clone ) ]
3315
3284
pub struct JSGCObjectHeader {
@@ -3354,6 +3323,13 @@ extern "C" {
3354
3323
extern "C" {
3355
3324
pub fn JS_SetRuntimeOpaque ( rt : * mut JSRuntime , opaque : * mut :: std:: os:: raw:: c_void ) ;
3356
3325
}
3326
+ extern "C" {
3327
+ pub fn JS_AddRuntimeFinalizer (
3328
+ rt : * mut JSRuntime ,
3329
+ finalizer : JSRuntimeFinalizer ,
3330
+ arg : * mut :: std:: os:: raw:: c_void ,
3331
+ ) -> :: std:: os:: raw:: c_int ;
3332
+ }
3357
3333
pub type JS_MarkFunc =
3358
3334
:: std:: option:: Option < unsafe extern "C" fn ( rt : * mut JSRuntime , gp : * mut JSGCObjectHeader ) > ;
3359
3335
extern "C" {
@@ -3389,6 +3365,9 @@ extern "C" {
3389
3365
extern "C" {
3390
3366
pub fn JS_GetClassProto ( ctx : * mut JSContext , class_id : JSClassID ) -> JSValue ;
3391
3367
}
3368
+ extern "C" {
3369
+ pub fn JS_GetFunctionProto ( ctx : * mut JSContext ) -> JSValue ;
3370
+ }
3392
3371
extern "C" {
3393
3372
pub fn JS_NewContextRaw ( rt : * mut JSRuntime ) -> * mut JSContext ;
3394
3373
}
@@ -4308,10 +4287,16 @@ extern "C" {
4308
4287
pub fn JS_ThrowOutOfMemory ( ctx : * mut JSContext ) -> JSValue ;
4309
4288
}
4310
4289
extern "C" {
4311
- pub fn __JS_FreeValue ( ctx : * mut JSContext , v : JSValue ) ;
4290
+ pub fn JS_FreeValue ( ctx : * mut JSContext , v : JSValue ) ;
4291
+ }
4292
+ extern "C" {
4293
+ pub fn JS_FreeValueRT ( rt : * mut JSRuntime , v : JSValue ) ;
4294
+ }
4295
+ extern "C" {
4296
+ pub fn JS_DupValue ( ctx : * mut JSContext , v : JSValue ) -> JSValue ;
4312
4297
}
4313
4298
extern "C" {
4314
- pub fn __JS_FreeValueRT ( rt : * mut JSRuntime , v : JSValue ) ;
4299
+ pub fn JS_DupValueRT ( rt : * mut JSRuntime , v : JSValue ) -> JSValue ;
4315
4300
}
4316
4301
extern "C" {
4317
4302
pub fn JS_ToBool ( ctx : * mut JSContext , val : JSValue ) -> :: std:: os:: raw:: c_int ;
@@ -4640,7 +4625,8 @@ extern "C" {
4640
4625
) -> :: std:: os:: raw:: c_int ;
4641
4626
}
4642
4627
extern "C" {
4643
- pub fn JS_SetOpaque ( obj : JSValue , opaque : * mut :: std:: os:: raw:: c_void ) ;
4628
+ pub fn JS_SetOpaque ( obj : JSValue , opaque : * mut :: std:: os:: raw:: c_void )
4629
+ -> :: std:: os:: raw:: c_int ;
4644
4630
}
4645
4631
extern "C" {
4646
4632
pub fn JS_GetOpaque ( obj : JSValue , class_id : JSClassID ) -> * mut :: std:: os:: raw:: c_void ;
@@ -5687,6 +5673,9 @@ extern "C" {
5687
5673
extern "C" {
5688
5674
pub fn JS_GetVersion ( ) -> * const :: std:: os:: raw:: c_char ;
5689
5675
}
5676
+ extern "C" {
5677
+ pub fn js_std_cmd ( cmd : :: std:: os:: raw:: c_int , ...) -> usize ;
5678
+ }
5690
5679
pub type __builtin_va_list = [ __va_list_tag ; 1usize ] ;
5691
5680
#[ repr( C ) ]
5692
5681
#[ derive( Debug , Copy , Clone ) ]
0 commit comments