mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-18 18:50:25 +00:00
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
This commit is contained in:
@@ -25,11 +25,10 @@
|
||||
#include <espeak-ng/espeak_ng.h>
|
||||
#include <espeak-ng/encoding.h>
|
||||
|
||||
#include "speech.h"
|
||||
#include "phoneme.h"
|
||||
#include "voice.h"
|
||||
#include "synthesize.h"
|
||||
#include "translate.h"
|
||||
#include <espeak-ng/encoding.h> // for espeak_ng_TEXT_DECODER, ESPEAKNG_EN...
|
||||
#include "espeak-ng/speak_lib.h" // for espeakCHARS_16BIT, espeakCHARS_8BIT
|
||||
#include "speech.h" // for LookupMnem, MNEM_TAB
|
||||
#include "translate.h" // for LEADING_2_BITS, UTF8_TAIL_BITS
|
||||
|
||||
// http://www.iana.org/assignments/character-sets/character-sets.xhtml
|
||||
MNEM_TAB mnem_encoding[] = {
|
||||
|
||||
Reference in New Issue
Block a user