diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-08 01:12:44 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-08 01:12:44 +0100 |
commit | 3a233b827783151c4c08985224782f1dcce43a8f (patch) | |
tree | 5377813a1b3369d2700050df921ec0b33426b7f6 /src/demuxers/iff.h | |
parent | f12149f0ca2743e6f5f9d39ba53b27c306137597 (diff) | |
download | xine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.gz xine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.bz2 |
Mark various private arrays, structs & fn parameters as static and/or const.
Two of the modified files are headers, but each contains definitions as well as
declarations and is only ever used once.
Diffstat (limited to 'src/demuxers/iff.h')
-rw-r--r-- | src/demuxers/iff.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/demuxers/iff.h b/src/demuxers/iff.h index 9d4fb5abe..64f44fd94 100644 --- a/src/demuxers/iff.h +++ b/src/demuxers/iff.h @@ -118,7 +118,8 @@ #define HAMBITS_RED 2 /* modify red component */ #define HAMBITS_GREEN 3 /* modify green component */ -int bitplainoffeset[] = { 1, 2, 4, 8, +static const int bitplainoffeset[] = { + 1, 2, 4, 8, 16, 32, 64, 128, 1, 2, 4, 8, 16, 32, 64, 128, @@ -237,9 +238,9 @@ typedef struct { #define max_volume 65536 /* Unity = Fixed 1.0 = maximum volume */ -int8_t fibonacci[] = { -34, -21, -13, -8, -5, -3, -2, -1, 0, 1, 2, 3, 5, 8, 13, 21 }; +static const int8_t fibonacci[] = { -34, -21, -13, -8, -5, -3, -2, -1, 0, 1, 2, 3, 5, 8, 13, 21 }; -int8_t exponential[] = { -128, -64, -32, -16, -8, -4, -2, -1, 0, 1, 2, 4, 8, 16, 32, 64 }; +static const int8_t exponential[] = { -128, -64, -32, -16, -8, -4, -2, -1, 0, 1, 2, 4, 8, 16, 32, 64 }; typedef struct { uint32_t oneShotHiSamples; /* # samples in the high octave 1-shot part */ |