From d6ea143f36a0e384f4f64e9f229577d5ba876b89 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Mon, 20 Nov 2006 21:49:17 +0200 Subject: [PATCH] Bug 846: Document the private data in each SMJS class. --- src/ecmascript/spidermonkey/form.c | 4 ++-- src/ecmascript/spidermonkey/unibar.c | 4 ++-- src/ecmascript/spidermonkey/window.c | 2 +- src/scripting/smjs/action_object.c | 2 +- src/scripting/smjs/bookmarks.c | 4 ++-- src/scripting/smjs/cache_object.c | 2 +- src/scripting/smjs/globhist.c | 2 +- src/scripting/smjs/keybinding.c | 2 +- src/scripting/smjs/view_state_object.c | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/ecmascript/spidermonkey/form.c b/src/ecmascript/spidermonkey/form.c index 5e5eababd..010eaf5b2 100644 --- a/src/ecmascript/spidermonkey/form.c +++ b/src/ecmascript/spidermonkey/form.c @@ -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 diff --git a/src/ecmascript/spidermonkey/unibar.c b/src/ecmascript/spidermonkey/unibar.c index a2aef1eaa..4dec02064 100644 --- a/src/ecmascript/spidermonkey/unibar.c +++ b/src/ecmascript/spidermonkey/unibar.c @@ -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 diff --git a/src/ecmascript/spidermonkey/window.c b/src/ecmascript/spidermonkey/window.c index 3cf4382b9..0ccfe940b 100644 --- a/src/ecmascript/spidermonkey/window.c +++ b/src/ecmascript/spidermonkey/window.c @@ -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 diff --git a/src/scripting/smjs/action_object.c b/src/scripting/smjs/action_object.c index b910c8d97..8c4ab9524 100644 --- a/src/scripting/smjs/action_object.c +++ b/src/scripting/smjs/action_object.c @@ -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, diff --git a/src/scripting/smjs/bookmarks.c b/src/scripting/smjs/bookmarks.c index b9f095fcf..4c76a33d3 100644 --- a/src/scripting/smjs/bookmarks.c +++ b/src/scripting/smjs/bookmarks.c @@ -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, diff --git a/src/scripting/smjs/cache_object.c b/src/scripting/smjs/cache_object.c index 8dfbdb673..49ec24389 100644 --- a/src/scripting/smjs/cache_object.c +++ b/src/scripting/smjs/cache_object.c @@ -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 diff --git a/src/scripting/smjs/globhist.c b/src/scripting/smjs/globhist.c index 13b8db13d..51dc91fda 100644 --- a/src/scripting/smjs/globhist.c +++ b/src/scripting/smjs/globhist.c @@ -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, diff --git a/src/scripting/smjs/keybinding.c b/src/scripting/smjs/keybinding.c index 96721fd99..26c04bf2d 100644 --- a/src/scripting/smjs/keybinding.c +++ b/src/scripting/smjs/keybinding.c @@ -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, diff --git a/src/scripting/smjs/view_state_object.c b/src/scripting/smjs/view_state_object.c index f5f049605..dfab9542f 100644 --- a/src/scripting/smjs/view_state_object.c +++ b/src/scripting/smjs/view_state_object.c @@ -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