forked from len0rd/rockbox
mikmod plugin: make functions static when possible
Change-Id: Ic0102071318c55c19952029be6998ecf5f33eb98
This commit is contained in:
parent
cf1e54b21e
commit
c26ab37aca
23 changed files with 107 additions and 107 deletions
|
|
@ -116,7 +116,7 @@ static GDMNOTE *gdmbuf=NULL; /* pointer to a complete GDM pattern */
|
|||
|
||||
CHAR GDM_Version[]="General DigiMusic 1.xx";
|
||||
|
||||
int GDM_Test(void)
|
||||
static int GDM_Test(void)
|
||||
{
|
||||
/* test for gdm magic numbers */
|
||||
UBYTE id[4];
|
||||
|
|
@ -134,7 +134,7 @@ int GDM_Test(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int GDM_Init(void)
|
||||
static int GDM_Init(void)
|
||||
{
|
||||
if (!(gdmbuf=(GDMNOTE*)MikMod_malloc(32*64*sizeof(GDMNOTE)))) return 0;
|
||||
if (!(mh=(GDMHEADER*)MikMod_malloc(sizeof(GDMHEADER)))) return 0;
|
||||
|
|
@ -142,13 +142,13 @@ int GDM_Init(void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
void GDM_Cleanup(void)
|
||||
static void GDM_Cleanup(void)
|
||||
{
|
||||
MikMod_free(mh);
|
||||
MikMod_free(gdmbuf);
|
||||
}
|
||||
|
||||
int GDM_ReadPattern(void)
|
||||
static int GDM_ReadPattern(void)
|
||||
{
|
||||
int pos,flag,ch,i,maxch;
|
||||
GDMNOTE n;
|
||||
|
|
@ -200,7 +200,7 @@ int GDM_ReadPattern(void)
|
|||
return 1;
|
||||
}
|
||||
|
||||
UBYTE *GDM_ConvertTrack(GDMNOTE*tr)
|
||||
static UBYTE *GDM_ConvertTrack(GDMNOTE*tr)
|
||||
{
|
||||
int t,i=0;
|
||||
UBYTE note,ins,inf;
|
||||
|
|
@ -337,7 +337,7 @@ UBYTE *GDM_ConvertTrack(GDMNOTE*tr)
|
|||
return UniDup();
|
||||
}
|
||||
|
||||
int GDM_Load(int curious)
|
||||
static int GDM_Load(int curious)
|
||||
{
|
||||
int i,x,u,track;
|
||||
SAMPLE *q;
|
||||
|
|
@ -534,7 +534,7 @@ int GDM_Load(int curious)
|
|||
return 1;
|
||||
}
|
||||
|
||||
CHAR *GDM_LoadTitle(void)
|
||||
static CHAR *GDM_LoadTitle(void)
|
||||
{
|
||||
CHAR s[32];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue