Reece H. Dunn
96c43f3eb2
Clean up the include files to make them consistent.
2016-01-16 17:54:39 +00:00
Reece H. Dunn
9c5820f72a
Create an initial compatibility shim for unistd.h.
2016-01-15 07:22:46 +00:00
Reece H. Dunn
c9844f62ef
Clean up the 'Compiling phoneme data' messages.
2016-01-14 19:57:44 +00:00
Reece H. Dunn
f9d12c31a4
Remove the redundant access check in compiledata.c
...
This access check is checking whether the phsource directory exists.
Now that espeak-ng is using the errno message when opening the
phsource/phonemes file, enough information should be provided by
that error message.
2016-01-14 19:43:42 +00:00
Reece H. Dunn
242cb51c38
Call to realloc may leak the manifest data in ReadPhonemeManifest(compiledata.c) [msvc /analyze]
2016-01-11 20:26:51 +00:00
Reece H. Dunn
4673b04cde
Check the return value of malloc in LoadDataFile(compiledata.c) [msvc /analyze]
2016-01-11 20:20:26 +00:00
Reece H. Dunn
11101806ce
Support building espeak-ng.exe with Visual C++.
2016-01-09 13:32:16 +00:00
Reece H. Dunn
9c7179189b
Add a stdint.h compatibility shim.
2016-01-09 13:09:50 +00:00
Reece H. Dunn
dea7d441f2
Avoid passing 0 to realloc in ReadPhondataManifest(compiledata.c). [clang scan-build]
2016-01-07 20:46:31 +00:00
Reece H. Dunn
5453616ec9
Add espeak_ng_STATUS error code return values to ReadPhondataManifest.
2016-01-07 20:36:34 +00:00
Reece H. Dunn
c675787587
Fix usage of calloc in espeak_ng_CompileIntonation. [clang scan-build]
2016-01-07 20:28:11 +00:00
Reece H. Dunn
aa93cf2ec9
Fix the error logic in CompilePhonemeData2(compiledata.c) [clang scan-build]
2016-01-06 22:44:21 +00:00
Reece H. Dunn
b63371bd80
Remove a dead assignment in CompileEquivalents(compiledata.c) [clang scan-build]
2016-01-06 22:22:17 +00:00
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
2016-01-04 19:45:23 +00:00
Reece H. Dunn
a675073381
Remove the uses of fopen_log in compiledata.c.
2016-01-04 14:05:51 +00:00
Reece H. Dunn
2c446ecba3
Properly clean up the open files in CompilePhonemeData2.
2016-01-04 14:01:02 +00:00
Reece H. Dunn
7aa506d145
Use the error context API in espeak_ng_CompilePhonemeData.
2016-01-04 13:42:43 +00:00
Reece H. Dunn
57eb9628d6
Use the error context API in espeak_ng_CompileIntonation.
2016-01-04 13:28:38 +00:00
Reece H. Dunn
013e282d1a
Use the error context API in espeak_ng_Initialize.
2016-01-04 10:51:19 +00:00
Reece H. Dunn
59006f4762
Fix the LoadDataFile logic from commit 619fc6424d
2016-01-03 20:08:49 +00:00
Reece H. Dunn
32655d264d
Make LoadSpect return an espeak_ng_STATUS code.
2016-01-03 15:02:14 +00:00
Reece H. Dunn
619fc6424d
Make LoadDataFile return an espeak_ng_STATUS code.
2016-01-03 14:53:11 +00:00
Reece H. Dunn
1210464a31
CompileToneSpec always returns 0, so make it return void.
2016-01-03 14:34:03 +00:00
Reece H. Dunn
a04a7af003
CompileSound always returns 0, so make it return void.
2016-01-03 14:31:36 +00:00
Reece H. Dunn
ccb409c600
Return an espeak_ng_STATUS code in LoadSpectSeq.
2016-01-03 14:15:37 +00:00
Reece H. Dunn
563e4e3769
Use ENS_ for eSpeak NG error codes, and standardize on a numbering scheme.
2016-01-02 12:20:25 +00:00
Reece H. Dunn
f9ea83430e
Use errno codes in place of ENE_(READ|WRITE)_ERROR.
2016-01-02 11:58:12 +00:00
Reece H. Dunn
74db6dac63
Use the ENOMEM errno code instead of ENE_OUT_OF_MEMORY.
2016-01-02 10:49:37 +00:00
Reece H. Dunn
53aac7f3a5
Fix clang -Wconditional-uninitialized warnings.
2015-12-30 16:37:01 +00:00
Reece H. Dunn
c1f0529747
DecompilePhoneme does nothing (returns before doing anything), so remove it (it was used to debug/trace CompilePhoneme).
2015-12-30 15:45:47 +00:00
Reece H. Dunn
75758a9712
Fix GCC -Wunused-but-set-variable warnings.
2015-12-29 22:23:41 +00:00
Reece H. Dunn
230ddd9fe2
Generate build errors if phoneme or language data files contain errors.
2015-12-29 15:00:31 +00:00
Reece H. Dunn
dfdb4e2391
Remove the Error wrapper -- use error directly.
2015-12-29 13:00:11 +00:00
Reece H. Dunn
6821f0dab0
Use variable arguments to simplify error(...) usage.
2015-12-29 12:55:51 +00:00
Reece H. Dunn
17c61b25d7
Output phoneme compilation errors to stderr.
2015-12-29 12:41:04 +00:00
Reece H. Dunn
522e7c4d51
Revert commit 14a2fb39cf
...
This commit has been reported to cause distortions in phoneme
pitches and speeds.
2015-12-28 17:54:17 +00:00
Reece H. Dunn
5d295bdd30
Merge remote-tracking branch 'nyqvist/master'
...
Conflicts:
src/libespeak-ng/compiledict.c
src/libespeak-ng/readclause.c
src/libespeak-ng/speak_lib.c
src/libespeak-ng/voices.c
src/libespeak-ng/wave_sada.c
src/libespeak-ng/wavegen.c
2015-12-28 13:14:46 +00:00
Reece H. Dunn
1a36df1206
Remove the remaining MAKE_ENVELOPES usage.
2015-12-28 11:16:35 +00:00
Fredrik Nyqvist
14a2fb39cf
Declare variables at their first point of use
...
Also use size_t instead of int in some places
where it make sense
2015-12-28 12:05:17 +01:00
Reece H. Dunn
3e99752d0c
Check and fix source code formatting.
2015-12-27 22:34:53 +00:00
Reece H. Dunn
f0c2c4cca2
Remove extra newlines from the files to provide consistent spacing.
2015-12-23 11:32:03 +00:00
Reece H. Dunn
d345d74f64
Remove braces around single-line if/while/for/etc. and related cleanup.
2015-12-22 20:40:10 +00:00
Reece H. Dunn
9a837c8182
Remove parentheses around return statements.
2015-12-22 16:24:01 +00:00
Reece H. Dunn
12e0bb122b
Reformat the code using the uncrustify program.
2015-12-22 15:06:50 +00:00
Reece H. Dunn
7d8b983ee7
strcasecmp is no longer used, so remove the compatibility code
2015-12-21 13:18:31 +00:00
Reece H. Dunn
f84fdc2d98
Don't call the no longer implemented DrawEnvelopes
...
This was part of espeakedit, and used wxWidgets to draw the
envelope graphs.
2015-12-21 12:02:06 +00:00
Reece H. Dunn
4ec02683f1
Remove the unused ph_sorter function in compiledata.c
2015-12-19 16:09:31 +00:00
Reece H. Dunn
f099f6cc80
Remove the unused PrintPhonemesUsed function in compiledata.c
2015-12-19 13:26:44 +00:00
Reece H. Dunn
6aee7b721f
Fix a value conversion warning on 64-bit builds.
2015-12-18 21:41:50 +00:00
Reece H. Dunn
66c2831bed
Use intptr_t from stdint.h instead of a custom long64 typedef.
2015-12-18 21:41:28 +00:00