Browse Source

cleanup: remove code duplication by using SetPlist2()

master
Juho Hiltunen 2 years ago
parent
commit
ef1b562714
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      src/libespeak-ng/translate.c

+ 1
- 5
src/libespeak-ng/translate.c View File

@@ -349,12 +349,8 @@ static int TranslateWord2(Translator *tr, char *word, WORD_TAB *wtab, int pre_pa
if ((word[0] == 0) || (word_flags & FLAG_DELETE_WORD)) {
// nothing to translate. Add a dummy phoneme to carry any embedded commands
if (embedded_flag) {
ph_list2[n_ph_list2].phcode = phonEND_WORD;
ph_list2[n_ph_list2].stresslevel = 0;
SetPlist2(&ph_list2[n_ph_list2], phonEND_WORD);
ph_list2[n_ph_list2].wordstress = 0;
ph_list2[n_ph_list2].tone_ph = 0;
ph_list2[n_ph_list2].synthflags = embedded_flag;
ph_list2[n_ph_list2].sourceix = 0;
n_ph_list2++;
embedded_flag = 0;
}

Loading…
Cancel
Save