diff options
author | Kim Woelders <kim@woelders.dk> | 2021-12-20 21:45:33 +0100 |
---|---|---|
committer | Kim Woelders <kim@woelders.dk> | 2021-12-23 17:51:24 +0100 |
commit | 31d5eb6dbf4f9e4500b4892aec64e0571d08b70d (patch) | |
tree | 072615b3bf3a6c9b587ca35b025a23c3fef8e0d6 /src/lib | |
parent | 40b6498281467638012a5da87e96ba6d6dacb9ba (diff) | |
download | imlib2-31d5eb6dbf4f9e4500b4892aec64e0571d08b70d.tar.gz |
autofoo/loader cosmetics
Consistently place loaders in same order.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/loaders.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/src/lib/loaders.c b/src/lib/loaders.c index a2d83de..66a976a 100644 --- a/src/lib/loaders.c +++ b/src/lib/loaders.c @@ -23,17 +23,11 @@ typedef struct { static const char *const ext_argb[] = { "argb", NULL }; static const char *const ext_bmp[] = { "bmp", NULL }; -#ifdef BUILD_BZ2_LOADER -static const char *const ext_bz2[] = { "bz2", NULL }; -#endif static const char *const ext_ff[] = { "ff", NULL }; #ifdef BUILD_GIF_LOADER static const char *const ext_gif[] = { "gif", NULL }; #endif static const char *const ext_ico[] = { "ico", NULL }; -#ifdef BUILD_ID3_LOADER -static const char *const ext_id3[] = { "mp3", NULL }; -#endif #ifdef BUILD_JPEG_LOADER static const char *const ext_jpeg[] = { "jpg", "jpeg", "jfif", "jfi", NULL }; #endif @@ -52,23 +46,26 @@ static const char *const ext_webp[] = { "webp", NULL }; #endif static const char *const ext_xbm[] = { "xbm", NULL }; static const char *const ext_xpm[] = { "xpm", NULL }; + +#ifdef BUILD_BZ2_LOADER +static const char *const ext_bz2[] = { "bz2", NULL }; +#endif #ifdef BUILD_ZLIB_LOADER static const char *const ext_zlib[] = { "gz", NULL }; #endif + +#ifdef BUILD_ID3_LOADER +static const char *const ext_id3[] = { "mp3", NULL }; +#endif + static const KnownLoader loaders_known[] = { {"argb", ext_argb}, {"bmp", ext_bmp}, -#ifdef BUILD_BZ2_LOADER - {"bz2", ext_bz2}, -#endif {"ff", ext_ff}, #ifdef BUILD_GIF_LOADER {"gif", ext_gif}, #endif {"ico", ext_ico}, -#ifdef BUILD_ID3_LOADER - {"id3", ext_id3}, -#endif #ifdef BUILD_JPEG_LOADER {"jpeg", ext_jpeg}, #endif @@ -86,9 +83,15 @@ static const KnownLoader loaders_known[] = { #endif {"xbm", ext_xbm}, {"xpm", ext_xpm}, +#ifdef BUILD_BZ2_LOADER + {"bz2", ext_bz2}, +#endif #ifdef BUILD_ZLIB_LOADER {"zlib", ext_zlib}, #endif +#ifdef BUILD_ID3_LOADER + {"id3", ext_id3}, +#endif }; static int |