mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[spidermonkey] More finalizers
This commit is contained in:
parent
a456f3824d
commit
85aeb67af0
@ -199,7 +199,8 @@ static bool location_set_property_protocol(JSContext *ctx, unsigned int argc, JS
|
|||||||
static bool location_get_property_search(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool location_get_property_search(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool location_set_property_search(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool location_set_property_search(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
|
|
||||||
static void location_finalize(JSFreeOp *op, JSObject *obj)
|
static void
|
||||||
|
location_finalize(JSFreeOp *op, JSObject *obj)
|
||||||
{
|
{
|
||||||
#ifdef ECMASCRIPT_DEBUG
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
@ -51,6 +51,14 @@ static bool navigator_get_property_language(JSContext *ctx, unsigned int argc, J
|
|||||||
static bool navigator_get_property_platform(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool navigator_get_property_platform(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool navigator_get_property_userAgent(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool navigator_get_property_userAgent(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
|
|
||||||
|
static void
|
||||||
|
navigator_finalize(JSFreeOp *op, JSObject *obj)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
JSClassOps navigator_ops = {
|
JSClassOps navigator_ops = {
|
||||||
nullptr, // addProperty
|
nullptr, // addProperty
|
||||||
nullptr, // deleteProperty
|
nullptr, // deleteProperty
|
||||||
@ -58,7 +66,7 @@ JSClassOps navigator_ops = {
|
|||||||
nullptr, // newEnumerate
|
nullptr, // newEnumerate
|
||||||
nullptr, // resolve
|
nullptr, // resolve
|
||||||
nullptr, // mayResolve
|
nullptr, // mayResolve
|
||||||
nullptr, // finalize
|
navigator_finalize, // finalize
|
||||||
nullptr, // call
|
nullptr, // call
|
||||||
nullptr, // hasInstance
|
nullptr, // hasInstance
|
||||||
nullptr, // construct
|
nullptr, // construct
|
||||||
|
@ -45,6 +45,15 @@
|
|||||||
#include "viewer/text/link.h"
|
#include "viewer/text/link.h"
|
||||||
#include "viewer/text/vs.h"
|
#include "viewer/text/vs.h"
|
||||||
|
|
||||||
|
static void
|
||||||
|
screen_finalize(JSFreeOp *op, JSObject *obj)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
JSClassOps screen_ops = {
|
JSClassOps screen_ops = {
|
||||||
nullptr, // addProperty
|
nullptr, // addProperty
|
||||||
nullptr, // deleteProperty
|
nullptr, // deleteProperty
|
||||||
@ -52,7 +61,7 @@ JSClassOps screen_ops = {
|
|||||||
nullptr, // newEnumerate
|
nullptr, // newEnumerate
|
||||||
nullptr, // resolve
|
nullptr, // resolve
|
||||||
nullptr, // mayResolve
|
nullptr, // mayResolve
|
||||||
nullptr, // finalize
|
screen_finalize, // finalize
|
||||||
nullptr, // call
|
nullptr, // call
|
||||||
nullptr, // hasInstance
|
nullptr, // hasInstance
|
||||||
nullptr, // construct
|
nullptr, // construct
|
||||||
|
@ -48,6 +48,14 @@
|
|||||||
static bool unibar_get_property_visible(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool unibar_get_property_visible(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool unibar_set_property_visible(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool unibar_set_property_visible(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
|
|
||||||
|
static void
|
||||||
|
menubar_finalize(JSFreeOp *op, JSObject *obj)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
JSClassOps menubar_ops = {
|
JSClassOps menubar_ops = {
|
||||||
nullptr, // addProperty
|
nullptr, // addProperty
|
||||||
nullptr, // deleteProperty
|
nullptr, // deleteProperty
|
||||||
@ -55,7 +63,7 @@ JSClassOps menubar_ops = {
|
|||||||
nullptr, // newEnumerate
|
nullptr, // newEnumerate
|
||||||
nullptr, // resolve
|
nullptr, // resolve
|
||||||
nullptr, // mayResolve
|
nullptr, // mayResolve
|
||||||
nullptr, // finalize
|
menubar_finalize, // finalize
|
||||||
nullptr, // call
|
nullptr, // call
|
||||||
nullptr, // hasInstance
|
nullptr, // hasInstance
|
||||||
nullptr, // construct
|
nullptr, // construct
|
||||||
@ -69,6 +77,14 @@ JSClass menubar_class = {
|
|||||||
&menubar_ops
|
&menubar_ops
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void
|
||||||
|
statusbar_finalize(JSFreeOp *op, JSObject *obj)
|
||||||
|
{
|
||||||
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
JSClassOps statusbar_ops = {
|
JSClassOps statusbar_ops = {
|
||||||
nullptr, // addProperty
|
nullptr, // addProperty
|
||||||
nullptr, // deleteProperty
|
nullptr, // deleteProperty
|
||||||
@ -76,7 +92,7 @@ JSClassOps statusbar_ops = {
|
|||||||
nullptr, // newEnumerate
|
nullptr, // newEnumerate
|
||||||
nullptr, // resolve
|
nullptr, // resolve
|
||||||
nullptr, // mayResolve
|
nullptr, // mayResolve
|
||||||
nullptr, // finalize
|
statusbar_finalize, // finalize
|
||||||
nullptr, // call
|
nullptr, // call
|
||||||
nullptr, // hasInstance
|
nullptr, // hasInstance
|
||||||
nullptr, // construct
|
nullptr, // construct
|
||||||
|
@ -53,7 +53,8 @@ static bool window_get_property_status(JSContext *ctx, unsigned int argc, JS::Va
|
|||||||
static bool window_set_property_status(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool window_set_property_status(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
static bool window_get_property_top(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
static bool window_get_property_top(JSContext *ctx, unsigned int argc, JS::Value *vp);
|
||||||
|
|
||||||
static void window_finalize(JSFreeOp *op, JSObject *obj)
|
static void
|
||||||
|
window_finalize(JSFreeOp *op, JSObject *obj)
|
||||||
{
|
{
|
||||||
#ifdef ECMASCRIPT_DEBUG
|
#ifdef ECMASCRIPT_DEBUG
|
||||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user