1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

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

(Adapted from d6ea143f36 in ELinks 0.12.GIT.
 ELinks 0.11.2.GIT doesn't have src/scripting/smjs/action_object.c and
 src/scripting/smjs/globhist.c.)
This commit is contained in:
Kalle Olavi Niemitalo 2006-11-25 20:35:48 +02:00 committed by Kalle Olavi Niemitalo
parent 1f3b2f366b
commit ffa24fd3e0
7 changed files with 10 additions and 10 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
@ -572,7 +572,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

@ -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,
@ -186,7 +186,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

@ -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

@ -79,7 +79,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