Alexandre Julliard : winemp3.acm: Make some variables static.

Alexandre Julliard julliard at winehq.org
Tue Dec 2 11:02:03 CST 2008


Module: wine
Branch: master
Commit: 14e2cd90fc8083dc67f98884a275623c3c919858
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=14e2cd90fc8083dc67f98884a275623c3c919858

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Dec  2 15:26:08 2008 +0100

winemp3.acm: Make some variables static.

---

 dlls/winemp3.acm/common.c |    6 +++---
 dlls/winemp3.acm/mpg123.h |    3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/dlls/winemp3.acm/common.c b/dlls/winemp3.acm/common.c
index 2943fd8..91ba51a 100644
--- a/dlls/winemp3.acm/common.c
+++ b/dlls/winemp3.acm/common.c
@@ -32,7 +32,7 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(mpeg3);
 
-const struct parameter param = { 1 , 1 , 0 , 0 };
+static const struct parameter param = { 1 , 1 , 0 , 0 };
 
 static const int tabsel_123[2][3][16] = {
    { {0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,},
@@ -44,7 +44,7 @@ static const int tabsel_123[2][3][16] = {
      {0,8,16,24,32,40,48,56,64,80,96,112,128,144,160,} }
 };
 
-const long freqs[9] = { 44100, 48000, 32000,
+static const long freqs[9] = { 44100, 48000, 32000,
                   22050, 24000, 16000 ,
                   11025 , 12000 , 8000 };
 
@@ -56,7 +56,7 @@ int pcm_point = 0;
 
 #define HDRCMPMASK 0xfffffd00
 
-int head_check(unsigned long head)
+static int head_check(unsigned long head)
 {
     if( (head & 0xffe00000) != 0xffe00000)
 	return FALSE;
diff --git a/dlls/winemp3.acm/mpg123.h b/dlls/winemp3.acm/mpg123.h
index 1648408..a798eb7 100644
--- a/dlls/winemp3.acm/mpg123.h
+++ b/dlls/winemp3.acm/mpg123.h
@@ -161,9 +161,6 @@ extern void make_decode_tables(long scale);
 extern void dct64(real *,real *,real *);
 
 extern unsigned char *conv16to8;
-extern const long freqs[9];
 extern real muls[27][64];
 extern real decwin[512+32];
 extern real *pnts[5];
-
-extern const struct parameter param;




More information about the wine-cvs mailing list