diff options
| author | Paul Eggert | 2011-06-10 13:05:21 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-10 13:05:21 -0700 |
| commit | 4b66faf3de2606b613dea58dd41e2926b6df3f10 (patch) | |
| tree | dcdf9889c601e7bbcca1d666c6cc3922e94859b6 /src | |
| parent | f7e13da36c982977ccfe6de1e43d8f8b3bb59c8f (diff) | |
| download | emacs-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/ChangeLog | 7 | ||||
| -rw-r--r-- | src/data.c | 3 | ||||
| -rw-r--r-- | src/image.c | 4 | ||||
| -rw-r--r-- | src/minibuf.c | 2 | ||||
| -rw-r--r-- | src/window.c | 5 | ||||
| -rw-r--r-- | src/window.h | 3 |
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 @@ | |||
| 1 | 2011-06-10 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-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; | |||
| 90 | Lisp_Object Qwindow; | 90 | Lisp_Object Qwindow; |
| 91 | static Lisp_Object Qfloat, Qwindow_configuration; | 91 | static Lisp_Object Qfloat, Qwindow_configuration; |
| 92 | static Lisp_Object Qprocess; | 92 | static Lisp_Object Qprocess; |
| 93 | Lisp_Object Qcompiled_function, Qbuffer, Qframe, Qvector; | 93 | static Lisp_Object Qcompiled_function, Qframe, Qvector; |
| 94 | Lisp_Object Qbuffer; | ||
| 94 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; | 95 | static Lisp_Object Qchar_table, Qbool_vector, Qhash_table; |
| 95 | static Lisp_Object Qsubrp, Qmany, Qunevalled; | 96 | static Lisp_Object Qsubrp, Qmany, Qunevalled; |
| 96 | Lisp_Object Qfont_spec, Qfont_entity, Qfont_object; | 97 | Lisp_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 | ||
| 7368 | Lisp_Object Qimagemagick; | 7368 | static Lisp_Object Qimagemagick; |
| 7369 | 7369 | ||
| 7370 | static int imagemagick_image_p (Lisp_Object); | 7370 | static int imagemagick_image_p (Lisp_Object); |
| 7371 | static int imagemagick_load (struct frame *, struct image *); | 7371 | static 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 | ||
| 7887 | Lisp_Object Qsvg; | 7887 | static 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 | ||
| 1898 | Lisp_Object Qmetadata; | 1898 | static Lisp_Object Qmetadata; |
| 1899 | extern Lisp_Object Qbuffer; | 1899 | extern Lisp_Object Qbuffer; |
| 1900 | 1900 | ||
| 1901 | DEFUN ("internal-complete-buffer", Finternal_complete_buffer, Sinternal_complete_buffer, 3, 3, 0, | 1901 | DEFUN ("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 *); |
| 84 | static Lisp_Object window_list_1 (Lisp_Object, Lisp_Object, Lisp_Object); | 84 | static Lisp_Object window_list_1 (Lisp_Object, Lisp_Object, Lisp_Object); |
| 85 | static int resize_window_check (struct window *, int); | ||
| 85 | static void resize_window_apply (struct window *, int); | 86 | static void resize_window_apply (struct window *, int); |
| 86 | static Lisp_Object select_window (Lisp_Object, Lisp_Object, int); | 87 | static 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 | ||
| 2635 | Lisp_Object | 2636 | static Lisp_Object |
| 2636 | resize_root_window (Lisp_Object window, Lisp_Object delta, Lisp_Object horizontal, Lisp_Object ignore) | 2637 | resize_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). */ |
| 3525 | int | 3526 | static int |
| 3526 | resize_window_check (struct window *w, int horflag) | 3527 | resize_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); | |||
| 924 | extern void syms_of_window (void); | 924 | extern void syms_of_window (void); |
| 925 | extern void keys_of_window (void); | 925 | extern void keys_of_window (void); |
| 926 | extern void resize_frame_windows (struct frame *, int, int); | 926 | extern void resize_frame_windows (struct frame *, int, int); |
| 927 | extern int resize_window_check (struct window *, int); | ||
| 928 | extern 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 */ |