diff options
author | Max Kellermann <max@duempel.org> | 2009-01-24 19:15:50 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-24 19:15:50 +0100 |
commit | b381638009922f545ea1bbd1f251a38cb6051e11 (patch) | |
tree | 5ddb2ea0d6c6876b029b3efb921c483628f73596 /src/decoder | |
parent | 24d4c2df92ed481a398c7a1fa224603fbd621161 (diff) | |
download | mpd-b381638009922f545ea1bbd1f251a38cb6051e11.tar.gz mpd-b381638009922f545ea1bbd1f251a38cb6051e11.tar.xz mpd-b381638009922f545ea1bbd1f251a38cb6051e11.zip |
modplug: declare constants as enum
Don't write CPP if you can write C.
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/modplug_plugin.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/decoder/modplug_plugin.c b/src/decoder/modplug_plugin.c index 9da92226d..308068447 100644 --- a/src/decoder/modplug_plugin.c +++ b/src/decoder/modplug_plugin.c @@ -23,10 +23,12 @@ #include <glib.h> #include <modplug.h> -#define MODPLUG_FRAME_SIZE (4096) -#define MODPLUG_PREALLOC_BLOCK (256*1024) -#define MODPLUG_READ_BLOCK (128*1024) -#define MODPLUG_FILE_LIMIT (1024*1024*100) +enum { + MODPLUG_FRAME_SIZE = 4096, + MODPLUG_PREALLOC_BLOCK = 256 * 1024, + MODPLUG_READ_BLOCK = 128 * 1024, + MODPLUG_FILE_LIMIT = 100 * 1024 * 1024, +}; static GByteArray *mod_loadfile(struct decoder *decoder, struct input_stream *is) { |