summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/sid.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-11 21:40:51 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-11 21:40:51 +0100
commit2a3e1628a50b9de7c1462ee95eb79937795f5409 (patch)
tree3c2c965007a71c4895a65d8a91252b9ce2255719 /lib/rbcodec/codecs/sid.c
parent85c98bc63c6635fe9e337178f23faa9c0ec3f9fb (diff)
downloadrockbox-2a3e1628a50b9de7c1462ee95eb79937795f5409.tar.gz
rockbox-2a3e1628a50b9de7c1462ee95eb79937795f5409.zip
Limit more variables to file scope
Change-Id: I30219d626316776eb73b4205d63376fa3dbc6361
Diffstat (limited to 'lib/rbcodec/codecs/sid.c')
-rw-r--r--lib/rbcodec/codecs/sid.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/rbcodec/codecs/sid.c b/lib/rbcodec/codecs/sid.c
index 6e39d3f759..3c370961c7 100644
--- a/lib/rbcodec/codecs/sid.c
+++ b/lib/rbcodec/codecs/sid.c
@@ -155,27 +155,27 @@ struct sidflt {
155}; 155};
156 156
157/* ------------------------ pseudo-constants (depending on mixing freq) */ 157/* ------------------------ pseudo-constants (depending on mixing freq) */
158int mixing_frequency IDATA_ATTR; 158static int mixing_frequency IDATA_ATTR;
159unsigned long freqmul IDATA_ATTR; 159static unsigned long freqmul IDATA_ATTR;
160int filtmul IDATA_ATTR; 160static int filtmul IDATA_ATTR;
161#ifndef ROCKBOX 161#ifndef ROCKBOX
162unsigned long attacks [16] IDATA_ATTR; 162unsigned long attacks [16] IDATA_ATTR;
163unsigned long releases[16] IDATA_ATTR; 163unsigned long releases[16] IDATA_ATTR;
164#endif 164#endif
165 165
166/* ------------------------------------------------------------ globals */ 166/* ------------------------------------------------------------ globals */
167struct s6581 sid IDATA_ATTR; 167static struct s6581 sid IDATA_ATTR;
168struct sidosc osc[3] IDATA_ATTR; 168static struct sidosc osc[3] IDATA_ATTR;
169struct sidflt filter IDATA_ATTR; 169static struct sidflt filter IDATA_ATTR;
170 170
171/* ------------------------------------------------------ C64 Emu Stuff */ 171/* ------------------------------------------------------ C64 Emu Stuff */
172unsigned char bval IDATA_ATTR; 172static unsigned char bval IDATA_ATTR;
173unsigned short wval IDATA_ATTR; 173static unsigned short wval IDATA_ATTR;
174/* -------------------------------------------------- Register & memory */ 174/* -------------------------------------------------- Register & memory */
175unsigned char a,x,y,s,p IDATA_ATTR; 175static unsigned char a,x,y,s,p IDATA_ATTR;
176unsigned short pc IDATA_ATTR; 176static unsigned short pc IDATA_ATTR;
177 177
178unsigned char memory[65536]; 178static unsigned char memory[65536];
179 179
180/* ----------------------------------------- Variables for sample stuff */ 180/* ----------------------------------------- Variables for sample stuff */
181static int sample_active IDATA_ATTR; 181static int sample_active IDATA_ATTR;