diff options
| author | Paul Eggert | 2011-02-26 23:57:49 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-26 23:57:49 -0800 |
| commit | a4d4252bfb3ef85dd735c6d5e3b5bd3763e78346 (patch) | |
| tree | df3824e9f57b10357ae4eeeeb424513b19167b10 /src | |
| parent | 1f0816b69dfdbda486bf0329bbfb2e8ccee63d39 (diff) | |
| parent | c783d15b93c536b1d2d07a0e9ca9462d1f377120 (diff) | |
| download | emacs-a4d4252bfb3ef85dd735c6d5e3b5bd3763e78346.tar.gz emacs-a4d4252bfb3ef85dd735c6d5e3b5bd3763e78346.zip | |
Merge: Minor cleanups uncovered by gcc warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 33 | ||||
| -rw-r--r-- | src/dispextern.h | 2 | ||||
| -rw-r--r-- | src/dispnew.c | 126 | ||||
| -rw-r--r-- | src/frame.c | 10 | ||||
| -rw-r--r-- | src/frame.h | 8 | ||||
| -rw-r--r-- | src/msdos.c | 3 | ||||
| -rw-r--r-- | src/scroll.c | 5 |
7 files changed, 99 insertions, 88 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b49b7a2d3f1..1929c3fc98a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,36 @@ | |||
| 1 | 2011-02-27 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG. | ||
| 4 | This avoids a gcc warning in some configurations. | ||
| 5 | |||
| 6 | * frame.c (x_set_screen_gamma): Rename local to avoid shadowing. | ||
| 7 | |||
| 8 | * frame.h: Avoid gcc -Wmissing-prototypes diagnostics. | ||
| 9 | (set_menu_bar_lines, x_get_resource_string): New decls. | ||
| 10 | * msdos.c (set_menu_bar_lines): Omit decl. | ||
| 11 | |||
| 12 | * dispextern.h (struct glyph): Make u.img_id int, not unsigned. | ||
| 13 | It's always given int values and used as an int. This suppresses | ||
| 14 | a gcc "comparison of unsigned expression >= 0" warning in some | ||
| 15 | configurations. | ||
| 16 | |||
| 17 | * dispnew.c: Rename locals to avoid shadowing. | ||
| 18 | (update_text_area, scrolling_window, update_frame_1): Rename locals. | ||
| 19 | |||
| 20 | 2011-02-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 21 | |||
| 22 | * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes. | ||
| 23 | (copy_glyph_row_contents): Remove; not used. | ||
| 24 | (frame_row_to_window, check_current_matrix_flags): | ||
| 25 | (window_change_signal): Now static, since they're not used elsewhere. | ||
| 26 | (check_current_matrix_flags): Surround with "#if 0", since its | ||
| 27 | only use is in a comment. Maybe both the comment and the "#if 0" | ||
| 28 | stuff should be removed? | ||
| 29 | |||
| 30 | * dispnew.c: Fix problem uncovered by gcc -Wunused-variable. | ||
| 31 | (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the | ||
| 32 | contexts that actually need it. | ||
| 33 | |||
| 1 | 2011-02-26 Eli Zaretskii <eliz@gnu.org> | 34 | 2011-02-26 Eli Zaretskii <eliz@gnu.org> |
| 2 | 35 | ||
| 3 | * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04. | 36 | * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04. |
diff --git a/src/dispextern.h b/src/dispextern.h index 6bb0c3a6aae..37ae7ee5fd5 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -431,7 +431,7 @@ struct glyph | |||
| 431 | } cmp; | 431 | } cmp; |
| 432 | 432 | ||
| 433 | /* Image ID for image glyphs (type == IMAGE_GLYPH). */ | 433 | /* Image ID for image glyphs (type == IMAGE_GLYPH). */ |
| 434 | unsigned img_id; | 434 | int img_id; |
| 435 | 435 | ||
| 436 | /* Sub-structure for type == STRETCH_GLYPH. */ | 436 | /* Sub-structure for type == STRETCH_GLYPH. */ |
| 437 | struct | 437 | struct |
diff --git a/src/dispnew.c b/src/dispnew.c index 4e068bde536..1408bea2fc6 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -1129,32 +1129,6 @@ copy_row_except_pointers (struct glyph_row *to, struct glyph_row *from) | |||
| 1129 | } | 1129 | } |
| 1130 | 1130 | ||
| 1131 | 1131 | ||
| 1132 | /* Copy contents of glyph row FROM to glyph row TO. Glyph pointers in | ||
| 1133 | TO and FROM are left unchanged. Glyph contents are copied from the | ||
| 1134 | glyph memory of FROM to the glyph memory of TO. Increment buffer | ||
| 1135 | positions in row TO by DELTA/ DELTA_BYTES. */ | ||
| 1136 | |||
| 1137 | void | ||
| 1138 | copy_glyph_row_contents (struct glyph_row *to, struct glyph_row *from, | ||
| 1139 | EMACS_INT delta, EMACS_INT delta_bytes) | ||
| 1140 | { | ||
| 1141 | int area; | ||
| 1142 | |||
| 1143 | /* This is like a structure assignment TO = FROM, except that | ||
| 1144 | glyph pointers in the rows are left unchanged. */ | ||
| 1145 | copy_row_except_pointers (to, from); | ||
| 1146 | |||
| 1147 | /* Copy glyphs from FROM to TO. */ | ||
| 1148 | for (area = 0; area < LAST_AREA; ++area) | ||
| 1149 | if (from->used[area]) | ||
| 1150 | memcpy (to->glyphs[area], from->glyphs[area], | ||
| 1151 | from->used[area] * sizeof (struct glyph)); | ||
| 1152 | |||
| 1153 | /* Increment buffer positions in TO by DELTA. */ | ||
| 1154 | increment_row_positions (to, delta, delta_bytes); | ||
| 1155 | } | ||
| 1156 | |||
| 1157 | |||
| 1158 | /* Assign glyph row FROM to glyph row TO. This works like a structure | 1132 | /* Assign glyph row FROM to glyph row TO. This works like a structure |
| 1159 | assignment TO = FROM, except that glyph pointers are not copied but | 1133 | assignment TO = FROM, except that glyph pointers are not copied but |
| 1160 | exchanged between TO and FROM. Pointers must be exchanged to avoid | 1134 | exchanged between TO and FROM. Pointers must be exchanged to avoid |
| @@ -2223,8 +2197,6 @@ adjust_frame_glyphs_for_frame_redisplay (struct frame *f) | |||
| 2223 | static void | 2197 | static void |
| 2224 | adjust_frame_glyphs_for_window_redisplay (struct frame *f) | 2198 | adjust_frame_glyphs_for_window_redisplay (struct frame *f) |
| 2225 | { | 2199 | { |
| 2226 | struct window *w; | ||
| 2227 | |||
| 2228 | xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f)); | 2200 | xassert (FRAME_WINDOW_P (f) && FRAME_LIVE_P (f)); |
| 2229 | 2201 | ||
| 2230 | /* Allocate/reallocate window matrices. */ | 2202 | /* Allocate/reallocate window matrices. */ |
| @@ -2236,6 +2208,7 @@ adjust_frame_glyphs_for_window_redisplay (struct frame *f) | |||
| 2236 | #if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) | 2208 | #if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) |
| 2237 | { | 2209 | { |
| 2238 | /* Allocate a dummy window if not already done. */ | 2210 | /* Allocate a dummy window if not already done. */ |
| 2211 | struct window *w; | ||
| 2239 | if (NILP (f->menu_bar_window)) | 2212 | if (NILP (f->menu_bar_window)) |
| 2240 | { | 2213 | { |
| 2241 | f->menu_bar_window = make_window (); | 2214 | f->menu_bar_window = make_window (); |
| @@ -2258,23 +2231,26 @@ adjust_frame_glyphs_for_window_redisplay (struct frame *f) | |||
| 2258 | #endif /* HAVE_X_WINDOWS */ | 2231 | #endif /* HAVE_X_WINDOWS */ |
| 2259 | 2232 | ||
| 2260 | #ifndef USE_GTK | 2233 | #ifndef USE_GTK |
| 2261 | /* Allocate/ reallocate matrices of the tool bar window. If we | 2234 | { |
| 2262 | don't have a tool bar window yet, make one. */ | 2235 | /* Allocate/ reallocate matrices of the tool bar window. If we |
| 2263 | if (NILP (f->tool_bar_window)) | 2236 | don't have a tool bar window yet, make one. */ |
| 2264 | { | 2237 | struct window *w; |
| 2265 | f->tool_bar_window = make_window (); | 2238 | if (NILP (f->tool_bar_window)) |
| 2239 | { | ||
| 2240 | f->tool_bar_window = make_window (); | ||
| 2241 | w = XWINDOW (f->tool_bar_window); | ||
| 2242 | XSETFRAME (w->frame, f); | ||
| 2243 | w->pseudo_window_p = 1; | ||
| 2244 | } | ||
| 2245 | else | ||
| 2266 | w = XWINDOW (f->tool_bar_window); | 2246 | w = XWINDOW (f->tool_bar_window); |
| 2267 | XSETFRAME (w->frame, f); | ||
| 2268 | w->pseudo_window_p = 1; | ||
| 2269 | } | ||
| 2270 | else | ||
| 2271 | w = XWINDOW (f->tool_bar_window); | ||
| 2272 | 2247 | ||
| 2273 | XSETFASTINT (w->top_line, FRAME_MENU_BAR_LINES (f)); | 2248 | XSETFASTINT (w->top_line, FRAME_MENU_BAR_LINES (f)); |
| 2274 | XSETFASTINT (w->left_col, 0); | 2249 | XSETFASTINT (w->left_col, 0); |
| 2275 | XSETFASTINT (w->total_lines, FRAME_TOOL_BAR_LINES (f)); | 2250 | XSETFASTINT (w->total_lines, FRAME_TOOL_BAR_LINES (f)); |
| 2276 | XSETFASTINT (w->total_cols, FRAME_TOTAL_COLS (f)); | 2251 | XSETFASTINT (w->total_cols, FRAME_TOTAL_COLS (f)); |
| 2277 | allocate_matrices_for_window_redisplay (w); | 2252 | allocate_matrices_for_window_redisplay (w); |
| 2253 | } | ||
| 2278 | #endif | 2254 | #endif |
| 2279 | } | 2255 | } |
| 2280 | 2256 | ||
| @@ -2924,7 +2900,7 @@ sync_window_with_frame_matrix_rows (struct window *w) | |||
| 2924 | /* Return the window in the window tree rooted in W containing frame | 2900 | /* Return the window in the window tree rooted in W containing frame |
| 2925 | row ROW. Value is null if none is found. */ | 2901 | row ROW. Value is null if none is found. */ |
| 2926 | 2902 | ||
| 2927 | struct window * | 2903 | static struct window * |
| 2928 | frame_row_to_window (struct window *w, int row) | 2904 | frame_row_to_window (struct window *w, int row) |
| 2929 | { | 2905 | { |
| 2930 | struct window *found = NULL; | 2906 | struct window *found = NULL; |
| @@ -3562,12 +3538,12 @@ redraw_overlapping_rows (struct window *w, int yb) | |||
| 3562 | #endif /* HAVE_WINDOW_SYSTEM */ | 3538 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 3563 | 3539 | ||
| 3564 | 3540 | ||
| 3565 | #ifdef GLYPH_DEBUG | 3541 | #if defined GLYPH_DEBUG && 0 |
| 3566 | 3542 | ||
| 3567 | /* Check that no row in the current matrix of window W is enabled | 3543 | /* Check that no row in the current matrix of window W is enabled |
| 3568 | which is below what's displayed in the window. */ | 3544 | which is below what's displayed in the window. */ |
| 3569 | 3545 | ||
| 3570 | void | 3546 | static void |
| 3571 | check_current_matrix_flags (struct window *w) | 3547 | check_current_matrix_flags (struct window *w) |
| 3572 | { | 3548 | { |
| 3573 | int last_seen_p = 0; | 3549 | int last_seen_p = 0; |
| @@ -4014,7 +3990,7 @@ update_text_area (struct window *w, int vpos) | |||
| 4014 | { | 3990 | { |
| 4015 | /* Otherwise clear to the end of the old row. Everything | 3991 | /* Otherwise clear to the end of the old row. Everything |
| 4016 | after that position should be clear already. */ | 3992 | after that position should be clear already. */ |
| 4017 | int x; | 3993 | int xlim; |
| 4018 | 3994 | ||
| 4019 | if (i >= desired_row->used[TEXT_AREA]) | 3995 | if (i >= desired_row->used[TEXT_AREA]) |
| 4020 | rif->cursor_to (vpos, i, desired_row->y, | 3996 | rif->cursor_to (vpos, i, desired_row->y, |
| @@ -4031,11 +4007,11 @@ update_text_area (struct window *w, int vpos) | |||
| 4031 | : (w->phys_cursor.hpos >= desired_row->used[TEXT_AREA]))) | 4007 | : (w->phys_cursor.hpos >= desired_row->used[TEXT_AREA]))) |
| 4032 | { | 4008 | { |
| 4033 | w->phys_cursor_on_p = 0; | 4009 | w->phys_cursor_on_p = 0; |
| 4034 | x = -1; | 4010 | xlim = -1; |
| 4035 | } | 4011 | } |
| 4036 | else | 4012 | else |
| 4037 | x = current_row->pixel_width; | 4013 | xlim = current_row->pixel_width; |
| 4038 | rif->clear_end_of_line (x); | 4014 | rif->clear_end_of_line (xlim); |
| 4039 | changed_p = 1; | 4015 | changed_p = 1; |
| 4040 | } | 4016 | } |
| 4041 | } | 4017 | } |
| @@ -4491,7 +4467,7 @@ scrolling_window (struct window *w, int header_line_p) | |||
| 4491 | && old_lines[i]->old_uses == 1 | 4467 | && old_lines[i]->old_uses == 1 |
| 4492 | && old_lines[i]->new_uses == 1) | 4468 | && old_lines[i]->new_uses == 1) |
| 4493 | { | 4469 | { |
| 4494 | int j, k; | 4470 | int p, q; |
| 4495 | int new_line = old_lines[i]->new_line_number; | 4471 | int new_line = old_lines[i]->new_line_number; |
| 4496 | struct run *run = run_pool + run_idx++; | 4472 | struct run *run = run_pool + run_idx++; |
| 4497 | 4473 | ||
| @@ -4504,33 +4480,33 @@ scrolling_window (struct window *w, int header_line_p) | |||
| 4504 | run->height = MATRIX_ROW (current_matrix, i)->height; | 4480 | run->height = MATRIX_ROW (current_matrix, i)->height; |
| 4505 | 4481 | ||
| 4506 | /* Extend backward. */ | 4482 | /* Extend backward. */ |
| 4507 | j = i - 1; | 4483 | p = i - 1; |
| 4508 | k = new_line - 1; | 4484 | q = new_line - 1; |
| 4509 | while (j > first_old | 4485 | while (p > first_old |
| 4510 | && k > first_new | 4486 | && q > first_new |
| 4511 | && old_lines[j] == new_lines[k]) | 4487 | && old_lines[p] == new_lines[q]) |
| 4512 | { | 4488 | { |
| 4513 | int h = MATRIX_ROW (current_matrix, j)->height; | 4489 | int h = MATRIX_ROW (current_matrix, p)->height; |
| 4514 | --run->current_vpos; | 4490 | --run->current_vpos; |
| 4515 | --run->desired_vpos; | 4491 | --run->desired_vpos; |
| 4516 | ++run->nrows; | 4492 | ++run->nrows; |
| 4517 | run->height += h; | 4493 | run->height += h; |
| 4518 | run->desired_y -= h; | 4494 | run->desired_y -= h; |
| 4519 | run->current_y -= h; | 4495 | run->current_y -= h; |
| 4520 | --j, --k; | 4496 | --p, --q; |
| 4521 | } | 4497 | } |
| 4522 | 4498 | ||
| 4523 | /* Extend forward. */ | 4499 | /* Extend forward. */ |
| 4524 | j = i + 1; | 4500 | p = i + 1; |
| 4525 | k = new_line + 1; | 4501 | q = new_line + 1; |
| 4526 | while (j < last_old | 4502 | while (p < last_old |
| 4527 | && k < last_new | 4503 | && q < last_new |
| 4528 | && old_lines[j] == new_lines[k]) | 4504 | && old_lines[p] == new_lines[q]) |
| 4529 | { | 4505 | { |
| 4530 | int h = MATRIX_ROW (current_matrix, j)->height; | 4506 | int h = MATRIX_ROW (current_matrix, p)->height; |
| 4531 | ++run->nrows; | 4507 | ++run->nrows; |
| 4532 | run->height += h; | 4508 | run->height += h; |
| 4533 | ++j, ++k; | 4509 | ++p, ++q; |
| 4534 | } | 4510 | } |
| 4535 | 4511 | ||
| 4536 | /* Insert run into list of all runs. Order runs by copied | 4512 | /* Insert run into list of all runs. Order runs by copied |
| @@ -4538,11 +4514,11 @@ scrolling_window (struct window *w, int header_line_p) | |||
| 4538 | be copied because they are already in place. This is done | 4514 | be copied because they are already in place. This is done |
| 4539 | because we can avoid calling update_window_line in this | 4515 | because we can avoid calling update_window_line in this |
| 4540 | case. */ | 4516 | case. */ |
| 4541 | for (j = 0; j < nruns && runs[j]->height > run->height; ++j) | 4517 | for (p = 0; p < nruns && runs[p]->height > run->height; ++p) |
| 4542 | ; | 4518 | ; |
| 4543 | for (k = nruns; k > j; --k) | 4519 | for (q = nruns; q > p; --q) |
| 4544 | runs[k] = runs[k - 1]; | 4520 | runs[q] = runs[q - 1]; |
| 4545 | runs[j] = run; | 4521 | runs[p] = run; |
| 4546 | ++nruns; | 4522 | ++nruns; |
| 4547 | 4523 | ||
| 4548 | i += run->nrows; | 4524 | i += run->nrows; |
| @@ -4639,7 +4615,7 @@ update_frame_1 (struct frame *f, int force_p, int inhibit_id_p) | |||
| 4639 | struct glyph_matrix *current_matrix = f->current_matrix; | 4615 | struct glyph_matrix *current_matrix = f->current_matrix; |
| 4640 | struct glyph_matrix *desired_matrix = f->desired_matrix; | 4616 | struct glyph_matrix *desired_matrix = f->desired_matrix; |
| 4641 | int i; | 4617 | int i; |
| 4642 | int pause; | 4618 | int pause_p; |
| 4643 | int preempt_count = baud_rate / 2400 + 1; | 4619 | int preempt_count = baud_rate / 2400 + 1; |
| 4644 | 4620 | ||
| 4645 | xassert (current_matrix && desired_matrix); | 4621 | xassert (current_matrix && desired_matrix); |
| @@ -4653,7 +4629,7 @@ update_frame_1 (struct frame *f, int force_p, int inhibit_id_p) | |||
| 4653 | #if !PERIODIC_PREEMPTION_CHECKING | 4629 | #if !PERIODIC_PREEMPTION_CHECKING |
| 4654 | if (!force_p && detect_input_pending_ignore_squeezables ()) | 4630 | if (!force_p && detect_input_pending_ignore_squeezables ()) |
| 4655 | { | 4631 | { |
| 4656 | pause = 1; | 4632 | pause_p = 1; |
| 4657 | goto do_pause; | 4633 | goto do_pause; |
| 4658 | } | 4634 | } |
| 4659 | #endif | 4635 | #endif |
| @@ -4733,10 +4709,10 @@ update_frame_1 (struct frame *f, int force_p, int inhibit_id_p) | |||
| 4733 | } | 4709 | } |
| 4734 | } | 4710 | } |
| 4735 | 4711 | ||
| 4736 | pause = (i < FRAME_LINES (f) - 1) ? i : 0; | 4712 | pause_p = (i < FRAME_LINES (f) - 1) ? i : 0; |
| 4737 | 4713 | ||
| 4738 | /* Now just clean up termcap drivers and set cursor, etc. */ | 4714 | /* Now just clean up termcap drivers and set cursor, etc. */ |
| 4739 | if (!pause) | 4715 | if (!pause_p) |
| 4740 | { | 4716 | { |
| 4741 | if ((cursor_in_echo_area | 4717 | if ((cursor_in_echo_area |
| 4742 | /* If we are showing a message instead of the mini-buffer, | 4718 | /* If we are showing a message instead of the mini-buffer, |
| @@ -4837,7 +4813,7 @@ update_frame_1 (struct frame *f, int force_p, int inhibit_id_p) | |||
| 4837 | #endif | 4813 | #endif |
| 4838 | 4814 | ||
| 4839 | clear_desired_matrices (f); | 4815 | clear_desired_matrices (f); |
| 4840 | return pause; | 4816 | return pause_p; |
| 4841 | } | 4817 | } |
| 4842 | 4818 | ||
| 4843 | 4819 | ||
| @@ -5594,7 +5570,7 @@ marginal_area_string (struct window *w, enum window_part part, | |||
| 5594 | 5570 | ||
| 5595 | #ifdef SIGWINCH | 5571 | #ifdef SIGWINCH |
| 5596 | 5572 | ||
| 5597 | SIGTYPE | 5573 | static SIGTYPE |
| 5598 | window_change_signal (int signalnum) /* If we don't have an argument, */ | 5574 | window_change_signal (int signalnum) /* If we don't have an argument, */ |
| 5599 | /* some compilers complain in signal calls. */ | 5575 | /* some compilers complain in signal calls. */ |
| 5600 | { | 5576 | { |
diff --git a/src/frame.c b/src/frame.c index 56e0e7ec919..3a6900a572a 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -3275,12 +3275,12 @@ x_set_screen_gamma (struct frame *f, Lisp_Object new_value, Lisp_Object old_valu | |||
| 3275 | bgcolor = Fassq (Qbackground_color, f->param_alist); | 3275 | bgcolor = Fassq (Qbackground_color, f->param_alist); |
| 3276 | if (CONSP (bgcolor) && (bgcolor = XCDR (bgcolor), STRINGP (bgcolor))) | 3276 | if (CONSP (bgcolor) && (bgcolor = XCDR (bgcolor), STRINGP (bgcolor))) |
| 3277 | { | 3277 | { |
| 3278 | Lisp_Object index = Fget (Qbackground_color, Qx_frame_parameter); | 3278 | Lisp_Object parm_index = Fget (Qbackground_color, Qx_frame_parameter); |
| 3279 | if (NATNUMP (index) | 3279 | if (NATNUMP (parm_index) |
| 3280 | && (XFASTINT (index) | 3280 | && (XFASTINT (parm_index) |
| 3281 | < sizeof (frame_parms)/sizeof (frame_parms[0])) | 3281 | < sizeof (frame_parms)/sizeof (frame_parms[0])) |
| 3282 | && FRAME_RIF (f)->frame_parm_handlers[XFASTINT (index)]) | 3282 | && FRAME_RIF (f)->frame_parm_handlers[XFASTINT (parm_index)]) |
| 3283 | (*FRAME_RIF (f)->frame_parm_handlers[XFASTINT (index)]) | 3283 | (*FRAME_RIF (f)->frame_parm_handlers[XFASTINT (parm_index)]) |
| 3284 | (f, bgcolor, Qnil); | 3284 | (f, bgcolor, Qnil); |
| 3285 | } | 3285 | } |
| 3286 | 3286 | ||
diff --git a/src/frame.h b/src/frame.h index 9687e39a9fc..756e121f678 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -841,6 +841,7 @@ extern Lisp_Object Qnoelisp; | |||
| 841 | 841 | ||
| 842 | extern struct frame *last_nonminibuf_frame; | 842 | extern struct frame *last_nonminibuf_frame; |
| 843 | 843 | ||
| 844 | extern void set_menu_bar_lines (struct frame *, Lisp_Object, Lisp_Object); | ||
| 844 | extern struct frame *make_initial_frame (void); | 845 | extern struct frame *make_initial_frame (void); |
| 845 | extern struct frame *make_terminal_frame (struct terminal *); | 846 | extern struct frame *make_terminal_frame (struct terminal *); |
| 846 | extern struct frame *make_frame (int); | 847 | extern struct frame *make_frame (int); |
| @@ -1131,17 +1132,20 @@ extern int x_figure_window_size (struct frame *, Lisp_Object, int); | |||
| 1131 | extern void x_set_alpha (struct frame *, Lisp_Object, Lisp_Object); | 1132 | extern void x_set_alpha (struct frame *, Lisp_Object, Lisp_Object); |
| 1132 | 1133 | ||
| 1133 | extern void validate_x_resource_name (void); | 1134 | extern void validate_x_resource_name (void); |
| 1134 | 1135 | ||
| 1135 | extern Lisp_Object display_x_get_resource (Display_Info *, | 1136 | extern Lisp_Object display_x_get_resource (Display_Info *, |
| 1136 | Lisp_Object attribute, | 1137 | Lisp_Object attribute, |
| 1137 | Lisp_Object class, | 1138 | Lisp_Object class, |
| 1138 | Lisp_Object component, | 1139 | Lisp_Object component, |
| 1139 | Lisp_Object subclass); | 1140 | Lisp_Object subclass); |
| 1140 | 1141 | ||
| 1142 | #if defined HAVE_X_WINDOWS && !defined USE_X_TOOLKIT | ||
| 1143 | extern char *x_get_resource_string (const char *, const char *); | ||
| 1144 | #endif | ||
| 1145 | |||
| 1141 | /* In xmenu.c */ | 1146 | /* In xmenu.c */ |
| 1142 | extern void set_frame_menubar (FRAME_PTR, int, int); | 1147 | extern void set_frame_menubar (FRAME_PTR, int, int); |
| 1143 | 1148 | ||
| 1144 | #endif /* HAVE_WINDOW_SYSTEM */ | 1149 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 1145 | 1150 | ||
| 1146 | #endif /* not EMACS_FRAME_H */ | 1151 | #endif /* not EMACS_FRAME_H */ |
| 1147 | |||
diff --git a/src/msdos.c b/src/msdos.c index 8f0f6776aaa..df51c5fdb88 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -1389,8 +1389,6 @@ IT_delete_glyphs (struct frame *f, int n) | |||
| 1389 | void | 1389 | void |
| 1390 | x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) | 1390 | x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) |
| 1391 | { | 1391 | { |
| 1392 | extern void set_menu_bar_lines (struct frame *, Lisp_Object, Lisp_Object); | ||
| 1393 | |||
| 1394 | set_menu_bar_lines (f, value, oldval); | 1392 | set_menu_bar_lines (f, value, oldval); |
| 1395 | } | 1393 | } |
| 1396 | 1394 | ||
| @@ -4236,4 +4234,3 @@ This variable is used only by MS-DOS terminals. */); | |||
| 4236 | } | 4234 | } |
| 4237 | 4235 | ||
| 4238 | #endif /* MSDOS */ | 4236 | #endif /* MSDOS */ |
| 4239 | |||
diff --git a/src/scroll.c b/src/scroll.c index 08ae83eeee8..1343b89c41e 100644 --- a/src/scroll.c +++ b/src/scroll.c | |||
| @@ -262,7 +262,8 @@ do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, struct m | |||
| 262 | for (k = 0; k < window_size; ++k) | 262 | for (k = 0; k < window_size; ++k) |
| 263 | copy_from[k] = -1; | 263 | copy_from[k] = -1; |
| 264 | 264 | ||
| 265 | #define CHECK_BOUNDS \ | 265 | #if GLYPH_DEBUG |
| 266 | # define CHECK_BOUNDS \ | ||
| 266 | do \ | 267 | do \ |
| 267 | { \ | 268 | { \ |
| 268 | int k; \ | 269 | int k; \ |
| @@ -271,6 +272,7 @@ do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, struct m | |||
| 271 | || (copy_from[k] >= 0 && copy_from[k] < window_size)); \ | 272 | || (copy_from[k] >= 0 && copy_from[k] < window_size)); \ |
| 272 | } \ | 273 | } \ |
| 273 | while (0); | 274 | while (0); |
| 275 | #endif | ||
| 274 | 276 | ||
| 275 | /* When j is advanced, this corresponds to deleted lines. | 277 | /* When j is advanced, this corresponds to deleted lines. |
| 276 | When i is advanced, this corresponds to inserted lines. */ | 278 | When i is advanced, this corresponds to inserted lines. */ |
| @@ -1035,4 +1037,3 @@ do_line_insertion_deletion_costs (FRAME_PTR frame, | |||
| 1035 | FRAME_DELETE_COST (frame), FRAME_DELETEN_COST (frame), | 1037 | FRAME_DELETE_COST (frame), FRAME_DELETEN_COST (frame), |
| 1036 | coefficient); | 1038 | coefficient); |
| 1037 | } | 1039 | } |
| 1038 | |||