Commit 7098a0fa authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(update_frame): Move those assignments even farther down.

parent b72a58fd
...@@ -1168,7 +1168,7 @@ update_frame (f, force, inhibit_hairy_id) ...@@ -1168,7 +1168,7 @@ update_frame (f, force, inhibit_hairy_id)
int inhibit_hairy_id; int inhibit_hairy_id;
{ {
register struct frame_glyphs *current_frame; register struct frame_glyphs *current_frame;
register struct frame_glyphs *desired_frame; register struct frame_glyphs *desired_frame = 0;
register int i; register int i;
int pause; int pause;
int preempt_count = baud_rate / 2400 + 1; int preempt_count = baud_rate / 2400 + 1;
...@@ -1177,10 +1177,6 @@ update_frame (f, force, inhibit_hairy_id) ...@@ -1177,10 +1177,6 @@ update_frame (f, force, inhibit_hairy_id)
register int downto, leftmost; register int downto, leftmost;
#endif #endif
/* These are separate to avoid a possible bug in the AIX C compiler. */
current_frame = FRAME_CURRENT_GLYPHS (f);
desired_frame = FRAME_DESIRED_GLYPHS (f);
if (preempt_count <= 0) if (preempt_count <= 0)
preempt_count = 1; preempt_count = 1;
...@@ -1198,6 +1194,10 @@ update_frame (f, force, inhibit_hairy_id) ...@@ -1198,6 +1194,10 @@ update_frame (f, force, inhibit_hairy_id)
if (!line_ins_del_ok) if (!line_ins_del_ok)
inhibit_hairy_id = 1; inhibit_hairy_id = 1;
/* These are separate to avoid a possible bug in the AIX C compiler. */
current_frame = FRAME_CURRENT_GLYPHS (f);
desired_frame = FRAME_DESIRED_GLYPHS (f);
/* See if any of the desired lines are enabled; don't compute for /* See if any of the desired lines are enabled; don't compute for
i/d line if just want cursor motion. */ i/d line if just want cursor motion. */
for (i = 0; i < FRAME_HEIGHT (f); i++) for (i = 0; i < FRAME_HEIGHT (f); i++)
...@@ -1335,7 +1335,8 @@ update_frame (f, force, inhibit_hairy_id) ...@@ -1335,7 +1335,8 @@ update_frame (f, force, inhibit_hairy_id)
if (FRAME_HEIGHT (f) == 0) abort (); /* Some bug zeros some core */ if (FRAME_HEIGHT (f) == 0) abort (); /* Some bug zeros some core */
display_completed = !pause; display_completed = !pause;
bzero (desired_frame->enable, FRAME_HEIGHT (f)); if (desired_frame)
bzero (desired_frame->enable, FRAME_HEIGHT (f));
return pause; return pause;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment