From d395efa481839c7df514a56a8f7beeb424299e9f Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Sat, 10 Mar 2018 08:01:46 +0200 Subject: [PATCH] headers: add new file phonemelist.h with declarations of functions in phonemelist.c --- src/libespeak-ng/phonemelist.c | 2 ++ src/libespeak-ng/phonemelist.h | 38 ++++++++++++++++++++++++++++++++++ src/libespeak-ng/translate.c | 1 + src/libespeak-ng/translate.h | 1 - 4 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 src/libespeak-ng/phonemelist.h diff --git a/src/libespeak-ng/phonemelist.c b/src/libespeak-ng/phonemelist.c index 60ced1d1..a304b8c5 100644 --- a/src/libespeak-ng/phonemelist.c +++ b/src/libespeak-ng/phonemelist.c @@ -29,6 +29,8 @@ #include #include +#include "phonemelist.h" + #include "phoneme.h" #include "voice.h" #include "synthesize.h" diff --git a/src/libespeak-ng/phonemelist.h b/src/libespeak-ng/phonemelist.h new file mode 100644 index 00000000..049b0568 --- /dev/null +++ b/src/libespeak-ng/phonemelist.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2005 to 2015 by Jonathan Duddington + * email: jonsd@users.sourceforge.net + * Copyright (C) 2015-2018 Reece H. Dunn + * Copyright (C) 2018 Juho Hiltunen + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, see: . + */ + +#ifndef ESPEAK_NG_PHONEMELIST_H +#define ESPEAK_NG_PHONEMELIST_H + +#include "translate.h" + +#ifdef __cplusplus +extern "C" +{ +#endif + +#ifdef __cplusplus +} +#endif + +void MakePhonemeList(Translator *tr, int post_pause, bool start_sentence); + +#endif + diff --git a/src/libespeak-ng/translate.c b/src/libespeak-ng/translate.c index 7666d169..5e7268ac 100644 --- a/src/libespeak-ng/translate.c +++ b/src/libespeak-ng/translate.c @@ -33,6 +33,7 @@ #include #include "readclause.h" +#include "phonemelist.h" #include "speech.h" #include "phoneme.h" diff --git a/src/libespeak-ng/translate.h b/src/libespeak-ng/translate.h index 13839be7..d1e7f89b 100644 --- a/src/libespeak-ng/translate.h +++ b/src/libespeak-ng/translate.h @@ -738,7 +738,6 @@ 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, bool new_sentence); void ApplySpecialAttribute2(Translator *tr, char *phonemes, int dict_flags); void AppendPhonemes(Translator *tr, char *string, int size, const char *ph);