9
9
*
10
10
*
11
11
* IDENTIFICATION
12
- * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.43 2000/10/26 17:31:34 tgl Exp $
12
+ * $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.44 2000/12/03 20:45:33 tgl Exp $
13
13
*
14
14
*-------------------------------------------------------------------------
15
15
*/
@@ -104,7 +104,7 @@ get_token(char **tok, char **val, char *str)
104
104
return NULL ;
105
105
106
106
/* skip leading white space */
107
- while (isspace ((int ) * str ))
107
+ while (isspace ((unsigned char ) * str ))
108
108
str ++ ;
109
109
110
110
/* end of string? then return NULL */
@@ -118,15 +118,16 @@ get_token(char **tok, char **val, char *str)
118
118
* tok = str ;
119
119
120
120
/* Advance to end of word */
121
- while (* str && !isspace ((int ) * str ) && * str != ',' && * str != '=' )
121
+ while (* str && !isspace ((unsigned char ) * str ) &&
122
+ * str != ',' && * str != '=' )
122
123
str ++ ;
123
124
124
125
/* Terminate word string for caller */
125
126
ch = * str ;
126
127
* str = '\0' ;
127
128
128
129
/* Skip any whitespace */
129
- while (isspace ((int ) ch ))
130
+ while (isspace ((unsigned char ) ch ))
130
131
ch = * (++ str );
131
132
132
133
/* end of string? */
@@ -144,7 +145,7 @@ get_token(char **tok, char **val, char *str)
144
145
str ++ ;
145
146
146
147
/* skip whitespace after '=' */
147
- while (isspace ((int ) * str ))
148
+ while (isspace ((unsigned char ) * str ))
148
149
str ++ ;
149
150
150
151
if (* str == ',' || * str == '\0' )
@@ -154,15 +155,15 @@ get_token(char **tok, char **val, char *str)
154
155
* val = str ;
155
156
156
157
/* Advance to end of word */
157
- while (* str && !isspace ((int ) * str ) && * str != ',' )
158
+ while (* str && !isspace ((unsigned char ) * str ) && * str != ',' )
158
159
str ++ ;
159
160
160
161
/* Terminate word string for caller */
161
162
ch = * str ;
162
163
* str = '\0' ;
163
164
164
165
/* Skip any whitespace */
165
- while (isspace ((int ) ch ))
166
+ while (isspace ((unsigned char ) ch ))
166
167
ch = * (++ str );
167
168
168
169
/* end of string? */
0 commit comments