diff options
| author | Paul Eggert | 2011-02-26 14:54:33 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-02-26 14:54:33 -0800 |
| commit | 09ad5a9148880d0bdd080e8700cbe5d0d13e017c (patch) | |
| tree | 9ce3043adb2c8baa2d654d70a6ca502a4dde138d /src | |
| parent | e573299d40e5825584ed9e8bd58f5a8c2deee6fd (diff) | |
| download | emacs-09ad5a9148880d0bdd080e8700cbe5d0d13e017c.tar.gz emacs-09ad5a9148880d0bdd080e8700cbe5d0d13e017c.zip | |
* dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
(copy_glyph_row_contents): Remove; not used.
(frame_row_to_window, check_current_matrix_flags):
(window_change_signal): Now static, since they're not used elsewhere.
(check_current_matrix_flags): Surround with "#if 0", since its
only use is in a comment. Maybe both the comment and the "#if 0"
stuff should be removed?
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/dispnew.c | 34 |
2 files changed, 14 insertions, 30 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b49b7a2d3f1..fde896d5b4c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2011-02-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes. | ||
| 4 | (copy_glyph_row_contents): Remove; not used. | ||
| 5 | (frame_row_to_window, check_current_matrix_flags): | ||
| 6 | (window_change_signal): Now static, since they're not used elsewhere. | ||
| 7 | (check_current_matrix_flags): Surround with "#if 0", since its | ||
| 8 | only use is in a comment. Maybe both the comment and the "#if 0" | ||
| 9 | stuff should be removed? | ||
| 10 | |||
| 1 | 2011-02-26 Eli Zaretskii <eliz@gnu.org> | 11 | 2011-02-26 Eli Zaretskii <eliz@gnu.org> |
| 2 | 12 | ||
| 3 | * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04. | 13 | * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04. |
diff --git a/src/dispnew.c b/src/dispnew.c index 4e068bde536..33c0df7e240 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 |
| @@ -2924,7 +2898,7 @@ sync_window_with_frame_matrix_rows (struct window *w) | |||
| 2924 | /* Return the window in the window tree rooted in W containing frame | 2898 | /* Return the window in the window tree rooted in W containing frame |
| 2925 | row ROW. Value is null if none is found. */ | 2899 | row ROW. Value is null if none is found. */ |
| 2926 | 2900 | ||
| 2927 | struct window * | 2901 | static struct window * |
| 2928 | frame_row_to_window (struct window *w, int row) | 2902 | frame_row_to_window (struct window *w, int row) |
| 2929 | { | 2903 | { |
| 2930 | struct window *found = NULL; | 2904 | struct window *found = NULL; |
| @@ -3562,12 +3536,12 @@ redraw_overlapping_rows (struct window *w, int yb) | |||
| 3562 | #endif /* HAVE_WINDOW_SYSTEM */ | 3536 | #endif /* HAVE_WINDOW_SYSTEM */ |
| 3563 | 3537 | ||
| 3564 | 3538 | ||
| 3565 | #ifdef GLYPH_DEBUG | 3539 | #if defined GLYPH_DEBUG && 0 |
| 3566 | 3540 | ||
| 3567 | /* Check that no row in the current matrix of window W is enabled | 3541 | /* Check that no row in the current matrix of window W is enabled |
| 3568 | which is below what's displayed in the window. */ | 3542 | which is below what's displayed in the window. */ |
| 3569 | 3543 | ||
| 3570 | void | 3544 | static void |
| 3571 | check_current_matrix_flags (struct window *w) | 3545 | check_current_matrix_flags (struct window *w) |
| 3572 | { | 3546 | { |
| 3573 | int last_seen_p = 0; | 3547 | int last_seen_p = 0; |
| @@ -5594,7 +5568,7 @@ marginal_area_string (struct window *w, enum window_part part, | |||
| 5594 | 5568 | ||
| 5595 | #ifdef SIGWINCH | 5569 | #ifdef SIGWINCH |
| 5596 | 5570 | ||
| 5597 | SIGTYPE | 5571 | static SIGTYPE |
| 5598 | window_change_signal (int signalnum) /* If we don't have an argument, */ | 5572 | window_change_signal (int signalnum) /* If we don't have an argument, */ |
| 5599 | /* some compilers complain in signal calls. */ | 5573 | /* some compilers complain in signal calls. */ |
| 5600 | { | 5574 | { |