mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Use JS_FRIEND_API for new JS_ArrayToJSUint8Buffer, etc., and use it on prototypes and definitions (fixes some platform builds).
This commit is contained in:
parent
9e4119701e
commit
b9d10512b7
@ -3018,7 +3018,7 @@ js_ArrayInfo(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
JSBool
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSUint8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSUint8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSUint8 *dest)
|
JSUint8 *dest)
|
||||||
{
|
{
|
||||||
@ -3046,7 +3046,7 @@ js_ArrayToJSUint8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint coun
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSBool
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSUint16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSUint16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSUint16 *dest)
|
JSUint16 *dest)
|
||||||
{
|
{
|
||||||
@ -3074,7 +3074,7 @@ js_ArrayToJSUint16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint cou
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSBool
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSUint32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSUint32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSUint32 *dest)
|
JSUint32 *dest)
|
||||||
{
|
{
|
||||||
@ -3102,7 +3102,7 @@ js_ArrayToJSUint32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint cou
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSBool
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSInt8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSInt8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSInt8 *dest)
|
JSInt8 *dest)
|
||||||
{
|
{
|
||||||
@ -3128,7 +3128,7 @@ js_ArrayToJSInt8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSBool
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSInt16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSInt16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSInt16 *dest)
|
JSInt16 *dest)
|
||||||
{
|
{
|
||||||
@ -3154,7 +3154,7 @@ js_ArrayToJSInt16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint coun
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSBool
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSInt32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSInt32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSInt32 *dest)
|
JSInt32 *dest)
|
||||||
{
|
{
|
||||||
@ -3180,7 +3180,7 @@ js_ArrayToJSInt32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint coun
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
JSBool
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSDoubleBuffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSDoubleBuffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
jsdouble *dest)
|
jsdouble *dest)
|
||||||
{
|
{
|
||||||
|
@ -163,31 +163,31 @@ js_array_join_sub(JSContext *cx, JSObject *obj, enum ArrayToStringOp op,
|
|||||||
* integer -or- a double (JSVAL_IS_NUMBER).
|
* integer -or- a double (JSVAL_IS_NUMBER).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
JS_EXTERN_API(JSBool)
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSUint8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSUint8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSUint8 *dest);
|
JSUint8 *dest);
|
||||||
|
|
||||||
JS_EXTERN_API(JSBool)
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSUint16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSUint16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSUint16 *dest);
|
JSUint16 *dest);
|
||||||
|
|
||||||
JS_EXTERN_API(JSBool)
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSUint32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSUint32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSUint32 *dest);
|
JSUint32 *dest);
|
||||||
|
|
||||||
JS_EXTERN_API(JSBool)
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSInt8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSInt8Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSInt8 *dest);
|
JSInt8 *dest);
|
||||||
|
|
||||||
JS_EXTERN_API(JSBool)
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSInt16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSInt16Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSInt16 *dest);
|
JSInt16 *dest);
|
||||||
|
|
||||||
JS_EXTERN_API(JSBool)
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSInt32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSInt32Buffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
JSInt32 *dest);
|
JSInt32 *dest);
|
||||||
|
|
||||||
JS_EXTERN_API(JSBool)
|
JS_FRIEND_API(JSBool)
|
||||||
js_ArrayToJSDoubleBuffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
js_ArrayToJSDoubleBuffer(JSContext *cx, JSObject *obj, jsuint offset, jsuint count,
|
||||||
jsdouble *dest);
|
jsdouble *dest);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user