Browse Source

Remove the unused ph_sorter function in compiledata.c

master
Reece H. Dunn 9 years ago
parent
commit
4ec02683f1
1 changed files with 0 additions and 24 deletions
  1. 0
    24
      src/libespeak-ng/compiledata.c

+ 0
- 24
src/libespeak-ng/compiledata.c View File

#endif #endif




static int ph_sorter(char **a, char **b)
{
int ix;
int t1, t2;
char mnem1[6];

PHONEME_TAB *p1 = (PHONEME_TAB *)(*a);
PHONEME_TAB *p2 = (PHONEME_TAB *)(*b);

t1 = p1->type;
if(t1 > phVOWEL) t1 = phVOWEL+1;

t2 = p2->type;
if(t2 > phVOWEL) t2 = phVOWEL+1;

if((ix = t1 - t2) != 0)
return(ix);

strcpy(mnem1,WordToString(p1->mnemonic));
return(strcasecmp(mnem1,WordToString(p2->mnemonic)));
}



static void error(const char *format, const char *string) static void error(const char *format, const char *string)
{ {
if(string==NULL) if(string==NULL)

Loading…
Cancel
Save