aboutsummaryrefslogtreecommitdiffstats
path: root/src/scroll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scroll.c')
-rw-r--r--src/scroll.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/scroll.c b/src/scroll.c
index 5363ec3be42..410420df0b8 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -244,12 +244,7 @@ calculate_scrolling (frame, matrix, window_size, lines_below,
244 of lines. */ 244 of lines. */
245 245
246static void 246static void
247do_scrolling (frame, current_matrix, matrix, window_size, unchanged_at_top) 247do_scrolling (struct frame *frame, struct glyph_matrix *current_matrix, struct matrix_elt *matrix, int window_size, int unchanged_at_top)
248 struct frame *frame;
249 struct glyph_matrix *current_matrix;
250 struct matrix_elt *matrix;
251 int window_size;
252 int unchanged_at_top;
253{ 248{
254 struct matrix_elt *p; 249 struct matrix_elt *p;
255 int i, j, k; 250 int i, j, k;
@@ -854,9 +849,7 @@ scrolling_1 (frame, window_size, unchanged_at_top, unchanged_at_bottom,
854 such a line will have little weight. */ 849 such a line will have little weight. */
855 850
856int 851int
857scrolling_max_lines_saved (start, end, oldhash, newhash, cost) 852scrolling_max_lines_saved (int start, int end, int *oldhash, int *newhash, int *cost)
858 int start, end;
859 int *oldhash, *newhash, *cost;
860{ 853{
861 struct { int hash; int count; } lines[01000]; 854 struct { int hash; int count; } lines[01000];
862 register int i, h; 855 register int i, h;
@@ -909,9 +902,7 @@ scrolling_max_lines_saved (start, end, oldhash, newhash, cost)
909 to scroll_frame_lines to perform this scrolling. */ 902 to scroll_frame_lines to perform this scrolling. */
910 903
911int 904int
912scroll_cost (frame, from, to, amount) 905scroll_cost (FRAME_PTR frame, int from, int to, int amount)
913 FRAME_PTR frame;
914 int from, to, amount;
915{ 906{
916 /* Compute how many lines, at bottom of frame, 907 /* Compute how many lines, at bottom of frame,
917 will not be involved in actual motion. */ 908 will not be involved in actual motion. */
@@ -948,11 +939,7 @@ scroll_cost (frame, from, to, amount)
948 overhead and multiply factor values */ 939 overhead and multiply factor values */
949 940
950static void 941static void
951line_ins_del (frame, ov1, pf1, ovn, pfn, ov, mf) 942line_ins_del (FRAME_PTR frame, int ov1, int pf1, int ovn, int pfn, register int *ov, register int *mf)
952 FRAME_PTR frame;
953 int ov1, ovn;
954 int pf1, pfn;
955 register int *ov, *mf;
956{ 943{
957 register int i; 944 register int i;
958 register int frame_lines = FRAME_LINES (frame); 945 register int frame_lines = FRAME_LINES (frame);