mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Bug 846: Comments on the relations between JSClasses and functions.
This commit is contained in:
parent
d6ea143f36
commit
670ad939c3
@ -68,6 +68,7 @@ const JSPropertySpec document_props[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @document_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
document_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
document_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -154,6 +155,7 @@ document_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @document_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
document_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
document_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -239,6 +241,7 @@ document_write_do(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv,
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @document_funcs{"write"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
document_write(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
document_write(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -246,6 +249,7 @@ document_write(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rv
|
|||||||
return document_write_do(ctx, obj, argc, argv, rval, 0);
|
return document_write_do(ctx, obj, argc, argv, rval, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @document_funcs{"writeln"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
document_writeln(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
document_writeln(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
@ -120,6 +120,7 @@ static const JSFunctionSpec input_funcs[] = {
|
|||||||
static JSString *unicode_to_jsstring(JSContext *ctx, unicode_val_T u);
|
static JSString *unicode_to_jsstring(JSContext *ctx, unicode_val_T u);
|
||||||
static unicode_val_T jsval_to_accesskey(JSContext *ctx, jsval *vp);
|
static unicode_val_T jsval_to_accesskey(JSContext *ctx, jsval *vp);
|
||||||
|
|
||||||
|
/* @input_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
input_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
input_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -241,6 +242,7 @@ input_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @input_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
input_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
input_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -331,6 +333,7 @@ input_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @input_funcs{"blur"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
input_blur(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
input_blur(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -339,6 +342,7 @@ input_blur(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @input_funcs{"click"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
input_click(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
input_click(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -373,6 +377,7 @@ input_click(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @input_funcs{"focus"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
input_focus(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
input_focus(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -402,6 +407,7 @@ input_focus(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @input_funcs{"select"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
input_select(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
input_select(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -486,6 +492,7 @@ static const JSPropertySpec form_elements_props[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @form_elements_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
form_elements_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
form_elements_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -521,6 +528,7 @@ form_elements_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @form_elements_funcs{"item"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
form_elements_item(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
form_elements_item(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -558,6 +566,7 @@ form_elements_item(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @form_elements_funcs{"namedItem"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
form_elements_namedItem(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
form_elements_namedItem(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -638,6 +647,7 @@ static const JSFunctionSpec form_funcs[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @form_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
form_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
form_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -745,6 +755,7 @@ form_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @form_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
form_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
form_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -808,6 +819,7 @@ form_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @form_funcs{"reset"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
form_reset(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
form_reset(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -828,6 +840,7 @@ form_reset(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @form_funcs{"submit"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
form_submit(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
form_submit(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -894,6 +907,7 @@ const JSPropertySpec forms_props[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @forms_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
forms_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
forms_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -924,6 +938,7 @@ forms_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @forms_funcs{"item"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
forms_item(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
forms_item(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -952,6 +967,7 @@ forms_item(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @forms_funcs{"namedItem"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
forms_namedItem(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
forms_namedItem(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
@ -63,6 +63,7 @@ const JSFunctionSpec history_funcs[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @history_funcs{"back"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
history_back(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
history_back(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -79,6 +80,7 @@ history_back(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @history_funcs{"forward"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
history_forward(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
history_forward(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -91,6 +93,7 @@ history_forward(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *r
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @history_funcs{"go"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
history_go(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
history_go(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -137,6 +140,7 @@ const JSPropertySpec location_props[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @location_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
location_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
location_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -160,6 +164,7 @@ location_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @location_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
location_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
location_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -187,6 +192,7 @@ const JSFunctionSpec location_funcs[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @location_funcs{"toString"}, @location_funcs{"toLocaleString"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
location_toString(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
location_toString(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
@ -75,6 +75,7 @@ const JSPropertySpec navigator_props[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/* @navigator_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
navigator_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
navigator_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
|
@ -69,6 +69,7 @@ const JSPropertySpec unibar_props[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/* @menubar_class.getProperty, @statusbar_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
unibar_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
unibar_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -108,6 +109,7 @@ unibar_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @menubar_class.setProperty, @statusbar_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
unibar_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
unibar_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
|
@ -116,6 +116,7 @@ find_child_frame(struct document_view *doc_view, struct frame_desc *tframe)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* @window_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
window_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
window_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -234,6 +235,7 @@ found_parent:
|
|||||||
|
|
||||||
void location_goto(struct document_view *doc_view, unsigned char *url);
|
void location_goto(struct document_view *doc_view, unsigned char *url);
|
||||||
|
|
||||||
|
/* @window_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
window_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
window_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -279,6 +281,7 @@ const JSFunctionSpec window_funcs[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @window_funcs{"alert"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
window_alert(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
window_alert(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -299,6 +302,7 @@ window_alert(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @window_funcs{"open"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
window_open(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
window_open(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
@ -393,6 +397,7 @@ end:
|
|||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @window_funcs{"setTimeout"} */
|
||||||
static JSBool
|
static JSBool
|
||||||
window_setTimeout(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
window_setTimeout(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||||
{
|
{
|
||||||
|
@ -21,6 +21,7 @@ struct smjs_action_fn_callback_hop {
|
|||||||
action_id_T action_id;
|
action_id_T action_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @action_fn_class.finalize */
|
||||||
static void
|
static void
|
||||||
smjs_action_fn_finalize(JSContext *ctx, JSObject *obj)
|
smjs_action_fn_finalize(JSContext *ctx, JSObject *obj)
|
||||||
{
|
{
|
||||||
@ -29,6 +30,7 @@ smjs_action_fn_finalize(JSContext *ctx, JSObject *obj)
|
|||||||
if (hop) mem_free(hop);
|
if (hop) mem_free(hop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @action_fn_class.call */
|
||||||
static JSBool
|
static JSBool
|
||||||
smjs_action_fn_callback(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv,
|
smjs_action_fn_callback(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv,
|
||||||
jsval *rval)
|
jsval *rval)
|
||||||
@ -108,6 +110,7 @@ smjs_get_action_fn_object(unsigned char *action_str)
|
|||||||
|
|
||||||
/*** elinks.action object ***/
|
/*** elinks.action object ***/
|
||||||
|
|
||||||
|
/* @action_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
action_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
action_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
|
@ -35,6 +35,7 @@ smjs_get_bookmark_generic_object(struct bookmark *bookmark, JSClass *clasp)
|
|||||||
return NULL;
|
return NULL;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @bookmark_class.finalize, @bookmark_folder_class.finalize */
|
||||||
static void
|
static void
|
||||||
bookmark_finalize(JSContext *ctx, JSObject *obj)
|
bookmark_finalize(JSContext *ctx, JSObject *obj)
|
||||||
{
|
{
|
||||||
@ -61,6 +62,7 @@ static const JSPropertySpec bookmark_props[] = {
|
|||||||
|
|
||||||
static JSObject *smjs_get_bookmark_folder_object(struct bookmark *bookmark);
|
static JSObject *smjs_get_bookmark_folder_object(struct bookmark *bookmark);
|
||||||
|
|
||||||
|
/* @bookmark_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
bookmark_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
bookmark_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -96,6 +98,7 @@ bookmark_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_FALSE;
|
return JS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @bookmark_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
bookmark_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
bookmark_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -158,6 +161,7 @@ smjs_get_bookmark_object(struct bookmark *bookmark)
|
|||||||
|
|
||||||
/*** bookmark folder object ***/
|
/*** bookmark folder object ***/
|
||||||
|
|
||||||
|
/* @bookmark_folder_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
bookmark_folder_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
bookmark_folder_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
|
@ -31,6 +31,7 @@ static const JSPropertySpec cache_entry_props[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @cache_entry_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
cache_entry_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
cache_entry_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -82,6 +83,7 @@ cache_entry_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_FALSE;
|
return JS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @cache_entry_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
cache_entry_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
cache_entry_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -129,6 +131,7 @@ cache_entry_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_FALSE;
|
return JS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @cache_entry_class.finalize */
|
||||||
static void
|
static void
|
||||||
cache_entry_finalize(JSContext *ctx, JSObject *obj)
|
cache_entry_finalize(JSContext *ctx, JSObject *obj)
|
||||||
{
|
{
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#include "util/memory.h"
|
#include "util/memory.h"
|
||||||
|
|
||||||
|
|
||||||
|
/* @smjs_globhist_item_class.finalize */
|
||||||
static void
|
static void
|
||||||
smjs_globhist_item_finalize(JSContext *ctx, JSObject *obj)
|
smjs_globhist_item_finalize(JSContext *ctx, JSObject *obj)
|
||||||
{
|
{
|
||||||
@ -34,6 +35,7 @@ static const JSPropertySpec smjs_globhist_item_props[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @smjs_globhist_item_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
smjs_globhist_item_get_property(JSContext *ctx, JSObject *obj, jsval id,
|
smjs_globhist_item_get_property(JSContext *ctx, JSObject *obj, jsval id,
|
||||||
jsval *vp)
|
jsval *vp)
|
||||||
@ -86,6 +88,7 @@ smjs_globhist_item_get_property(JSContext *ctx, JSObject *obj, jsval id,
|
|||||||
return JS_FALSE;
|
return JS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @smjs_globhist_item_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
smjs_globhist_item_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
smjs_globhist_item_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -157,6 +160,7 @@ smjs_get_globhist_item_object(struct global_history_item *history_item)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* @smjs_globhist_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
smjs_globhist_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
smjs_globhist_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#include "scripting/smjs/elinks_object.h"
|
#include "scripting/smjs/elinks_object.h"
|
||||||
#include "util/memory.h"
|
#include "util/memory.h"
|
||||||
|
|
||||||
|
/* @keymap_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
keymap_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
keymap_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -58,6 +59,7 @@ smjs_keybinding_action_callback(va_list ap, void *data)
|
|||||||
return EVENT_HOOK_STATUS_LAST;
|
return EVENT_HOOK_STATUS_LAST;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @keymap_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
keymap_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
keymap_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -127,6 +129,7 @@ keymap_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_FALSE;
|
return JS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @keymap_class.finalize */
|
||||||
static void
|
static void
|
||||||
keymap_finalize(JSContext *ctx, JSObject *obj)
|
keymap_finalize(JSContext *ctx, JSObject *obj)
|
||||||
{
|
{
|
||||||
|
@ -31,6 +31,7 @@ static const JSPropertySpec view_state_props[] = {
|
|||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* @view_state_class.getProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
view_state_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
view_state_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
@ -59,6 +60,7 @@ view_state_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
return JS_FALSE;
|
return JS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* @view_state_class.setProperty */
|
||||||
static JSBool
|
static JSBool
|
||||||
view_state_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
view_state_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user