aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-06-10 13:05:21 -0700
committerPaul Eggert2011-06-10 13:05:21 -0700
commit4b66faf3de2606b613dea58dd41e2926b6df3f10 (patch)
treedcdf9889c601e7bbcca1d666c6cc3922e94859b6 /src
parentf7e13da36c982977ccfe6de1e43d8f8b3bb59c8f (diff)
downloademacs-4b66faf3de2606b613dea58dd41e2926b6df3f10.tar.gz
emacs-4b66faf3de2606b613dea58dd41e2926b6df3f10.zip
Make identifiers static if they are not used in other modules.
* data.c (Qcompiled_function, Qframe, Qvector): * image.c (QimageMagick, Qsvg): * minibuf.c (Qmetadata): * window.c (resize_window_check, resize_root_window): Now static. * window.h (resize_window_check, resize_root_window): Remove decls.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/data.c3
-rw-r--r--src/image.c4
-rw-r--r--src/minibuf.c2
-rw-r--r--src/window.c5
-rw-r--r--src/window.h3
6 files changed, 15 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b0a3606ee5a..eb0d744f50f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
12011-06-10 Paul Eggert <eggert@cs.ucla.edu> 12011-06-10 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Make identifiers static if they are not used in other modules.
4 * data.c (Qcompiled_function, Qframe, Qvector):
5 * image.c (QimageMagick, Qsvg):
6 * minibuf.c (Qmetadata):
7 * window.c (resize_window_check, resize_root_window): Now static.
8 * window.h (resize_window_check, resize_root_window): Remove decls.
9
3 * window.c: Fix minor problems reported by GCC 4.6.0. 10 * window.c: Fix minor problems reported by GCC 4.6.0.
4 (window_deletion_count, delete_deletable_window): Remove; unused. 11 (window_deletion_count, delete_deletable_window): Remove; unused.
5 (window_body_lines): Now static. 12 (window_body_lines): Now static.
diff --git a/src/data.c b/src/data.c
index a41ffe7a1f6..57d7753e393 100644
--- a/src/data.c
+++ b/src/data.c
@@ -90,7 +90,8 @@ static Lisp_Object Qsymbol, Qstring, Qcons, Qmarker, Qoverlay;
90Lisp_Object Qwindow; 90Lisp_Object Qwindow;
91static Lisp_Object Qfloat, Qwindow_configuration; 91static Lisp_Object Qfloat, Qwindow_configuration;
92static Lisp_Object Qprocess; 92static Lisp_Object Qprocess;
93Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; 93static Lisp_Object Qcompiled_function, Qframe, Qvector;
94Lisp_Object Qbuffer;
94static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; 95static Lisp_Object Qchar_table, Qbool_vector, Qhash_table;
95static Lisp_Object Qsubrp, Qmany, Qunevalled; 96static Lisp_Object Qsubrp, Qmany, Qunevalled;
96Lisp_Object Qfont_spec, Qfont_entity, Qfont_object; 97Lisp_Object Qfont_spec, Qfont_entity, Qfont_object;
diff --git a/src/image.c b/src/image.c
index 3d1724492a0..8169a9098d8 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7365,7 +7365,7 @@ gif_load (struct frame *f, struct image *img)
7365***********************************************************************/ 7365***********************************************************************/
7366#if defined (HAVE_IMAGEMAGICK) 7366#if defined (HAVE_IMAGEMAGICK)
7367 7367
7368Lisp_Object Qimagemagick; 7368static Lisp_Object Qimagemagick;
7369 7369
7370static int imagemagick_image_p (Lisp_Object); 7370static int imagemagick_image_p (Lisp_Object);
7371static int imagemagick_load (struct frame *, struct image *); 7371static int imagemagick_load (struct frame *, struct image *);
@@ -7884,7 +7884,7 @@ static int svg_load_image (struct frame *, struct image *,
7884 7884
7885/* The symbol `svg' identifying images of this type. */ 7885/* The symbol `svg' identifying images of this type. */
7886 7886
7887Lisp_Object Qsvg; 7887static Lisp_Object Qsvg;
7888 7888
7889/* Indices of image specification fields in svg_format, below. */ 7889/* Indices of image specification fields in svg_format, below. */
7890 7890
diff --git a/src/minibuf.c b/src/minibuf.c
index 8f1987298b3..1b555035cfe 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1895,7 +1895,7 @@ the values STRING, PREDICATE and `lambda'. */)
1895 return Qt; 1895 return Qt;
1896} 1896}
1897 1897
1898Lisp_Object Qmetadata; 1898static Lisp_Object Qmetadata;
1899extern Lisp_Object Qbuffer; 1899extern Lisp_Object Qbuffer;
1900 1900
1901DEFUN ("internal-complete-buffer", Finternal_complete_buffer, Sinternal_complete_buffer, 3, 3, 0, 1901DEFUN ("internal-complete-buffer", Finternal_complete_buffer, Sinternal_complete_buffer, 3, 3, 0,
diff --git a/src/window.c b/src/window.c
index 3e43d8386b6..7a026b3a1c7 100644
--- a/src/window.c
+++ b/src/window.c
@@ -82,6 +82,7 @@ static int foreach_window_1 (struct window *,
82 int (* fn) (struct window *, void *), 82 int (* fn) (struct window *, void *),
83 void *); 83 void *);
84static Lisp_Object window_list_1 (Lisp_Object, Lisp_Object, Lisp_Object); 84static Lisp_Object window_list_1 (Lisp_Object, Lisp_Object, Lisp_Object);
85static int resize_window_check (struct window *, int);
85static void resize_window_apply (struct window *, int); 86static void resize_window_apply (struct window *, int);
86static Lisp_Object select_window (Lisp_Object, Lisp_Object, int); 87static Lisp_Object select_window (Lisp_Object, Lisp_Object, int);
87 88
@@ -2632,7 +2633,7 @@ selected frame and no others. */)
2632 return Qnil; 2633 return Qnil;
2633} 2634}
2634 2635
2635Lisp_Object 2636static Lisp_Object
2636resize_root_window (Lisp_Object window, Lisp_Object delta, Lisp_Object horizontal, Lisp_Object ignore) 2637resize_root_window (Lisp_Object window, Lisp_Object delta, Lisp_Object horizontal, Lisp_Object ignore)
2637{ 2638{
2638 return call4 (Qresize_root_window, window, delta, horizontal, ignore); 2639 return call4 (Qresize_root_window, window, delta, horizontal, ignore);
@@ -3522,7 +3523,7 @@ Note: This function does not operate on any subwindows of WINDOW. */)
3522 Note: This function does not check any of `window-fixed-size-p', 3523 Note: This function does not check any of `window-fixed-size-p',
3523 `window-min-height' or `window-min-width'. It does check that window 3524 `window-min-height' or `window-min-width'. It does check that window
3524 sizes do not drop below one line (two columns). */ 3525 sizes do not drop below one line (two columns). */
3525int 3526static int
3526resize_window_check (struct window *w, int horflag) 3527resize_window_check (struct window *w, int horflag)
3527{ 3528{
3528 struct window *c; 3529 struct window *c;
diff --git a/src/window.h b/src/window.h
index 87d0dc8fb23..1ebc99055a5 100644
--- a/src/window.h
+++ b/src/window.h
@@ -924,9 +924,6 @@ extern void init_window (void);
924extern void syms_of_window (void); 924extern void syms_of_window (void);
925extern void keys_of_window (void); 925extern void keys_of_window (void);
926extern void resize_frame_windows (struct frame *, int, int); 926extern void resize_frame_windows (struct frame *, int, int);
927extern int resize_window_check (struct window *, int);
928extern Lisp_Object resize_root_window (Lisp_Object, Lisp_Object, Lisp_Object,
929 Lisp_Object);
930 927
931 928
932#endif /* not WINDOW_H_INCLUDED */ 929#endif /* not WINDOW_H_INCLUDED */