Juho Hiltunen
d196d93ed5
maintainability: move variables to files where they are used, allowing removal of unnecessary extern declarations
2018-03-24 15:05:23 +02:00
Juho Hiltunen
1bad240de8
maintainability: remove some unused variables and unnecessary extern declarations
2018-03-24 15:03:48 +02:00
Juho Hiltunen
07160f9286
headers: add new file synthdata.h with declarations of functions in synthdata.c
2018-03-10 08:23:24 +02:00
Juho Hiltunen
706df97b20
headers: add new file readclause.h with declarations of functions in readclause.c
2018-03-10 07:18:07 +02:00
Juho Hiltunen
d1fd650219
Replace references to USHORT, DOUBLEX and UCHAR with unsigned short, double and unsigned char.
...
This makes the codebase more consistent. Including speech.h is not necessary anymore in some files. Includes have been removed.
2018-03-09 21:08:38 +02:00
Juho Hiltunen
78749f14f8
readability fix: use boolean instead of 0 and 1 for loop control
2018-02-17 18:17:00 +02:00
Juho Hiltunen
da287fb851
Unify terminology for stress
...
synthesize.h now contains the definitions STRESS_IS_... that should be used with code related to syllable stress.
Note that isBreak and other defines were renumbered so that stress definitions could have values 0-6.
Possible TODOs:
1. Unify with terms used with phonemes, i.e. keywords like isDiminished in compiledata.c and stress_type in phsource/phonemes
2. Add functionality and documentation about STRESS_IS_PRIORITY and STRESS_IS_EMPHASIZED
2018-01-14 15:26:03 +02:00
Juho Hiltunen
4f56345fb5
Use stdbool instead of int (Issue #8 )
...
See issue #8 , https://github.com/espeak-ng/espeak-ng/issues/8
There might still be some ints that could be changed to boolean.
Possible regressions in fifo.c:
int fifo_is_busy() and int fifo_is_command_enabled() used to return an int. Now they return a boolean. This might cause problems on systems where stdbool true/false is something else than 1/0.
2017-12-09 17:34:05 +02:00
Reece H. Dunn
b5c415a98d
Rename OPCODE_ to INSTN_.
2017-10-28 12:38:39 +01:00
Reece H. Dunn
6acec43043
synthesize.c: Fix -Wmissing-prototypes warnings.
2017-10-11 07:16:43 +01:00
Reece H. Dunn
74f9f5e34b
wavegen.c: Fix -Wmissing-prototypes warnings.
2017-10-10 21:37:46 +01:00
Reece H. Dunn
d89fa59bed
Enable and fix -Wunused-variable warnings.
2017-10-05 07:23:17 +01:00
Reece H. Dunn
921229259d
Use int to store the value from GetFileLength.
...
This fixes the clang warning:
comparison of unsigned expression < 0 is always false
[-Wtautological-compare]
Reported by Reef Turner <reef@nvaccess.org >
2017-07-26 19:50:03 +01:00
Reece H. Dunn
9af96da469
Make the encoding.h API public.
2017-05-02 18:40:16 +01:00
Reece H. Dunn
7c16ac543c
Use the text decoder API in readclause.c.
2017-03-31 13:17:37 +01:00
Reece H. Dunn
71c010b712
Remove unused wchar.h and wctype.h includes.
2017-02-10 08:03:40 +00:00
Reece H. Dunn
df6a2228b7
Use -EISDIR instead of -2 in GetFileLength for directories.
2017-02-04 16:02:56 +00:00
Reece H. Dunn
f2bb482782
Use OPCODE for the RETURN and CONTINUE opcodes.
2017-01-29 10:29:48 +00:00
Reece H. Dunn
b937d37e93
Use the stress condition values in StressCondition.
2017-01-29 10:14:10 +00:00
Reece H. Dunn
8338cdd250
Better document the other condition checks (isDiminished, etc.).
2017-01-29 10:09:16 +00:00
Reece H. Dunn
5d2e2a2f8f
Use the place of articulation constants to specify the place-based conditions.
2017-01-29 00:29:17 +00:00
Reece H. Dunn
f0d4a98b96
Use an explicit is phoneme type constant to specify the type-based conditions.
2017-01-29 00:09:54 +00:00
Reece H. Dunn
98703c30de
Use the phflag bit offset constants to specify the phflag-based conditions.
2017-01-29 00:04:44 +00:00
Reece H. Dunn
5c96ad2359
Remove unused phoneme flags.
2017-01-28 23:24:53 +00:00
Reece H. Dunn
5600019a54
Remove unused conditional tests.
2017-01-28 21:16:08 +00:00
Reece H. Dunn
6a0ea584ea
Don't store the unused phoneme equivalence tables in the phoneme data files.
2017-01-27 20:44:06 +00:00
Reece H. Dunn
a091c20852
Remove the unused isSeqFlag1 logic checks.
2017-01-25 23:44:19 +00:00
Reece H. Dunn
f235c7cb00
Fix the version string references in '--version' and the Windows installer.
2016-09-24 12:51:29 +01:00
Ondřej Lysoněk
3817ee1e16
Moved speak_lib.h to espeak-ng directory
...
Moved include/espeak/speak_lib.h to include/espeak-ng/speak_lib.h and
created a symlink from the original location.
2016-08-28 10:57:10 +01:00
Reece H. Dunn
bb465a45d8
Move the clock_gettime2 and add_time_in_ms definitions to event.h.
2016-02-07 18:38:13 +00:00
Reece H. Dunn
674d55e605
Remove support for pa_device in the config file (now have a device command-line option).
2016-02-07 18:16:27 +00:00
Reece H. Dunn
bbd981efb8
Use malloc/strdup instead of Alloc.
2016-01-18 20:34:59 +00:00
Reece H. Dunn
325014da42
Use free instead of Free as free checks for NULL.
2016-01-18 20:23:51 +00:00
Reece H. Dunn
96c43f3eb2
Clean up the include files to make them consistent.
2016-01-16 17:54:39 +00:00
Reece H. Dunn
19ef13daac
i_CHANGE_PHONEME2 is not used and the code conflicts with i_ADD_LENGTH, so remove it
2016-01-12 22:05:10 +00:00
Reece H. Dunn
9c7179189b
Add a stdint.h compatibility shim.
2016-01-09 13:09:50 +00:00
Reece H. Dunn
43d1c0c066
Initialize length in LoadPhData(synthdata.c). [clang scan-build]
2016-01-07 20:52:47 +00:00
Reece H. Dunn
21cc5195d2
Remove a dead assignment in InterpretPhoneme(synthdata.c) [clang scan-build]
2016-01-06 21:18:30 +00:00
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
2016-01-04 19:45:23 +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
7d8d91698f
Remove the f_logespeak logging code.
2016-01-02 14:55:32 +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
912a2f7e3f
Make ReadPhFile return a status/error code.
2016-01-02 11:47:54 +00:00
Reece H. Dunn
c2811d074e
Make LoadPhData return an espeak_ng_STATUS code.
2016-01-01 13:17:11 +00:00
Reece H. Dunn
9e643b5620
Fix clang -Wunreachable-code-break warnings.
2015-12-30 15:54:32 +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
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