1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

Bug 846: Document the private data in each SMJS class.

This commit is contained in:
Kalle Olavi Niemitalo 2006-11-20 21:49:17 +02:00 committed by Kalle Olavi Niemitalo
parent eab3cb762f
commit d6ea143f36
9 changed files with 12 additions and 12 deletions

View File

@ -54,7 +54,7 @@ static JSBool input_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval
static const JSClass input_class = {
"input", /* here, we unleash ourselves */
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* struct form_state * */
JS_PropertyStub, JS_PropertyStub,
input_get_property, input_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
@ -602,7 +602,7 @@ static JSBool form_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *
static const JSClass form_class = {
"form",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* struct form_view * */
JS_PropertyStub, JS_PropertyStub,
form_get_property, form_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub

View File

@ -49,14 +49,14 @@ static JSBool unibar_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval
const JSClass menubar_class = {
"menubar",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* const char * "t" */
JS_PropertyStub, JS_PropertyStub,
unibar_get_property, unibar_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
};
const JSClass statusbar_class = {
"statusbar",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* const char * "s" */
JS_PropertyStub, JS_PropertyStub,
unibar_get_property, unibar_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub

View File

@ -49,7 +49,7 @@ static JSBool window_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval
const JSClass window_class = {
"window",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* struct view_state * */
JS_PropertyStub, JS_PropertyStub,
window_get_property, window_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub

View File

@ -63,7 +63,7 @@ smjs_action_fn_callback(JSContext *ctx, JSObject *obj, uintN argc, jsval *argv,
static const JSClass action_fn_class = {
"action_fn",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* struct smjs_action_fn_callback_hop * */
JS_PropertyStub, JS_PropertyStub,
JS_PropertyStub, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub,

View File

@ -133,7 +133,7 @@ bookmark_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
static const JSClass bookmark_class = {
"bookmark",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* struct bookmark * */
JS_PropertyStub, JS_PropertyStub,
bookmark_get_property, bookmark_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, bookmark_finalize,
@ -180,7 +180,7 @@ bookmark_folder_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
static const JSClass bookmark_folder_class = {
"bookmark_folder",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* struct bookmark * */
JS_PropertyStub, JS_PropertyStub,
bookmark_folder_get_property, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, bookmark_finalize,

View File

@ -141,7 +141,7 @@ cache_entry_finalize(JSContext *ctx, JSObject *obj)
static const JSClass cache_entry_class = {
"cache_entry",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* struct cache_entry * */
JS_PropertyStub, JS_PropertyStub,
cache_entry_get_property, cache_entry_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, cache_entry_finalize

View File

@ -131,7 +131,7 @@ smjs_globhist_item_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *
static const JSClass smjs_globhist_item_class = {
"global_history_item",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* struct global_history_item * */
JS_PropertyStub, JS_PropertyStub,
smjs_globhist_item_get_property, smjs_globhist_item_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub,

View File

@ -137,7 +137,7 @@ keymap_finalize(JSContext *ctx, JSObject *obj)
static const JSClass keymap_class = {
"keymap",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* int * */
JS_PropertyStub, JS_PropertyStub,
keymap_get_property, keymap_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, keymap_finalize,

View File

@ -83,7 +83,7 @@ view_state_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
static const JSClass view_state_class = {
"view_state",
JSCLASS_HAS_PRIVATE,
JSCLASS_HAS_PRIVATE, /* struct view_state * */
JS_PropertyStub, JS_PropertyStub,
view_state_get_property, view_state_set_property,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub