aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-11 23:36:55 -0700
committerPaul Eggert2011-04-11 23:36:55 -0700
commit5bf46f05111229b5b9e7b6435151bd0f84586eb4 (patch)
treec757c531526c6121a20b51e951022238deca8b4a /src
parent435f4c28d3921770b107973ecb45e36b719eb4c3 (diff)
downloademacs-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/ChangeLog8
-rw-r--r--src/dispextern.h3
-rw-r--r--src/dispnew.c31
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 @@
12011-04-12 Paul Eggert <eggert@cs.ucla.edu> 12011-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 *);
3231extern void redraw_frame (struct frame *); 3231extern void redraw_frame (struct frame *);
3232extern void redraw_garbaged_frames (void);
3233extern void cancel_line (int, struct frame *); 3232extern void cancel_line (int, struct frame *);
3234extern void init_desired_glyphs (struct frame *); 3233extern void init_desired_glyphs (struct frame *);
3235extern int update_frame (struct frame *, int, int); 3234extern int update_frame (struct frame *, int, int);
3236extern int scrolling (struct frame *);
3237extern void bitch_at_user (void); 3235extern void bitch_at_user (void);
3238void adjust_glyphs (struct frame *); 3236void adjust_glyphs (struct frame *);
3239void free_glyphs (struct frame *); 3237void free_glyphs (struct frame *);
@@ -3249,7 +3247,6 @@ void rotate_matrix (struct glyph_matrix *, int, int, int);
3249void increment_matrix_positions (struct glyph_matrix *, 3247void increment_matrix_positions (struct glyph_matrix *,
3250 int, int, EMACS_INT, EMACS_INT); 3248 int, int, EMACS_INT, EMACS_INT);
3251void blank_row (struct window *, struct glyph_row *, int); 3249void blank_row (struct window *, struct glyph_row *, int);
3252void increment_row_positions (struct glyph_row *, EMACS_INT, EMACS_INT);
3253void enable_glyph_matrix_rows (struct glyph_matrix *, int, int, int); 3250void enable_glyph_matrix_rows (struct glyph_matrix *, int, int, int);
3254void clear_glyph_row (struct glyph_row *); 3251void clear_glyph_row (struct glyph_row *);
3255void prepare_desired_row (struct glyph_row *); 3252void 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 *);
121static void allocate_matrices_for_window_redisplay (struct window *); 121static void allocate_matrices_for_window_redisplay (struct window *);
122static int realloc_glyph_pool (struct glyph_pool *, struct dim); 122static int realloc_glyph_pool (struct glyph_pool *, struct dim);
123static void adjust_frame_glyphs (struct frame *); 123static void adjust_frame_glyphs (struct frame *);
124struct glyph_matrix *new_glyph_matrix (struct glyph_pool *); 124static struct glyph_matrix *new_glyph_matrix (struct glyph_pool *);
125static void free_glyph_matrix (struct glyph_matrix *); 125static void free_glyph_matrix (struct glyph_matrix *);
126static void adjust_glyph_matrix (struct window *, struct glyph_matrix *, 126static void adjust_glyph_matrix (struct window *, struct glyph_matrix *,
127 int, int, struct dim); 127 int, int, struct dim);
128static void change_frame_size_1 (struct frame *, int, int, int, int, int); 128static void change_frame_size_1 (struct frame *, int, int, int, int, int);
129static void increment_row_positions (struct glyph_row *, EMACS_INT, EMACS_INT);
129static void swap_glyph_pointers (struct glyph_row *, struct glyph_row *); 130static void swap_glyph_pointers (struct glyph_row *, struct glyph_row *);
130#if GLYPH_DEBUG 131#if GLYPH_DEBUG
131static int glyph_row_slice_p (struct glyph_row *, struct glyph_row *); 132static 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 *);
163static int update_window_tree (struct window *, int); 164static int update_window_tree (struct window *, int);
164static int update_window (struct window *, int); 165static int update_window (struct window *, int);
165static int update_frame_1 (struct frame *, int, int); 166static int update_frame_1 (struct frame *, int, int);
167static int scrolling (struct frame *);
166static void set_window_cursor_after_update (struct window *); 168static void set_window_cursor_after_update (struct window *);
167static void adjust_frame_glyphs_for_window_redisplay (struct frame *); 169static void adjust_frame_glyphs_for_window_redisplay (struct frame *);
168static void adjust_frame_glyphs_for_frame_redisplay (struct frame *); 170static 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
215int delayed_size_change; 217static 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
237int glyph_matrix_count; 239static int glyph_matrix_count;
238int glyph_pool_count; 240static 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
386struct glyph_matrix * 388static struct glyph_matrix *
387new_glyph_matrix (struct glyph_pool *pool) 389new_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
1024void 1026static void
1025increment_row_positions (struct glyph_row *row, 1027increment_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
3206void
3207redraw_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
4821int 4808static int
4822scrolling (struct frame *frame) 4809scrolling (struct frame *frame)
4823{ 4810{
4824 int unchanged_at_top, unchanged_at_bottom; 4811 int unchanged_at_top, unchanged_at_bottom;