Skip to content

Commit df937e7

Browse files
committed
less
Signed-off-by: sagudev <[email protected]>
1 parent 1381178 commit df937e7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

mozjs/src/generate_wrappers.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,17 @@ grep_heur2() {
6565
grep -v 'pub fn GetDebuggerMallocSizeOf' |
6666
grep -v 'pub fn FireOnGarbageCollectionHookRequired' |
6767
grep -v 'pub fn ShouldAvoidSideEffects' |
68+
grep -F -v '...' | # vargs
69+
grep -F -v 'VA(' | # vargs
70+
grep -F -v 'Opaque' |
71+
grep -F -v 'pub fn JS_WrapPropertyDescriptor1' |
6872
$gsed 's/root:://g' |
6973
$gsed 's/JS:://g' |
7074
$gsed 's/js:://g' |
7175
$gsed 's/mozilla:://g' |
7276
$gsed 's/\*mut JSContext/\&mut JSContext/g' |
7377
$gsed 's/\*const JSContext/\&JSContext/g' |
7478
grep -F -v '> Handle' | # We are only wrapping handles in args not in results
75-
grep -F -v '...' | # vargs
7679
grep -v 'MutableHandleObjectVector' # GetDebuggeeGlobals has it
7780
}
7881

mozjs/src/jsapi2_wrappers.in.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ wrap!(jsapi: pub fn ArrayBufferClone(cx: &mut JSContext, srcBuffer: Handle<*mut
210210
wrap!(jsapi: pub fn NumberToBigInt(cx: &mut JSContext, num: f64) -> *mut BigInt);
211211
wrap!(jsapi: pub fn StringToBigInt(cx: &mut JSContext, chars: *const Range<Latin1Char>) -> *mut BigInt);
212212
wrap!(jsapi: pub fn StringToBigInt1(cx: &mut JSContext, chars: *const Range<u16>) -> *mut BigInt);
213-
wrap!(jsapi: pub fn SimpleStringToBigInt(cx: &mut JSContext, chars: __BindgenOpaqueArray<u64, 2usize>, radix: u8) -> *mut BigInt);
214213
wrap!(jsapi: pub fn ToBigInt(cx: &mut JSContext, val: Handle<Value>) -> *mut BigInt);
215214
wrap!(jsapi: pub fn BigIntToString(cx: &mut JSContext, bi: Handle<*mut BigInt>, radix: u8) -> *mut JSString);
216215
wrap!(jsapi: pub fn Evaluate(cx: &mut JSContext, options: *const ReadOnlyCompileOptions, srcBuf: *mut SourceText<u16>, rval: MutableHandle<Value>) -> bool);
@@ -384,9 +383,6 @@ wrap!(jsapi: pub fn JS_TracerEnterLabelTwoByte(cx: &mut JSContext, label: *const
384383
wrap!(jsapi: pub fn JS_TracerIsTracing(cx: &mut JSContext) -> bool);
385384
wrap!(jsapi: pub fn JS_TracerLeaveLabelLatin1(cx: &mut JSContext, label: *const ::std::os::raw::c_char));
386385
wrap!(jsapi: pub fn JS_TracerLeaveLabelTwoByte(cx: &mut JSContext, label: *const u16));
387-
wrap!(jsapi: pub fn JS_ReportErrorNumberASCIIVA(cx: &mut JSContext, errorCallback: JSErrorCallback, userRef: *mut ::std::os::raw::c_void, errorNumber: ::std::os::raw::c_uint, ap: *mut __va_list_tag));
388-
wrap!(jsapi: pub fn JS_ReportErrorNumberLatin1VA(cx: &mut JSContext, errorCallback: JSErrorCallback, userRef: *mut ::std::os::raw::c_void, errorNumber: ::std::os::raw::c_uint, ap: *mut __va_list_tag));
389-
wrap!(jsapi: pub fn JS_ReportErrorNumberUTF8VA(cx: &mut JSContext, errorCallback: JSErrorCallback, userRef: *mut ::std::os::raw::c_void, errorNumber: ::std::os::raw::c_uint, ap: *mut __va_list_tag));
390386
wrap!(jsapi: pub fn JS_ReportErrorNumberUTF8Array(cx: &mut JSContext, errorCallback: JSErrorCallback, userRef: *mut ::std::os::raw::c_void, errorNumber: ::std::os::raw::c_uint, args: *mut *const ::std::os::raw::c_char));
391387
wrap!(jsapi: pub fn JS_ReportErrorNumberUCArray(cx: &mut JSContext, errorCallback: JSErrorCallback, userRef: *mut ::std::os::raw::c_void, errorNumber: ::std::os::raw::c_uint, args: *mut *const u16));
392388
wrap!(jsapi: pub fn JS_ReportAllocationOverflow(cx: &mut JSContext));
@@ -651,7 +647,6 @@ wrap!(jsapi: pub fn JS_CloneObject(cx: &mut JSContext, obj: HandleObject, proto:
651647
wrap!(jsapi: pub fn JS_InitializePropertiesFromCompatibleNativeObject(cx: &mut JSContext, dst: HandleObject, src: HandleObject) -> bool);
652648
wrap!(jsapi: pub fn JS_CopyOwnPropertiesAndPrivateFields(cx: &mut JSContext, target: HandleObject, obj: HandleObject) -> bool);
653649
wrap!(jsapi: pub fn JS_WrapPropertyDescriptor(cx: &mut JSContext, desc: MutableHandle<PropertyDescriptor>) -> bool);
654-
wrap!(jsapi: pub fn JS_WrapPropertyDescriptor1(cx: &mut JSContext, desc: u64) -> bool);
655650
wrap!(jsapi: pub fn JS_DefineFunctionsWithHelp(cx: &mut JSContext, obj: HandleObject, fs: *const JSFunctionSpecWithHelp) -> bool);
656651
wrap!(jsapi: pub fn JS_NewOwningCompileOptions(cx: &mut JSContext) -> *mut OwningCompileOptions);
657652
wrap!(jsapi: pub fn JS_StackCapture_FirstSubsumedFrame(cx: &mut JSContext, ignoreSelfHostedFrames: bool, capture: *mut StackCapture));

0 commit comments

Comments
 (0)