]> TLD Linux GIT Repositories - packages/gcc.git/blob - gcc-prism.patch
- rel 9; add patch 14
[packages/gcc.git] / gcc-prism.patch
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
3 @@ -38,7 +38,6 @@
4  #endif
5  
6  #ifndef DISABLE_GETENV_PROPERTIES
7 -#include <ctype.h>
8  #include <java-props.h>
9  #define PROCESS_GCJ_PROPERTIES process_gcj_properties()
10  #else
11 @@ -985,6 +984,8 @@
12  
13  #ifndef DISABLE_GETENV_PROPERTIES
14  
15 +#define c_isspace(c) (memchr (" \t\n\r\v\f", c, 6) != NULL)
16 +
17  static char *
18  next_property_key (char *s, size_t *length)
19  {
20 @@ -993,7 +994,7 @@
21    JvAssert (s);
22  
23    // Skip over whitespace
24 -  while (isspace (*s))
25 +  while (c_isspace (*s))
26      s++;
27  
28    // If we've reached the end, return NULL.  Also return NULL if for
29 @@ -1005,7 +1006,7 @@
30  
31    // Determine the length of the property key.
32    while (s[l] != 0
33 -        && ! isspace (s[l])
34 +        && ! c_isspace (s[l])
35          && s[l] != ':'
36          && s[l] != '=')
37      {
38 @@ -1027,19 +1028,19 @@
39  
40    JvAssert (s);
41  
42 -  while (isspace (*s))
43 +  while (c_isspace (*s))
44      s++;
45  
46    if (*s == ':'
47        || *s == '=')
48      s++;
49  
50 -  while (isspace (*s))
51 +  while (c_isspace (*s))
52      s++;
53  
54    // Determine the length of the property value.
55    while (s[l] != 0
56 -        && ! isspace (s[l])
57 +        && ! c_isspace (s[l])
58          && s[l] != ':'
59          && s[l] != '=')
60      {