diff options
| author | Chong Yidong | 2012-09-22 22:10:24 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-09-22 22:10:24 +0800 |
| commit | bb4d86b40c61443608280df3d0668d44845177a5 (patch) | |
| tree | 421c8ddc18fd1f329b1906cea10f6cb60d389b37 /src/ChangeLog | |
| parent | 287d74553b1116a8e3e97e399e231c0423429aca (diff) | |
| download | emacs-bb4d86b40c61443608280df3d0668d44845177a5.tar.gz emacs-bb4d86b40c61443608280df3d0668d44845177a5.zip | |
Refactor image-type loading.
* src/dispextern.h (struct image_type): Add new slot, storing a type
initialization function.
* src/image.c (define_image_type): Call the image initializer function
if it is defined. Arguments and return value changed.
(valid_image_p, make_image): Callers changed.
(xbm_type, xpm_type, pbm_type, png_type, jpeg_type, tiff_type)
(gif_type, imagemagick_type, svg_type, gs_type): Add
initialization functions.
(Finit_image_library): Call lookup_image_type.
(CHECK_LIB_AVAILABLE): Macro deleted.
(lookup_image_type): Call define_image_type here, rather than via
Finit_image_library, and without using CHECK_LIB_AVAILABLE.
(syms_of_image): Move define_image_type calls for xbm_type and
pbm_type to lookup_image_type.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b69d4bb7113..b2f33494b7c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2012-09-22 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * dispextern.h (struct image_type): Add new slot, storing a type | ||
| 4 | initialization function. | ||
| 5 | |||
| 6 | * image.c (define_image_type): Call the image initializer function | ||
| 7 | if it is defined. Arguments and return value changed. | ||
| 8 | (valid_image_p, make_image): Callers changed. | ||
| 9 | (xbm_type, xpm_type, pbm_type, png_type, jpeg_type, tiff_type) | ||
| 10 | (gif_type, imagemagick_type, svg_type, gs_type): Add | ||
| 11 | initialization functions. | ||
| 12 | (Finit_image_library): Call lookup_image_type. | ||
| 13 | (CHECK_LIB_AVAILABLE): Macro deleted. | ||
| 14 | (lookup_image_type): Call define_image_type here, rather than via | ||
| 15 | Finit_image_library, and without using CHECK_LIB_AVAILABLE. | ||
| 16 | (syms_of_image): Move define_image_type calls for xbm_type and | ||
| 17 | pbm_type to lookup_image_type. | ||
| 18 | |||
| 1 | 2012-09-22 Eli Zaretskii <eliz@gnu.org> | 19 | 2012-09-22 Eli Zaretskii <eliz@gnu.org> |
| 2 | 20 | ||
| 3 | * keyboard.c (timer_check_2): Move calculation of 'timers' and | 21 | * keyboard.c (timer_check_2): Move calculation of 'timers' and |