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:
parent
59df2a3d11
commit
4c58b4c56c
@ -73,8 +73,8 @@ const JSPropertySpec document_props[] = {
|
|||||||
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)
|
||||||
{
|
{
|
||||||
JSObject *parent = JS_GetParent(ctx, obj);
|
JSObject *parent_win = JS_GetParent(ctx, obj);
|
||||||
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
|
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
|
||||||
struct document_view *doc_view = vs->doc_view;
|
struct document_view *doc_view = vs->doc_view;
|
||||||
struct document *document = doc_view->document;
|
struct document *document = doc_view->document;
|
||||||
struct session *ses = doc_view->session;
|
struct session *ses = doc_view->session;
|
||||||
@ -157,8 +157,8 @@ document_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
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)
|
||||||
{
|
{
|
||||||
JSObject *parent = JS_GetParent(ctx, obj);
|
JSObject *parent_win = JS_GetParent(ctx, obj);
|
||||||
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
|
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
|
||||||
struct document_view *doc_view = vs->doc_view;
|
struct document_view *doc_view = vs->doc_view;
|
||||||
struct document *document = doc_view->document;
|
struct document *document = doc_view->document;
|
||||||
|
|
||||||
|
@ -145,8 +145,8 @@ const JSPropertySpec location_props[] = {
|
|||||||
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)
|
||||||
{
|
{
|
||||||
JSObject *parent = JS_GetParent(ctx, obj);
|
JSObject *parent_win = JS_GetParent(ctx, obj);
|
||||||
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
|
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
|
||||||
|
|
||||||
if (!JSVAL_IS_INT(id))
|
if (!JSVAL_IS_INT(id))
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
@ -169,8 +169,8 @@ location_get_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
|||||||
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)
|
||||||
{
|
{
|
||||||
JSObject *parent = JS_GetParent(ctx, obj);
|
JSObject *parent_win = JS_GetParent(ctx, obj);
|
||||||
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
|
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
|
||||||
struct document_view *doc_view = vs->doc_view;
|
struct document_view *doc_view = vs->doc_view;
|
||||||
|
|
||||||
if (!JSVAL_IS_INT(id))
|
if (!JSVAL_IS_INT(id))
|
||||||
|
@ -75,8 +75,8 @@ const JSPropertySpec unibar_props[] = {
|
|||||||
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)
|
||||||
{
|
{
|
||||||
JSObject *parent = JS_GetParent(ctx, obj);
|
JSObject *parent_win = JS_GetParent(ctx, obj);
|
||||||
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
|
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
|
||||||
struct document_view *doc_view = vs->doc_view;
|
struct document_view *doc_view = vs->doc_view;
|
||||||
struct session_status *status = &doc_view->session->status;
|
struct session_status *status = &doc_view->session->status;
|
||||||
unsigned char *bar = JS_GetPrivate(ctx, obj); /* from @menubar_class or @statusbar_class */
|
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
|
static JSBool
|
||||||
unibar_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
unibar_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
|
||||||
{
|
{
|
||||||
JSObject *parent = JS_GetParent(ctx, obj);
|
JSObject *parent_win = JS_GetParent(ctx, obj);
|
||||||
struct view_state *vs = JS_GetPrivate(ctx, parent); /* from @window_class */
|
struct view_state *vs = JS_GetPrivate(ctx, parent_win); /* from @window_class */
|
||||||
struct document_view *doc_view = vs->doc_view;
|
struct document_view *doc_view = vs->doc_view;
|
||||||
struct session_status *status = &doc_view->session->status;
|
struct session_status *status = &doc_view->session->status;
|
||||||
unsigned char *bar = JS_GetPrivate(ctx, obj); /* from @menubar_class or @statusbar_class */
|
unsigned char *bar = JS_GetPrivate(ctx, obj); /* from @menubar_class or @statusbar_class */
|
||||||
|
Loading…
Reference in New Issue
Block a user