Revert "code cleanup: change global int current_phoneme table to static"

This works around issue 915
This commit is contained in:
Łukasz Golonka
2021-06-07 17:49:20 +03:00
committed by Juho Hiltunen
parent 4d0a4df86b
commit 289d9d865e
4 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -45,6 +45,7 @@ const int version_phdata = 0x014801;
// copy the current phoneme table into here
int n_phoneme_tab;
int current_phoneme_table;
PHONEME_TAB *phoneme_tab[N_PHONEME_TAB];
unsigned short *phoneme_index = NULL;
@@ -346,12 +347,12 @@ static void SetUpPhonemeTable(int number)
}
}
int SelectPhonemeTable(int number)
void SelectPhonemeTable(int number)
{
n_phoneme_tab = 0;
SetUpPhonemeTable(number); // recursively for included phoneme tables
n_phoneme_tab++;
return number;
current_phoneme_table = number;
}
int LookupPhonemeTable(const char *name)