mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
code cleanup: make LookupFlags() static
This commit is contained in:
@@ -43,6 +43,8 @@
|
||||
#include "synthesize.h" // for STRESS_IS_PRIMARY, phoneme...
|
||||
#include "translate.h" // for Translator, utf8_in, LANGU...
|
||||
|
||||
static int LookupFlags(Translator *tr, const char *word, unsigned int **flags_out);
|
||||
|
||||
typedef struct {
|
||||
int points;
|
||||
const char *phonemes;
|
||||
@@ -2904,7 +2906,7 @@ int Lookup(Translator *tr, const char *word, char *ph_out)
|
||||
return flags0;
|
||||
}
|
||||
|
||||
int LookupFlags(Translator *tr, const char *word, unsigned int **flags_out)
|
||||
static int LookupFlags(Translator *tr, const char *word, unsigned int **flags_out)
|
||||
{
|
||||
char buf[100];
|
||||
static unsigned int flags[2];
|
||||
|
||||
@@ -47,7 +47,6 @@ int TranslateRules(Translator *tr, char *p_start, char *phonemes, int ph_size, c
|
||||
int TransposeAlphabet(Translator *tr, char *text);
|
||||
int Lookup(Translator *tr, const char *word, char *ph_out);
|
||||
int LookupDictList(Translator *tr, char **wordptr, char *ph_out, unsigned int *flags, int end_flags, WORD_TAB *wtab);
|
||||
int LookupFlags(Translator *tr, const char *word, unsigned int **flags_out);
|
||||
int RemoveEnding(Translator *tr, char *word, int end_type, char *word_copy);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user