diff options
| author | Paul Eggert | 2011-04-13 16:44:57 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-13 16:44:57 -0700 |
| commit | cd44d2ebb43eb738eca182841c903f8419cd6b5b (patch) | |
| tree | f8b7a6259790c61c266edb427309005a2149ddaa | |
| parent | ad9a7a06d48b0be0b1159db566c2760d951d62c1 (diff) | |
| download | emacs-cd44d2ebb43eb738eca182841c903f8419cd6b5b.tar.gz emacs-cd44d2ebb43eb738eca182841c903f8419cd6b5b.zip | |
* image.c: Make symbols static if they're not exported.
* dispextern.h (x_create_bitmap_from_xpm_data): Do not declare
if USE_GTK.
* image.c (x_create_bitmap_from_xpm_data): Do not define if USE_GTK.
(xpm_color_cache, ct_table, ct_colors_allocated): Now static.
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/dispextern.h | 2 | ||||
| -rw-r--r-- | src/image.c | 8 |
3 files changed, 11 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a83bfbb2f46..1ede517243f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2011-04-13 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * image.c: Make symbols static if they're not exported. | ||
| 4 | * dispextern.h (x_create_bitmap_from_xpm_data): Do not declare | ||
| 5 | if USE_GTK. | ||
| 6 | * image.c (x_create_bitmap_from_xpm_data): Do not define if USE_GTK. | ||
| 7 | (xpm_color_cache, ct_table, ct_colors_allocated): Now static. | ||
| 8 | |||
| 3 | * fringe.c (standard_bitmaps): Now static. | 9 | * fringe.c (standard_bitmaps): Now static. |
| 4 | (max_used_fringe_bitmap): Now static, unless HAVE_NS. | 10 | (max_used_fringe_bitmap): Now static, unless HAVE_NS. |
| 5 | 11 | ||
diff --git a/src/dispextern.h b/src/dispextern.h index d57aaee3e7d..438db97c6a5 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3082,7 +3082,7 @@ extern void x_reference_bitmap (struct frame *, int); | |||
| 3082 | extern int x_create_bitmap_from_data (struct frame *, char *, | 3082 | extern int x_create_bitmap_from_data (struct frame *, char *, |
| 3083 | unsigned int, unsigned int); | 3083 | unsigned int, unsigned int); |
| 3084 | extern int x_create_bitmap_from_file (struct frame *, Lisp_Object); | 3084 | extern int x_create_bitmap_from_file (struct frame *, Lisp_Object); |
| 3085 | #if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) | 3085 | #if defined HAVE_XPM && defined HAVE_X_WINDOWS && !defined USE_GTK |
| 3086 | extern int x_create_bitmap_from_xpm_data (struct frame *f, const char **bits); | 3086 | extern int x_create_bitmap_from_xpm_data (struct frame *f, const char **bits); |
| 3087 | #endif | 3087 | #endif |
| 3088 | #ifndef x_destroy_bitmap | 3088 | #ifndef x_destroy_bitmap |
diff --git a/src/image.c b/src/image.c index f1c3d5d84f0..11c6aa8a17d 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -3096,7 +3096,7 @@ struct xpm_cached_color | |||
| 3096 | size. */ | 3096 | size. */ |
| 3097 | 3097 | ||
| 3098 | #define XPM_COLOR_CACHE_BUCKETS 1001 | 3098 | #define XPM_COLOR_CACHE_BUCKETS 1001 |
| 3099 | struct xpm_cached_color **xpm_color_cache; | 3099 | static struct xpm_cached_color **xpm_color_cache; |
| 3100 | 3100 | ||
| 3101 | /* Initialize the color cache. */ | 3101 | /* Initialize the color cache. */ |
| 3102 | 3102 | ||
| @@ -3312,7 +3312,7 @@ xpm_image_p (Lisp_Object object) | |||
| 3312 | 3312 | ||
| 3313 | #endif /* HAVE_XPM || HAVE_NS */ | 3313 | #endif /* HAVE_XPM || HAVE_NS */ |
| 3314 | 3314 | ||
| 3315 | #if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) | 3315 | #if defined HAVE_XPM && defined HAVE_X_WINDOWS && !defined USE_GTK |
| 3316 | int | 3316 | int |
| 3317 | x_create_bitmap_from_xpm_data (struct frame *f, const char **bits) | 3317 | x_create_bitmap_from_xpm_data (struct frame *f, const char **bits) |
| 3318 | { | 3318 | { |
| @@ -4136,11 +4136,11 @@ struct ct_color | |||
| 4136 | 4136 | ||
| 4137 | /* The color hash table. */ | 4137 | /* The color hash table. */ |
| 4138 | 4138 | ||
| 4139 | struct ct_color **ct_table; | 4139 | static struct ct_color **ct_table; |
| 4140 | 4140 | ||
| 4141 | /* Number of entries in the color table. */ | 4141 | /* Number of entries in the color table. */ |
| 4142 | 4142 | ||
| 4143 | int ct_colors_allocated; | 4143 | static int ct_colors_allocated; |
| 4144 | 4144 | ||
| 4145 | /* Initialize the color table. */ | 4145 | /* Initialize the color table. */ |
| 4146 | 4146 | ||