Move isspace2 from compiledict.c to translate.c.

This commit is contained in:
Reece H. Dunn
2017-10-24 07:29:58 +01:00
parent da3eefff6f
commit 54e87adbb8
3 changed files with 11 additions and 11 deletions
-10
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
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
View File
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2005 to 2014 by Jonathan Duddington
* email: jonsd@users.sourceforge.net
* 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