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
2020-07-24 07:29:47 +03:00
Reece H. Dunn
d0410d8585
Include dictionary.h in the relevant source files to avoid implicit-function-declaration warnings.
2018-03-17 07:12:45 +00:00
Reece H. Dunn
74f9f5e34b
wavegen.c: Fix -Wmissing-prototypes warnings.
2017-10-10 21:37:46 +01:00
Reece H. Dunn
0590da5da7
encoding.c: Create a string decoding API; support US-ASCII decoding.
2017-03-27 22:49:47 +01:00
Reece H. Dunn
b3a1bcda4b
phoneme: pass the feature enum value to phoneme_add_feature.
2017-01-26 19:58:23 +00:00
Reece H. Dunn
442a503986
phonemes: show the invalid phoneme feature on unrecognised feature names
2017-01-25 19:03:49 +00:00
Reece H. Dunn
f76d2558c9
phoneme: add a phoneme_add_feature internal API method.
2017-01-25 07:52:39 +00:00
Reece H. Dunn
4920ecc79c
Move espeak-data to espeak-ng-data to avoid conflicting with upstream espeak.
2016-09-10 09:44:13 +01:00
Reece H. Dunn
7a4bc02cb6
Use stdlib.h instead of malloc.h.
2016-02-06 15:24:42 +00:00
Reece H. Dunn
e963b54b6d
Move strerror_r portability to a string.h compatibility shim.
2016-01-23 11:35:07 +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
2a8c4461bd
Use snprintf on all platforms (it is C99 conformant in Visual Studio 2015 and can be supported in the compatibility layer for older versions as needed).
2016-01-15 20:16:02 +00:00
Reece H. Dunn
6b573e112b
Call to malloc may return NULL in create_*_error_context(error.c) [msvc /analyze]
2016-01-11 20:42:19 +00:00
Reece H. Dunn
9c7179189b
Add a stdint.h compatibility shim.
2016-01-09 13:09:50 +00:00
Reece H. Dunn
02c23bab47
Fix building error.c on Windows.
2016-01-09 10:34:51 +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
72db232ec3
Move include/espeak{-ng => }/speak_lib.h.
2016-01-04 19:45:23 +00:00
Reece H. Dunn
9d860cb180
Support displaying error context information.
2016-01-04 11:07:12 +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
378490b65f
Create an error context API.
...
This will allow the espeak-ng methods to provide more context
information for the errors that can then be used in things like
GUI applications.
2016-01-04 10:24:38 +00:00
Reece H. Dunn
8c0d4a993d
Move the error formatting code to error.c.
2016-01-03 16:48:05 +00:00