Browse Source

CompilePhonemeData2: Inline the single use of the source parameter.

master
Reece H. Dunn 8 years ago
parent
commit
ca77ce928b
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/libespeak-ng/compiledata.c

+ 4
- 4
src/libespeak-ng/compiledata.c View File

/* /*
* Copyright (C) 2005 to 2014 by Jonathan Duddington * Copyright (C) 2005 to 2014 by Jonathan Duddington
* email: [email protected] * email: [email protected]
* Copyright (C) 2013-2016 Reece H. Dunn
* Copyright (C) 2013-2017 Reece H. Dunn
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
phoneme_tab2[n_phcodes+1].mnemonic = 0; // terminator phoneme_tab2[n_phcodes+1].mnemonic = 0; // terminator
} }


static espeak_ng_STATUS CompilePhonemeData2(const char *source, FILE *log, espeak_ng_ERROR_CONTEXT *context)
static espeak_ng_STATUS CompilePhonemeData2(FILE *log, espeak_ng_ERROR_CONTEXT *context)
{ {
char fname[sizeof(path_home)+40]; char fname[sizeof(path_home)+40];




f_errors = log; f_errors = log;


strncpy0(current_fname, source, sizeof(current_fname));
strncpy0(current_fname, "phonemes", sizeof(current_fname));


sprintf(fname, "%s/../phsource/phonemes", path_home); sprintf(fname, "%s/../phsource/phonemes", path_home);
fprintf(log, "Compiling phoneme data: %s\n", fname); fprintf(log, "Compiling phoneme data: %s\n", fname);


WavegenInit(rate, 0); WavegenInit(rate, 0);
WavegenSetVoice(voice); WavegenSetVoice(voice);
return CompilePhonemeData2("phonemes", log, context);
return CompilePhonemeData2(log, context);
} }


#pragma GCC visibility pop #pragma GCC visibility pop

Loading…
Cancel
Save