Browse Source

code cleanup: make LookupFlags() static

master
Juho Hiltunen 2 years ago
parent
commit
741bea9510
2 changed files with 3 additions and 2 deletions
  1. 3
    1
      src/libespeak-ng/dictionary.c
  2. 0
    1
      src/libespeak-ng/dictionary.h

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

#include "synthesize.h" // for STRESS_IS_PRIMARY, phoneme... #include "synthesize.h" // for STRESS_IS_PRIMARY, phoneme...
#include "translate.h" // for Translator, utf8_in, LANGU... #include "translate.h" // for Translator, utf8_in, LANGU...


static int LookupFlags(Translator *tr, const char *word, unsigned int **flags_out);

typedef struct { typedef struct {
int points; int points;
const char *phonemes; const char *phonemes;
return flags0; 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]; char buf[100];
static unsigned int flags[2]; static unsigned int flags[2];

+ 0
- 1
src/libespeak-ng/dictionary.h View File

int TransposeAlphabet(Translator *tr, char *text); int TransposeAlphabet(Translator *tr, char *text);
int Lookup(Translator *tr, const char *word, char *ph_out); 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 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); int RemoveEnding(Translator *tr, char *word, int end_type, char *word_copy);


#ifdef __cplusplus #ifdef __cplusplus

Loading…
Cancel
Save