Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
8a94ea33
Commit
8a94ea33
authored
Apr 15, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* xfns.c (x_window): Rename locals to avoid shadowing.
parent
436c16df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
src/ChangeLog
src/ChangeLog
+1
-0
src/xfns.c
src/xfns.c
+6
-6
No files found.
src/ChangeLog
View file @
8a94ea33
2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
* xfns.c (free_frame_menubar, atof): Remove duplicate decls.
(x_window): Rename locals to avoid shadowing.
* xterm.c (x_alloc_nearest_color_for_widget): Remove; unused.
(x_term_init): Remove local to avoid shadowing.
...
...
src/xfns.c
View file @
8a94ea33
...
...
@@ -2427,8 +2427,8 @@ x_window (struct frame *f, long window_prompting, int minibuffer_only)
{
int
len
;
char
*
tem
,
shell_position
[
32
];
Arg
al
[
10
];
int
ac
=
0
;
Arg
g
al
[
10
];
int
g
ac
=
0
;
int
extra_borders
=
0
;
int
menubar_size
=
(
f
->
output_data
.
x
->
menubar_widget
...
...
@@ -2489,8 +2489,8 @@ x_window (struct frame *f, long window_prompting, int minibuffer_only)
If Emacs had just one program position, we could set it in
fallback resources, but since each make-frame call can specify
different program positions, this is easier. */
XtSetArg
(
al
[
ac
],
XtNx
,
left
);
ac
++
;
XtSetArg
(
al
[
ac
],
XtNy
,
top
);
ac
++
;
XtSetArg
(
g
al
[
g
ac
],
XtNx
,
left
);
g
ac
++
;
XtSetArg
(
g
al
[
g
ac
],
XtNy
,
top
);
g
ac
++
;
}
}
...
...
@@ -2501,8 +2501,8 @@ x_window (struct frame *f, long window_prompting, int minibuffer_only)
when the frame is deleted. */
tem
=
(
char
*
)
xmalloc
(
len
);
strncpy
(
tem
,
shell_position
,
len
);
XtSetArg
(
al
[
ac
],
XtNgeometry
,
tem
);
ac
++
;
XtSetValues
(
shell_widget
,
al
,
ac
);
XtSetArg
(
g
al
[
g
ac
],
XtNgeometry
,
tem
);
g
ac
++
;
XtSetValues
(
shell_widget
,
g
al
,
g
ac
);
}
XtManageChild
(
pane_widget
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment