function to `unsigned char'.
* loadmsgcat.c (_nl_load_domain): Likewise.
* localealias.c (read_alias_file, alias_compare): Likewise.
* localcharset.c: Include "gettextP.h".
* plural.y (__attribute__): Define.
(yyerror): Mark parameter with __attribute__ ((__unused__)).
* plural.c: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46743
138bc75d-0d04-0410-961f-
82ee72b054a4
+2001-11-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * l10nflist.c (_nl_normalize_codeset): Cast argument of ctype
+ function to `unsigned char'.
+ * loadmsgcat.c (_nl_load_domain): Likewise.
+ * localealias.c (read_alias_file, alias_compare): Likewise.
+ * localcharset.c: Include "gettextP.h".
+ * plural.y (__attribute__): Define.
+ (yyerror): Mark parameter with __attribute__ ((__unused__)).
+ * plural.c: Regenerate.
+
2001-10-24 Zack Weinberg <zack@codesourcery.com>
* loadmsgcat.c (INTTYPE_SIGNED, INTTYPE_MINIMUM,
size_t cnt;
for (cnt = 0; cnt < name_len; ++cnt)
- if (isalnum (codeset[cnt]))
+ if (isalnum ((unsigned char)codeset[cnt]))
{
++len;
- if (isalpha (codeset[cnt]))
+ if (isalpha ((unsigned char)codeset[cnt]))
only_digit = 0;
}
wp = retval;
for (cnt = 0; cnt < name_len; ++cnt)
- if (isalpha (codeset[cnt]))
- *wp++ = tolower (codeset[cnt]);
- else if (isdigit (codeset[cnt]))
+ if (isalpha ((unsigned char)codeset[cnt]))
+ *wp++ = tolower ((unsigned char)codeset[cnt]);
+ else if (isdigit ((unsigned char)codeset[cnt]))
*wp++ = codeset[cnt];
*wp = '\0';
struct parse_args args;
nplurals += 9;
- while (*nplurals != '\0' && isspace (*nplurals))
+ while (*nplurals != '\0' && isspace ((unsigned char)*nplurals))
++nplurals;
#if defined HAVE_STRTOUL || defined _LIBC
n = strtoul (nplurals, &endp, 10);
# include <windows.h>
#endif
+#include "gettextP.h"
+
#ifndef DIRECTORY_SEPARATOR
# define DIRECTORY_SEPARATOR '/'
#endif
cp = buf;
/* Ignore leading white space. */
- while (isspace (cp[0]))
+ while (isspace ((unsigned char)cp[0]))
++cp;
/* A leading '#' signals a comment line. */
if (cp[0] != '\0' && cp[0] != '#')
{
alias = cp++;
- while (cp[0] != '\0' && !isspace (cp[0]))
+ while (cp[0] != '\0' && !isspace ((unsigned char)cp[0]))
++cp;
/* Terminate alias name. */
if (cp[0] != '\0')
*cp++ = '\0';
/* Now look for the beginning of the value. */
- while (isspace (cp[0]))
+ while (isspace ((unsigned char)cp[0]))
++cp;
if (cp[0] != '\0')
size_t value_len;
value = cp++;
- while (cp[0] != '\0' && !isspace (cp[0]))
+ while (cp[0] != '\0' && !isspace ((unsigned char)cp[0]))
++cp;
/* Terminate value. */
if (cp[0] == '\n')
{
/* I know this seems to be odd but the tolower() function in
some systems libc cannot handle nonalpha characters. */
- c1 = isupper (*p1) ? tolower (*p1) : *p1;
- c2 = isupper (*p2) ? tolower (*p2) : *p2;
+ c1 = isupper ((unsigned char)*p1) ? tolower ((unsigned char)*p1) : *p1;
+ c2 = isupper ((unsigned char)*p2) ? tolower ((unsigned char)*p2) : *p2;
if (c1 == '\0')
break;
++p1;
return result;
}
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#define __attribute__(x)
+#endif
static void
yyerror (str)
- const char *str;
+ const char *str __attribute__ ((__unused__));
{
/* Do nothing. We don't print error messages here. */
}
return result;
}
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#define __attribute__(x)
+#endif
static void
yyerror (str)
- const char *str;
+ const char *str __attribute__ ((__unused__));
{
/* Do nothing. We don't print error messages here. */
}