modplug: declare constants as enum

Don't write CPP if you can write C.
This commit is contained in:
Max Kellermann 2009-01-24 19:15:50 +01:00
parent 24d4c2df92
commit b381638009

View File

@ -23,10 +23,12 @@
#include <glib.h> #include <glib.h>
#include <modplug.h> #include <modplug.h>
#define MODPLUG_FRAME_SIZE (4096) enum {
#define MODPLUG_PREALLOC_BLOCK (256*1024) MODPLUG_FRAME_SIZE = 4096,
#define MODPLUG_READ_BLOCK (128*1024) MODPLUG_PREALLOC_BLOCK = 256 * 1024,
#define MODPLUG_FILE_LIMIT (1024*1024*100) MODPLUG_READ_BLOCK = 128 * 1024,
MODPLUG_FILE_LIMIT = 100 * 1024 * 1024,
};
static GByteArray *mod_loadfile(struct decoder *decoder, struct input_stream *is) static GByteArray *mod_loadfile(struct decoder *decoder, struct input_stream *is)
{ {