Andrew Talbot : winemp3.acm: Declare some items static.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 5 07:45:04 CST 2007


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Fri Feb  2 17:25:09 2007 +0000

winemp3.acm: Declare some items static.

---

 dlls/winemp3.acm/layer1.c |    6 +++---
 dlls/winemp3.acm/layer2.c |    5 +++--
 dlls/winemp3.acm/layer3.c |    4 ++--
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/dlls/winemp3.acm/layer1.c b/dlls/winemp3.acm/layer1.c
index 001811b..45caf30 100644
--- a/dlls/winemp3.acm/layer1.c
+++ b/dlls/winemp3.acm/layer1.c
@@ -24,7 +24,7 @@
 
 #include "mpg123.h"
 
-void I_step_one(unsigned int balloc[], unsigned int scale_index[2][SBLIMIT],struct frame *fr)
+static void I_step_one(unsigned int balloc[], unsigned int scale_index[2][SBLIMIT],struct frame *fr)
 {
   unsigned int *ba=balloc;
   unsigned int *sca = (unsigned int *) scale_index;
@@ -64,8 +64,8 @@ void I_step_one(unsigned int balloc[], u
   }
 }
 
-void I_step_two(real fraction[2][SBLIMIT],unsigned int balloc[2*SBLIMIT],
-	unsigned int scale_index[2][SBLIMIT],struct frame *fr)
+static void I_step_two(real fraction[2][SBLIMIT],unsigned int balloc[2*SBLIMIT],
+                       unsigned int scale_index[2][SBLIMIT],struct frame *fr)
 {
   int i,n;
   int smpb[2*SBLIMIT]; /* values: 0-65535 */
diff --git a/dlls/winemp3.acm/layer2.c b/dlls/winemp3.acm/layer2.c
index be765f0..5e3fbdf 100644
--- a/dlls/winemp3.acm/layer2.c
+++ b/dlls/winemp3.acm/layer2.c
@@ -71,7 +71,7 @@ void init_layer2(void)
 }
 
 
-void II_step_one(unsigned int *bit_alloc,int *scale,struct frame *fr)
+static void II_step_one(unsigned int *bit_alloc,int *scale,struct frame *fr)
 {
     int stereo = fr->stereo-1;
     int sblimit = fr->II_sblimit;
@@ -144,7 +144,8 @@ void II_step_one(unsigned int *bit_alloc
 
 }
 
-void II_step_two(unsigned int *bit_alloc,real fraction[2][4][SBLIMIT],int *scale,struct frame *fr,int x1)
+static void II_step_two(unsigned int *bit_alloc, real fraction[2][4][SBLIMIT],
+                        int *scale, struct frame *fr, int x1)
 {
     int i,j,k,ba;
     int stereo = fr->stereo;
diff --git a/dlls/winemp3.acm/layer3.c b/dlls/winemp3.acm/layer3.c
index 35ad213..398a0a0 100644
--- a/dlls/winemp3.acm/layer3.c
+++ b/dlls/winemp3.acm/layer3.c
@@ -48,8 +48,8 @@ struct bandInfoStruct {
   short shortDiff[13];
 };
 
-int longLimit[9][23];
-int shortLimit[9][14];
+static int longLimit[9][23];
+static int shortLimit[9][14];
 
 static const struct bandInfoStruct bandInfo[9] = {
 




More information about the wine-cvs mailing list