Browse Source

make all headers (almost) self-contained by using include guards and #include statements within headers

master
Juho Hiltunen 7 years ago
parent
commit
738492100a

+ 1
- 0
src/libespeak-ng/compiledict.c View File



#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

+ 2
- 0
src/libespeak-ng/error.h View File

#ifndef ESPEAK_NG_ERROR_API #ifndef ESPEAK_NG_ERROR_API
#define ESPEAK_NG_ERROR_API #define ESPEAK_NG_ERROR_API


#include <espeak-ng/espeak_ng.h>

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {

+ 4
- 2
src/libespeak-ng/espeak_command.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef ESPEAK_COMMAND_H
#define ESPEAK_COMMAND_H
#ifndef ESPEAK_NG_COMMAND_H
#define ESPEAK_NG_COMMAND_H

#include <espeak-ng/espeak_ng.h>


#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"

+ 5
- 3
src/libespeak-ng/event.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef EVENT_H
#define EVENT_H

/* /*
Manage events (sentence, word, mark, end,...), is responsible of calling the external Manage events (sentence, word, mark, end,...), is responsible of calling the external
callback as soon as the relevant audio sample is played. callback as soon as the relevant audio sample is played.


*/ */


#ifndef ESPEAK_NG_EVENT_H
#define ESPEAK_NG_EVENT_H

#include <espeak-ng/espeak_ng.h>

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {

+ 6
- 3
src/libespeak-ng/fifo.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef FIFO_H
#define FIFO_H

// Helps to add espeak commands in a first-in first-out queue // Helps to add espeak commands in a first-in first-out queue
// and run them asynchronously. // and run them asynchronously.


#ifndef ESPEAK_NG_FIFO_H
#define ESPEAK_NG_FIFO_H

#include <espeak-ng/espeak_ng.h>
#include "espeak_command.h"

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {

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

* conversions, and accommodated conversions involving +/- infinity, * conversions, and accommodated conversions involving +/- infinity,
* NaN's, and denormalized numbers. * NaN's, and denormalized numbers.
*/ */

#ifndef IEEE_H #ifndef IEEE_H
#define IEEE_H #define IEEE_H



+ 8
- 0
src/libespeak-ng/klatt.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef ESPEAK_NG_KLATT_H
#define ESPEAK_NG_KLATT_H

#include "speech.h"
#include "synthesize.h"

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

#endif

+ 7
- 0
src/libespeak-ng/phoneme.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef ESPEAK_NG_PHONEME_H
#define ESPEAK_NG_PHONEME_H

#include <espeak-ng/espeak_ng.h>

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

#endif

+ 5
- 0
src/libespeak-ng/sintab.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef ESPEAK_NG_SINTAB_H
#define ESPEAK_NG_SINTAB_H

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

#endif

+ 9
- 0
src/libespeak-ng/spect.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef ESPEAK_NG_SPECT_H
#define ESPEAK_NG_SPECT_H

#include <espeak-ng/espeak_ng.h>
#include "synthesize.h"
#include "speech.h"

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

#endif

+ 4
- 2
src/libespeak-ng/speech.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef SPEECH_H
#define SPEECH_H
#ifndef ESPEAK_NG_SPEECH_H
#define ESPEAK_NG_SPEECH_H

#include <espeak-ng/espeak_ng.h>


#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"

+ 5
- 0
src/libespeak-ng/ssml.h View File

#ifndef ESPEAK_NG_SSML_API #ifndef ESPEAK_NG_SSML_API
#define ESPEAK_NG_SSML_API #define ESPEAK_NG_SSML_API


#include <stdbool.h>
#include <wchar.h>

#include <espeak-ng/speak_lib.h>

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {

+ 12
- 1
src/libespeak-ng/synthesize.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#include <stdbool.h>
#ifndef ESPEAK_NG_SYNTHESIZE_H
#define ESPEAK_NG_SYNTHESIZE_H

#include "speech.h"


#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#endif #endif


#include <stdint.h>
#include <stdbool.h>
#include <espeak-ng/espeak_ng.h>
#include "phoneme.h"
#include "voice.h"

#define espeakINITIALIZE_PHONEME_IPA 0x0002 // move this to speak_lib.h, after eSpeak version 1.46.02 #define espeakINITIALIZE_PHONEME_IPA 0x0002 // move this to speak_lib.h, after eSpeak version 1.46.02


#define N_PHONEME_LIST 1000 // enough for source[N_TR_SOURCE] full of text, else it will truncate #define N_PHONEME_LIST 1000 // enough for source[N_TR_SOURCE] full of text, else it will truncate
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

#endif

+ 12
- 0
src/libespeak-ng/translate.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef ESPEAK_NG_TRANSLATE_H
#define ESPEAK_NG_TRANSLATE_H

#include <stdbool.h>

#include <espeak-ng/espeak_ng.h>
#include <espeak-ng/encoding.h>

#include "synthesize.h"

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

#endif

+ 9
- 0
src/libespeak-ng/voice.h View File

* along with this program; if not, see: <http://www.gnu.org/licenses/>. * along with this program; if not, see: <http://www.gnu.org/licenses/>.
*/ */


#ifndef ESPEAK_NG_VOICE_H
#define ESPEAK_NG_VOICE_H

#include <espeak-ng/espeak_ng.h>

#include "speech.h"

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

#endif

+ 1
- 1
src/libespeak-ng/wavegen.c View File

#include <espeak-ng/espeak_ng.h> #include <espeak-ng/espeak_ng.h>
#include <espeak-ng/speak_lib.h> #include <espeak-ng/speak_lib.h>


#include "synthesize.h"
#include "speech.h" #include "speech.h"
#include "phoneme.h" #include "phoneme.h"
#include "voice.h" #include "voice.h"
#include "synthesize.h"


#ifdef INCLUDE_KLATT #ifdef INCLUDE_KLATT
#include "klatt.h" #include "klatt.h"

Loading…
Cancel
Save