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 /src/image.c | |
| 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.
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 | ||