Juho Hiltunen
cffdfb837b
code cleanup: move function declarations from speech.h to new file mnemonics.h
This adds a corresponding header file for mnemonics.c that was introduced in d5d93be
.
4 years ago
freddii
61efed30fa
fixed spelling mistakes
4 years ago
Juho Hiltunen
ee944700f8
code cleanup: Check all local includes with include-what-you-use
Going through files in src/libespeak-ng/, include-what-you-use removed a
few unnecessary includes and included explanations on why a certain
header should be included. This makes tracking globals and dependencies easier.
Running the codebase through IWYU should be repeated after each major
code restIncludes to standard c library weren't checked to avoid
breaking builds with other platforms.
See https://github.com/include-what-you-use/include-what-you-use
5 years ago
BenTalagan
3e0150a34f
Fixing ungetc bad behavior under macOS Catalina by avoiding to ungetc a different char from the last getc
5 years ago
Juho Hiltunen
f4aec775cf
compiledata.c: Fix -Wunused-result warning.
7 years ago
Reece H. Dunn
6d25013c94
CompileReport: Don't generate a report if there are no references. [msvc /analyze]
7 years ago
Reece H. Dunn
d0410d8585
Include dictionary.h in the relevant source files to avoid implicit-function-declaration warnings.
7 years ago
Juho Hiltunen
f00ff91fe4
headers: add new file wavegen.h with declarations of functions in wavegen.c
7 years ago
Juho Hiltunen
9012f3f0bf
headers: continue with synthdata.h
7 years ago
Juho Hiltunen
706df97b20
headers: add new file readclause.h with declarations of functions in readclause.c
7 years ago
Juho Hiltunen
079d5a92c5
remove more unnecessary speech.h includes
7 years ago
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.
7 years ago
Reece H. Dunn
c49164334b
Ensure each name in proc_names can fit an item_string [msvc /analyze].
7 years ago
Reece H. Dunn
583a23f0cd
Use ENV_LEN in the fwrite call in LoadEnvelope2 to be consistent with the rest of the function.
7 years ago
Juho Hiltunen
78749f14f8
readability fix: use boolean instead of 0 and 1 for loop control
7 years ago
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
7 years ago
Reece H. Dunn
5e2c963006
Fix pronouncing words like 'newsletter'. Reverts 60a584c0321ea690a9d016556c4ef3de4414c842.
7 years ago
Reece H. Dunn
b5c415a98d
Rename OPCODE_ to INSTN_.
7 years ago
Reece H. Dunn
c59c9633de
Fix -Wuninitialized warnings.
7 years ago
Reece H. Dunn
b11480c09d
compiledata.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
68724badf3
encoding.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
74f9f5e34b
wavegen.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
d89fa59bed
Enable and fix -Wunused-variable warnings.
7 years ago
Reece H. Dunn
57108e1ed7
Add n_points guards in the LoadEnvelope2 loop.
Clang static analysis reports these as 'Result of operation is
garbage or undefined' errors.
7 years ago
Reece H. Dunn
4a882e21d3
Don't update env_x/y if no points were read.
Clang static analysis reports an 'Assigned value is garbage or
undefined' for this. If no points were read from the file, the
`n_points` variable is 0 and `env_x[n_points-1]` performs an
out-of-bounds access.
7 years ago
Reece H. Dunn
19b2bebc02
Don't save an intonation if it was not found.
Clang static analysis reports an 'Assigned value is garbage or
undefined' error. This happens if the default_tune data has not
been copied in the kTUNE case.
Extending this further, it does not make sense to save the tune
data if the tune was not found, or if the tune already exists.
7 years ago
Reece H. Dunn
51c8a2d7d9
Rename the isVel check to isVelar.
8 years ago
Reece H. Dunn
901bc0d1ba
Allow 'apr liquid' to be used together in a phoneme.
8 years ago
Reece H. Dunn
9448834298
Use '_' to indicate no parent phoneme table in the 'phonemetable' command.
8 years ago
Reece H. Dunn
574ecbd634
Inline the InstnPlusPhoneme function.
8 years ago
Reece H. Dunn
e7374059e5
Use the stress condition values with i_CHANGE_IF.
8 years ago
Reece H. Dunn
f2bb482782
Use OPCODE for the RETURN and CONTINUE opcodes.
8 years ago
Reece H. Dunn
8338cdd250
Better document the other condition checks (isDiminished, etc.).
8 years ago
Reece H. Dunn
5d2e2a2f8f
Use the place of articulation constants to specify the place-based conditions.
8 years ago
Reece H. Dunn
f0d4a98b96
Use an explicit is phoneme type constant to specify the type-based conditions.
8 years ago
Reece H. Dunn
98703c30de
Use the phflag bit offset constants to specify the phflag-based conditions.
8 years ago
Reece H. Dunn
5600019a54
Remove unused conditional tests.
8 years ago
Reece H. Dunn
0415c46a8f
Replace 'nonsyllabic' with 'nsy'.
8 years ago
Reece H. Dunn
bcdf6ff734
Don't replace rhotic with rzd. 'rhotic' is used on r-type consonants.
8 years ago
Reece H. Dunn
241860553d
Replace 'long' with 'lng'.
8 years ago
Reece H. Dunn
e585de6c52
Replace 'palatal' with 'pzd'.
8 years ago
Reece H. Dunn
8457f010d0
Replace 'trill' with 'trl'.
8 years ago
Reece H. Dunn
c8023301f2
Replace 'sibilant' with 'sib'.
8 years ago
Reece H. Dunn
22935752fa
Replace 'Length' with 'length'.
8 years ago
Reece H. Dunn
bcc639fcfc
Replace 'nasal' with 'nas'.
8 years ago
Reece H. Dunn
fe74d0b41b
Replace 'stop' with 'stp'.
8 years ago
Reece H. Dunn
14f7513840
Replace 'vowel' with 'vwl'.
8 years ago
Reece H. Dunn
130a87cbe6
compiledata: Generate an error if import phoneme will override settings.
8 years ago
Reece H. Dunn
a9030650ba
compiledata: Generate an error if the imported phoneme cannot be found.
8 years ago
Reece H. Dunn
b4297c2851
compiledata: Display the actual error from phoneme_add_feature.
8 years ago