* prims.cc: Don't include ctype.h.
(c_isspace): Define.
(next_property_key, next_property_value): Use it instead
of isspace.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181685
138bc75d-0d04-0410-961f-
82ee72b054a4
+2011-11-24 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/50888
+ * prims.cc: Don't include ctype.h.
+ (c_isspace): Define.
+ (next_property_key, next_property_value): Use it instead
+ of isspace.
+
2011-11-21 Andreas Tobler <andreast@fgznet.ch>
* configure.ac: Fix FreeBSD 10 detection.
2011-11-21 Andreas Tobler <andreast@fgznet.ch>
* configure.ac: Fix FreeBSD 10 detection.
#endif
#ifndef DISABLE_GETENV_PROPERTIES
#endif
#ifndef DISABLE_GETENV_PROPERTIES
#include <java-props.h>
#define PROCESS_GCJ_PROPERTIES process_gcj_properties()
#else
#include <java-props.h>
#define PROCESS_GCJ_PROPERTIES process_gcj_properties()
#else
#ifndef DISABLE_GETENV_PROPERTIES
#ifndef DISABLE_GETENV_PROPERTIES
+#define c_isspace(c) (memchr (" \t\n\r\v\f", c, 6) != NULL)
+
static char *
next_property_key (char *s, size_t *length)
{
static char *
next_property_key (char *s, size_t *length)
{
JvAssert (s);
// Skip over whitespace
JvAssert (s);
// Skip over whitespace
s++;
// If we've reached the end, return NULL. Also return NULL if for
s++;
// If we've reached the end, return NULL. Also return NULL if for
// Determine the length of the property key.
while (s[l] != 0
// Determine the length of the property key.
while (s[l] != 0
&& s[l] != ':'
&& s[l] != '=')
{
&& s[l] != ':'
&& s[l] != '=')
{
s++;
if (*s == ':'
|| *s == '=')
s++;
s++;
if (*s == ':'
|| *s == '=')
s++;
s++;
// Determine the length of the property value.
while (s[l] != 0
s++;
// Determine the length of the property value.
while (s[l] != 0
&& s[l] != ':'
&& s[l] != '=')
{
&& s[l] != ':'
&& s[l] != '=')
{