Browse Source

Move isspace2 from compiledict.c to translate.c.

master
Reece H. Dunn 7 years ago
parent
commit
54e87adbb8
3 changed files with 11 additions and 11 deletions
  1. 0
    10
      src/libespeak-ng/compiledict.c
  2. 10
    0
      src/libespeak-ng/translate.c
  3. 1
    1
      src/libespeak-ng/translate.h

+ 0
- 10
src/libespeak-ng/compiledict.c View File

@@ -171,16 +171,6 @@ typedef struct {
int group3_ix;
} RGROUP;

int isspace2(unsigned int c)
{
// can't use isspace() because on Windows, isspace(0xe1) gives TRUE !
int c2;

if (((c2 = (c & 0xff)) == 0) || (c > ' '))
return 0;
return 1;
}

void print_dictionary_flags(unsigned int *flags, char *buf, int buf_len)
{
int stress;

+ 10
- 0
src/libespeak-ng/translate.c View File

@@ -265,6 +265,16 @@ static int IsSpace(unsigned int c)
return iswspace(c);
}

int isspace2(unsigned int c)
{
// can't use isspace() because on Windows, isspace(0xe1) gives TRUE !
int c2;

if (((c2 = (c & 0xff)) == 0) || (c > ' '))
return 0;
return 1;
}

void DeleteTranslator(Translator *tr)
{
if (tr->data_dictlist != NULL)

+ 1
- 1
src/libespeak-ng/translate.h View File

@@ -1,7 +1,7 @@
/*
* Copyright (C) 2005 to 2014 by Jonathan Duddington
* email: [email protected]
* Copyright (C) 2015 Reece H. Dunn
* Copyright (C) 2015-2017 Reece H. Dunn
*
* 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

Loading…
Cancel
Save