From a46830b2325288f221585feb0325aedf57cab437 Mon Sep 17 00:00:00 2001 From: DRC Date: Tue, 23 Nov 2010 18:00:46 +0000 Subject: [PATCH] Eliminate spurious global symbols git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@303 632fc199-4ca6-4c93-a231-07263d6284db --- jccolor.c | 6 +++--- jchuff.c | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/jccolor.c b/jccolor.c index 2e2bfd2..fe979b2 100644 --- a/jccolor.c +++ b/jccolor.c @@ -83,7 +83,7 @@ typedef my_color_converter * my_cconvert_ptr; #if BITS_IN_JSAMPLE == 8 -const unsigned char red_lut[256] = { +static const unsigned char red_lut[256] = { 0 , 0 , 1 , 1 , 1 , 1 , 2 , 2 , 2 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 5 , 5 , 5 , 6 , 6 , 6 , 7 , 7 , 7 , 7 , 8 , 8 , 8 , 9 , 9 , 9 , 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, @@ -102,7 +102,7 @@ const unsigned char red_lut[256] = { 72, 72, 72, 73, 73, 73, 74, 74, 74, 74, 75, 75, 75, 76, 76, 76 }; -const unsigned char green_lut[256] = { +static const unsigned char green_lut[256] = { 0 , 1 , 1 , 2 , 2 , 3 , 4 , 4 , 5 , 5 , 6 , 6 , 7 , 8 , 8 , 9 , 9 , 10 , 11 , 11 , 12 , 12 , 13 , 14 , 14 , 15 , 15 , 16 , 16 , 17 , 18 , 18 , 19 , 19 , 20 , 21 , @@ -127,7 +127,7 @@ const unsigned char green_lut[256] = { 148, 149, 149, 150 }; -const unsigned char blue_lut[256] = { +static const unsigned char blue_lut[256] = { 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , 5 , diff --git a/jchuff.c b/jchuff.c index b05c8e7..8a46b98 100644 --- a/jchuff.c +++ b/jchuff.c @@ -36,7 +36,7 @@ #include static unsigned char jpeg_first_bit_table[65536]; -int jpeg_first_bit_table_init=0; +static int jpeg_first_bit_table_init=0; #ifndef min #define min(a,b) ((a)<(b)?(a):(b)) @@ -423,8 +423,6 @@ dump_buffer (working_state * state) CHECKBUF15() \ } -int _max=0; - #if __WORDSIZE==64 || defined(_WIN64) #define DUMP_VALUE(ht, codevalue, t, nbits) { \ -- 2.40.0