Browse Source

compiledict.c: Fix -Wmissing-prototypes warnings.

master
Reece H. Dunn 7 years ago
parent
commit
7f42e0aaca
3 changed files with 5 additions and 5 deletions
  1. 2
    2
      src/libespeak-ng/compiledict.c
  2. 0
    3
      src/libespeak-ng/dictionary.c
  3. 3
    0
      src/libespeak-ng/translate.h

+ 2
- 2
src/libespeak-ng/compiledict.c View File



#define N_RULES 3000 // max rules for each group #define N_RULES 3000 // max rules for each group


int isHexDigit(int c)
static int isHexDigit(int c)
{ {
if ((c >= '0') && (c <= '9')) if ((c >= '0') && (c <= '9'))
return c - '0'; return c - '0';
return prule; return prule;
} }


int __cdecl string_sorter(char **a, char **b)
static int __cdecl string_sorter(char **a, char **b)
{ {
char *pa, *pb; char *pa, *pb;
int ix; int ix;

+ 0
- 3
src/libespeak-ng/dictionary.c View File

int dictionary_skipwords; int dictionary_skipwords;
char dictionary_name[40]; char dictionary_name[40];


extern void print_dictionary_flags(unsigned int *flags, char *buf, int buf_len);
extern char *DecodeRule(const char *group_chars, int group_length, char *rule, int control);

// accented characters which indicate (in some languages) the start of a separate syllable // accented characters which indicate (in some languages) the start of a separate syllable
static const unsigned short diereses_list[7] = { 0xe4, 0xeb, 0xef, 0xf6, 0xfc, 0xff, 0 }; static const unsigned short diereses_list[7] = { 0xe4, 0xeb, 0xef, 0xf6, 0xfc, 0xff, 0 };



+ 3
- 0
src/libespeak-ng/translate.h View File

int LookupDictList(Translator *tr, char **wordptr, char *ph_out, unsigned int *flags, int end_flags, WORD_TAB *wtab); int LookupDictList(Translator *tr, char **wordptr, char *ph_out, unsigned int *flags, int end_flags, WORD_TAB *wtab);
int HashDictionary(const char *string); int HashDictionary(const char *string);


void print_dictionary_flags(unsigned int *flags, char *buf, int buf_len);
char *DecodeRule(const char *group_chars, int group_length, char *rule, int control);

void MakePhonemeList(Translator *tr, int post_pause, int new_sentence); void MakePhonemeList(Translator *tr, int post_pause, int new_sentence);
int ChangePhonemes_ru(Translator *tr, PHONEME_LIST2 *phlist, int n_ph, int index, PHONEME_TAB *ph, CHANGEPH *ch); int ChangePhonemes_ru(Translator *tr, PHONEME_LIST2 *phlist, int n_ph, int index, PHONEME_TAB *ph, CHANGEPH *ch);
void ApplySpecialAttribute2(Translator *tr, char *phonemes, int dict_flags); void ApplySpecialAttribute2(Translator *tr, char *phonemes, int dict_flags);

Loading…
Cancel
Save