~misono/nvdajp/MiscellaneousDependencies

« back to all changes in this revision

Viewing changes to include/espeak/platforms/big_endian/espeak-phoneme-data.c

  • Committer: Takuya Nishimoto
  • Date: 2012-05-06 14:35:57 UTC
  • Revision ID: nishimotz@gmail.com-20120506143557-1h0itsvl96dsnd4s
imporeted espeak-1.46.17 05.May.2012

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
#else
168
168
    printf ("Host seems to be little-endian ..\n");
169
169
#endif
 
170
    printf ("Reading from: %s\n", indir);
170
171
 
171
172
    sprintf (f1, "%s/phondata", indir);
172
173
    sprintf (f2, "%s/temp_1", outdir);
211
212
{//==========================================================
212
213
    FILE *in, *mfest, *out;
213
214
    int displ;
 
215
    int displ_out;
 
216
    int errorflag_displ = 0;  // only report the first displ mismatch error
214
217
    char line[1024];
215
218
    unsigned char buf_4[4];
216
219
 
241
244
 
242
245
        sscanf(&line[2],"%x",&displ);
243
246
        fseek(in, displ, SEEK_SET);
 
247
        fflush(out);
 
248
        displ_out = ftell(out);
 
249
        if((errorflag_displ==0) && (displ != displ_out))
 
250
        {
 
251
           fprintf(stderr, "Length error at the line before:   %s", line);
 
252
           errorflag_displ = 1;
 
253
        }
244
254
 
245
255
        if (line[0] == 'S') {
246
256
            SPECT_SEQ buf_spect;