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

@@ -762,7 +762,7 @@ static int group3_ix;

#define N_RULES 3000 // max rules for each group

int isHexDigit(int c)
static int isHexDigit(int c)
{
if ((c >= '0') && (c <= '9'))
return c - '0';
@@ -1169,7 +1169,7 @@ static char *compile_rule(char *input)
return prule;
}

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

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

@@ -40,9 +40,6 @@
int dictionary_skipwords;
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
static const unsigned short diereses_list[7] = { 0xe4, 0xeb, 0xef, 0xf6, 0xfc, 0xff, 0 };


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

@@ -749,6 +749,9 @@ int LoadDictionary(Translator *tr, const char *name, int no_error);
int LookupDictList(Translator *tr, char **wordptr, char *ph_out, unsigned int *flags, int end_flags, WORD_TAB *wtab);
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);
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);

Loading…
Cancel
Save