diff options
| author | Paul Eggert | 2011-04-11 23:36:55 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-11 23:36:55 -0700 |
| commit | 5bf46f05111229b5b9e7b6435151bd0f84586eb4 (patch) | |
| tree | c757c531526c6121a20b51e951022238deca8b4a /src | |
| parent | 435f4c28d3921770b107973ecb45e36b719eb4c3 (diff) | |
| download | emacs-5bf46f05111229b5b9e7b6435151bd0f84586eb4.tar.gz emacs-5bf46f05111229b5b9e7b6435151bd0f84586eb4.zip | |
* dispnew.c: Make symbols static if they're not exported.
* dispextern.h (redraw_garbaged_frames, scrolling):
(increment_row_positions): Remove.
* dispnew.c (new_glyph_matrix, increment_row_positions, scrolling):
(delayed_size_change, glyph_matrix_count, glyph_pool_count):
Now static.
(redraw_garbaged_frames): Remove; unused.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/dispextern.h | 3 | ||||
| -rw-r--r-- | src/dispnew.c | 31 |
3 files changed, 17 insertions, 25 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 0e2bcacf3c5..572644bf1c7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2011-04-12 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-12 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * dispnew.c: Make symbols static if they're not exported. | ||
| 4 | * dispextern.h (redraw_garbaged_frames, scrolling): | ||
| 5 | (increment_row_positions): Remove. | ||
| 6 | * dispnew.c (new_glyph_matrix, increment_row_positions, scrolling): | ||
| 7 | (delayed_size_change, glyph_matrix_count, glyph_pool_count): | ||
| 8 | Now static. | ||
| 9 | (redraw_garbaged_frames): Remove; unused. | ||
| 10 | |||
| 3 | * xfaces.c: Make symbols static if they're not exported. | 11 | * xfaces.c: Make symbols static if they're not exported. |
| 4 | * dispextern.h (ascii_face_of_lisp_face, free_realized_face): | 12 | * dispextern.h (ascii_face_of_lisp_face, free_realized_face): |
| 5 | Remove decls. | 13 | Remove decls. |
diff --git a/src/dispextern.h b/src/dispextern.h index 6d89fe69334..eb5090343e6 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3229,11 +3229,9 @@ extern Lisp_Object marginal_area_string (struct window *, enum window_part, | |||
| 3229 | Lisp_Object *, | 3229 | Lisp_Object *, |
| 3230 | int *, int *, int *, int *); | 3230 | int *, int *, int *, int *); |
| 3231 | extern void redraw_frame (struct frame *); | 3231 | extern void redraw_frame (struct frame *); |
| 3232 | extern void redraw_garbaged_frames (void); | ||
| 3233 | extern void cancel_line (int, struct frame *); | 3232 | extern void cancel_line (int, struct frame *); |
| 3234 | extern void init_desired_glyphs (struct frame *); | 3233 | extern void init_desired_glyphs (struct frame *); |
| 3235 | extern int update_frame (struct frame *, int, int); | 3234 | extern int update_frame (struct frame *, int, int); |
| 3236 | extern int scrolling (struct frame *); | ||
| 3237 | extern void bitch_at_user (void); | 3235 | extern void bitch_at_user (void); |
| 3238 | void adjust_glyphs (struct frame *); | 3236 | void adjust_glyphs (struct frame *); |
| 3239 | void free_glyphs (struct frame *); | 3237 | void free_glyphs (struct frame *); |
| @@ -3249,7 +3247,6 @@ void rotate_matrix (struct glyph_matrix *, int, int, int); | |||
| 3249 | void increment_matrix_positions (struct glyph_matrix *, | 3247 | void increment_matrix_positions (struct glyph_matrix *, |
| 3250 | int, int, EMACS_INT, EMACS_INT); | 3248 | int, int, EMACS_INT, EMACS_INT); |
| 3251 | void blank_row (struct window *, struct glyph_row *, int); | 3249 | void blank_row (struct window *, struct glyph_row *, int); |
| 3252 | void increment_row_positions (struct glyph_row *, EMACS_INT, EMACS_INT); | ||
| 3253 | void enable_glyph_matrix_rows (struct glyph_matrix *, int, int, int); | 3250 | void enable_glyph_matrix_rows (struct glyph_matrix *, int, int, int); |
| 3254 | void clear_glyph_row (struct glyph_row *); | 3251 | void clear_glyph_row (struct glyph_row *); |
| 3255 | void prepare_desired_row (struct glyph_row *); | 3252 | void prepare_desired_row (struct glyph_row *); |
diff --git a/src/dispnew.c b/src/dispnew.c index 6e4c93d1676..78bd4bf6590 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -121,11 +121,12 @@ static int required_matrix_width (struct window *); | |||
| 121 | static void allocate_matrices_for_window_redisplay (struct window *); | 121 | static void allocate_matrices_for_window_redisplay (struct window *); |
| 122 | static int realloc_glyph_pool (struct glyph_pool *, struct dim); | 122 | static int realloc_glyph_pool (struct glyph_pool *, struct dim); |
| 123 | static void adjust_frame_glyphs (struct frame *); | 123 | static void adjust_frame_glyphs (struct frame *); |
| 124 | struct glyph_matrix *new_glyph_matrix (struct glyph_pool *); | 124 | static struct glyph_matrix *new_glyph_matrix (struct glyph_pool *); |
| 125 | static void free_glyph_matrix (struct glyph_matrix *); | 125 | static void free_glyph_matrix (struct glyph_matrix *); |
| 126 | static void adjust_glyph_matrix (struct window *, struct glyph_matrix *, | 126 | static void adjust_glyph_matrix (struct window *, struct glyph_matrix *, |
| 127 | int, int, struct dim); | 127 | int, int, struct dim); |
| 128 | static void change_frame_size_1 (struct frame *, int, int, int, int, int); | 128 | static void change_frame_size_1 (struct frame *, int, int, int, int, int); |
| 129 | static void increment_row_positions (struct glyph_row *, EMACS_INT, EMACS_INT); | ||
| 129 | static void swap_glyph_pointers (struct glyph_row *, struct glyph_row *); | 130 | static void swap_glyph_pointers (struct glyph_row *, struct glyph_row *); |
| 130 | #if GLYPH_DEBUG | 131 | #if GLYPH_DEBUG |
| 131 | static int glyph_row_slice_p (struct glyph_row *, struct glyph_row *); | 132 | static int glyph_row_slice_p (struct glyph_row *, struct glyph_row *); |
| @@ -163,6 +164,7 @@ static void mirror_line_dance (struct window *, int, int, int *, char *); | |||
| 163 | static int update_window_tree (struct window *, int); | 164 | static int update_window_tree (struct window *, int); |
| 164 | static int update_window (struct window *, int); | 165 | static int update_window (struct window *, int); |
| 165 | static int update_frame_1 (struct frame *, int, int); | 166 | static int update_frame_1 (struct frame *, int, int); |
| 167 | static int scrolling (struct frame *); | ||
| 166 | static void set_window_cursor_after_update (struct window *); | 168 | static void set_window_cursor_after_update (struct window *); |
| 167 | static void adjust_frame_glyphs_for_window_redisplay (struct frame *); | 169 | static void adjust_frame_glyphs_for_window_redisplay (struct frame *); |
| 168 | static void adjust_frame_glyphs_for_frame_redisplay (struct frame *); | 170 | static void adjust_frame_glyphs_for_frame_redisplay (struct frame *); |
| @@ -212,7 +214,7 @@ struct frame *last_nonminibuf_frame; | |||
| 212 | 214 | ||
| 213 | /* 1 means SIGWINCH happened when not safe. */ | 215 | /* 1 means SIGWINCH happened when not safe. */ |
| 214 | 216 | ||
| 215 | int delayed_size_change; | 217 | static int delayed_size_change; |
| 216 | 218 | ||
| 217 | /* 1 means glyph initialization has been completed at startup. */ | 219 | /* 1 means glyph initialization has been completed at startup. */ |
| 218 | 220 | ||
| @@ -234,8 +236,8 @@ struct glyph space_glyph; | |||
| 234 | /* Counts of allocated structures. These counts serve to diagnose | 236 | /* Counts of allocated structures. These counts serve to diagnose |
| 235 | memory leaks and double frees. */ | 237 | memory leaks and double frees. */ |
| 236 | 238 | ||
| 237 | int glyph_matrix_count; | 239 | static int glyph_matrix_count; |
| 238 | int glyph_pool_count; | 240 | static int glyph_pool_count; |
| 239 | 241 | ||
| 240 | /* If non-null, the frame whose frame matrices are manipulated. If | 242 | /* If non-null, the frame whose frame matrices are manipulated. If |
| 241 | null, window matrices are worked on. */ | 243 | null, window matrices are worked on. */ |
| @@ -383,7 +385,7 @@ safe_bcopy (const char *from, char *to, int size) | |||
| 383 | member `pool' of the glyph matrix structure returned is set to | 385 | member `pool' of the glyph matrix structure returned is set to |
| 384 | POOL, the structure is otherwise zeroed. */ | 386 | POOL, the structure is otherwise zeroed. */ |
| 385 | 387 | ||
| 386 | struct glyph_matrix * | 388 | static struct glyph_matrix * |
| 387 | new_glyph_matrix (struct glyph_pool *pool) | 389 | new_glyph_matrix (struct glyph_pool *pool) |
| 388 | { | 390 | { |
| 389 | struct glyph_matrix *result; | 391 | struct glyph_matrix *result; |
| @@ -1021,7 +1023,7 @@ blank_row (struct window *w, struct glyph_row *row, int y) | |||
| 1021 | the used count of the text area is zero. Such rows display line | 1023 | the used count of the text area is zero. Such rows display line |
| 1022 | ends. */ | 1024 | ends. */ |
| 1023 | 1025 | ||
| 1024 | void | 1026 | static void |
| 1025 | increment_row_positions (struct glyph_row *row, | 1027 | increment_row_positions (struct glyph_row *row, |
| 1026 | EMACS_INT delta, EMACS_INT delta_bytes) | 1028 | EMACS_INT delta, EMACS_INT delta_bytes) |
| 1027 | { | 1029 | { |
| @@ -3200,21 +3202,6 @@ DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "", | |||
| 3200 | } | 3202 | } |
| 3201 | 3203 | ||
| 3202 | 3204 | ||
| 3203 | /* This is used when frame_garbaged is set. Call Fredraw_frame on all | ||
| 3204 | visible frames marked as garbaged. */ | ||
| 3205 | |||
| 3206 | void | ||
| 3207 | redraw_garbaged_frames (void) | ||
| 3208 | { | ||
| 3209 | Lisp_Object tail, frame; | ||
| 3210 | |||
| 3211 | FOR_EACH_FRAME (tail, frame) | ||
| 3212 | if (FRAME_VISIBLE_P (XFRAME (frame)) | ||
| 3213 | && FRAME_GARBAGED_P (XFRAME (frame))) | ||
| 3214 | Fredraw_frame (frame); | ||
| 3215 | } | ||
| 3216 | |||
| 3217 | |||
| 3218 | 3205 | ||
| 3219 | /*********************************************************************** | 3206 | /*********************************************************************** |
| 3220 | Frame Update | 3207 | Frame Update |
| @@ -4818,7 +4805,7 @@ update_frame_1 (struct frame *f, int force_p, int inhibit_id_p) | |||
| 4818 | 4805 | ||
| 4819 | /* Do line insertions/deletions on frame F for frame-based redisplay. */ | 4806 | /* Do line insertions/deletions on frame F for frame-based redisplay. */ |
| 4820 | 4807 | ||
| 4821 | int | 4808 | static int |
| 4822 | scrolling (struct frame *frame) | 4809 | scrolling (struct frame *frame) |
| 4823 | { | 4810 | { |
| 4824 | int unchanged_at_top, unchanged_at_bottom; | 4811 | int unchanged_at_top, unchanged_at_bottom; |