1 --- gcc-4_5-branch/libjava/prims.cc 2010/04/06 11:07:48 157989
2 +++ gcc-4_5-branch/libjava/prims.cc 2011/11/24 07:23:16 181687
6 #ifndef DISABLE_GETENV_PROPERTIES
8 #include <java-props.h>
9 #define PROCESS_GCJ_PROPERTIES process_gcj_properties()
13 #ifndef DISABLE_GETENV_PROPERTIES
15 +#define c_isspace(c) (memchr (" \t\n\r\v\f", c, 6) != NULL)
18 next_property_key (char *s, size_t *length)
23 // Skip over whitespace
24 - while (isspace (*s))
25 + while (c_isspace (*s))
28 // If we've reached the end, return NULL. Also return NULL if for
31 // Determine the length of the property key.
34 + && ! c_isspace (s[l])
38 @@ -1027,19 +1028,19 @@
42 - while (isspace (*s))
43 + while (c_isspace (*s))
50 - while (isspace (*s))
51 + while (c_isspace (*s))
54 // Determine the length of the property value.
57 + && ! c_isspace (s[l])