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

Bug 846: Rename some local variables.

Rename parent to parent_win if it points to an instance of window_class.

(Adapted from 98a120b3d5 in ELinks 0.12.GIT.)
This commit is contained in:
Kalle Olavi Niemitalo 2006-11-25 21:01:53 +02:00 committed by Kalle Olavi Niemitalo
parent 59df2a3d11
commit 4c58b4c56c
3 changed files with 12 additions and 12 deletions

View File

@ -73,8 +73,8 @@ const JSPropertySpec document_props[] = {
static JSBool
document_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
{
JSObject *parent = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
JSObject *parent_win = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
struct document_view *doc_view = vs->doc_view;
struct document *document = doc_view->document;
struct session *ses = doc_view->session;
@ -157,8 +157,8 @@ document_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
static JSBool
document_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
{
JSObject *parent = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
JSObject *parent_win = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
struct document_view *doc_view = vs->doc_view;
struct document *document = doc_view->document;

View File

@ -145,8 +145,8 @@ const JSPropertySpec location_props[] = {
static JSBool
location_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
{
JSObject *parent = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
JSObject *parent_win = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
if (!JSVAL_IS_INT(id))
return JS_TRUE;
@ -169,8 +169,8 @@ location_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
static JSBool
location_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
{
JSObject *parent = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
JSObject *parent_win = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
struct document_view *doc_view = vs->doc_view;
if (!JSVAL_IS_INT(id))

View File

@ -75,8 +75,8 @@ const JSPropertySpec unibar_props[] = {
static JSBool
unibar_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
{
JSObject *parent = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
JSObject *parent_win = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
struct document_view *doc_view = vs->doc_view;
struct session_status *status = &doc_view->session->status;
unsigned char *bar = JS_GetPrivate(ctx, obj); /* from @menubar_class or @statusbar_class */
@ -115,8 +115,8 @@ unibar_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
static JSBool
unibar_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
{
JSObject *parent = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
JSObject *parent_win = JS_GetParent(ctx, obj);
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
struct document_view *doc_view = vs->doc_view;
struct session_status *status = &doc_view->session->status;
unsigned char *bar = JS_GetPrivate(ctx, obj); /* from @menubar_class or @statusbar_class */