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
Juho Hiltunen
9174a2045e
maintainability: remove unused externs
7 years ago
Juho Hiltunen
1bad240de8
maintainability: remove some unused variables and unnecessary extern declarations
7 years ago
Valdis Vitolins
ad1fa7f25f
Expose SpectSeqCreate(), SpectSeqDestroy() and LoadSpectSeq() functions for eSpeakNG Java Editor
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
6a735f19f2
ieee80.c: Fix -Wmissing-prototypes warnings (create an ieee80.h header file).
7 years ago
Reece H. Dunn
74f9f5e34b
wavegen.c: Fix -Wmissing-prototypes warnings.
7 years ago
Reece H. Dunn
8320581675
Fix running espeak-ng on big-endian architectures.
Patch by Samuel Thibault.
8 years ago
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.
9 years ago
Reece H. Dunn
4ecdeefe4b
Fix a null pointer dereference in LoadSpectSeq(spect.c). [Coverity]
9 years ago
Reece H. Dunn
a9adf136c6
Close stream on error paths in LoadSpectSeq(spect.c). [Coverity]
9 years ago
Reece H. Dunn
96c43f3eb2
Clean up the include files to make them consistent.
9 years ago
Reece H. Dunn
2446dbc3b4
Make LoadFrame return an error_ng_STATUS code.
9 years ago
Reece H. Dunn
d8a88fc8e7
Call to malloc may return NULL in SpectCreateFrame(spect.c) [msvc /analyze]
9 years ago
Reece H. Dunn
0ca520a4ec
Revert the gcc sign conversion warning fixes.
This reverts commits 0cc0300328
to
38d15f8f90
.
The 0cc03003
commit breaks MBROLA voice support. As such, there
may be other breakages in those commits.
9 years ago
Reece H. Dunn
38d15f8f90
Fix gcc sign conversion warnings in spect.c.
9 years ago
Reece H. Dunn
9c7179189b
Add a stdint.h compatibility shim.
9 years ago
Reece H. Dunn
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
9 years ago
Reece H. Dunn
32655d264d
Make LoadSpect return an espeak_ng_STATUS code.
9 years ago
Reece H. Dunn
619fc6424d
Make LoadDataFile return an espeak_ng_STATUS code.
9 years ago
Reece H. Dunn
ccb409c600
Return an espeak_ng_STATUS code in LoadSpectSeq.
9 years ago
Reece H. Dunn
ae0d188c73
Fix the allocation of the spect->frames array. [clang scan-build]
9 years ago
Reece H. Dunn
c2811d074e
Make LoadPhData return an espeak_ng_STATUS code.
9 years ago
Reece H. Dunn
80914cc40e
Fix clang -Wunused-macros warnings.
9 years ago
Reece H. Dunn
522e7c4d51
Revert commit 14a2fb39cf89c8e5561f833f961d8330059daaae
This commit has been reported to cause distortions in phoneme
pitches and speeds.
9 years ago
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
9 years ago
Reece H. Dunn
3e99752d0c
Check and fix source code formatting.
9 years ago
Reece H. Dunn
f0c2c4cca2
Remove extra newlines from the files to provide consistent spacing.
9 years ago
Reece H. Dunn
d345d74f64
Remove braces around single-line if/while/for/etc. and related cleanup.
9 years ago
Reece H. Dunn
9a837c8182
Remove parentheses around return statements.
9 years ago
Reece H. Dunn
12e0bb122b
Reformat the code using the uncrustify program.
9 years ago
Reece H. Dunn
26b1e83b9c
Remove the unused PeaksZero function in spect.c
9 years ago
Reece H. Dunn
66c2831bed
Use intptr_t from stdint.h instead of a custom long64 typedef.
9 years ago
Reece H. Dunn
c71b24a9a5
Use a consistent license notice in the source files.
9 years ago
Reece H. Dunn
cbe8695fcb
Remove the * box around the file headers.
9 years ago
Michael Curran
9d187f0588
Stop leaking file streams in libespeak-ng's LoadSpectSeq function.
9 years ago
Reece H. Dunn
36be9ac13f
Use the default uncrustify config (with indentation changes) to reformat the code.
9 years ago
Reece H. Dunn
5e0050419d
Remove comments that deliniate the start and end of functions, etc..
9 years ago
Reece H. Dunn
08821f262f
Remove commented out code.
9 years ago
Reece H. Dunn
408a12a79f
Convert src/spect.cpp to src/libespeak-ng/spect.c.
9 years ago
Reece H. Dunn
e2ba3703bb
espeakedit: remove wxWidgets from spect.cpp
9 years ago
Reece H. Dunn
7d3a8f9983
LoadSpectSeq: use an fread API to read wxInputStream data
This creates an fread compatible API on wxInputStream objects and
uses that API in LoadSpectSeq. This is to help the transition from
the wxWidgets wxInputStream API to the C FILE API.
9 years ago
Reece H. Dunn
56ddf6c339
espeakedit: remove wxWidgets from compiledata.cpp
9 years ago
Reece H. Dunn
d1b06c6591
espeakedit: convert SpectSeq to a struct
9 years ago
Reece H. Dunn
6ad68e2082
espeakedit: convert SpectFrame to a struct
9 years ago
Reece H. Dunn
e5610301b0
espeakedit: move the definition of SpectFrame::GetRms out of the class
9 years ago
Reece H. Dunn
cfb0a8a111
espeakedit: move the definition of SpectFrame::Load into spect.cpp
9 years ago
Reece H. Dunn
bb2d73a875
espeakedit: move the definition of GetFrameLength into spect.cpp
9 years ago
Reece H. Dunn
d35da4b8b8
espeakedit: inline SpectSeq::Load2 into SpectSeq::Load
9 years ago
Reece H. Dunn
c5407fe147
espeakedit: remove unused methods from spect.h
9 years ago