Merge identical code branches in speak-ng.

This commit is contained in:
Reece H. Dunn
2015-12-29 17:14:41 +00:00
parent 230ddd9fe2
commit 7afdd17fca
+2 -9
View File
@@ -676,22 +676,15 @@ int main(int argc, char **argv)
}
if (flag_compile) {
#ifdef PLATFORM_DOS
char path_dsource[sizeof(path_home)+20];
strcpy(path_dsource, path_home);
path_dsource[strlen(path_home)-11] = 0; // remove "espeak-data" from the end
strcat(path_dsource, "dictsource\\");
espeak_ng_STATUS status = espeak_ng_CompileDictionary(path_dsource, dictionary_name, NULL, flag_compile & 0x1);
#else
#ifdef PLATFORM_WINDOWS
#if defined(PLATFORM_DOS) || defined(PLATFORM_WINDOWS)
char path_dsource[sizeof(path_home)+20];
strcpy(path_dsource, path_home);
path_dsource[strlen(path_home)-11] = 0; // remove "espeak-data" from the end
strcat(path_dsource, "dictsource\\");
espeak_ng_STATUS status = espeak_ng_CompileDictionary(path_dsource, dictionary_name, NULL, flag_compile & 0x1);
#else
espeak_ng_STATUS status = espeak_ng_CompileDictionary(NULL, dictionary_name, NULL, flag_compile & 0x1);
#endif
#endif
return (status == ENS_OK) ? EXIT_SUCCESS : EXIT_FAILURE;
}