88 |
char *q; |
char *q; |
89 |
int len; |
int len; |
90 |
|
|
91 |
for (; *p && isspace(*p); p++) |
for (; *p && isspace(*(u_char*)p); p++) |
92 |
; |
; |
93 |
for (q = yytext + yyleng - 4; q > p && isspace(*q); q--) |
for (q = yytext + yyleng - 4; q > p && isspace(*(u_char*)q); q--) |
94 |
; |
; |
95 |
len = q - p + 1; |
len = q - p + 1; |
96 |
yylval.string = xmalloc(len + 1); |
yylval.string = xmalloc(len + 1); |
276 |
|
|
277 |
/* Find the delimiter */ |
/* Find the delimiter */ |
278 |
for (endp = p; *endp; endp++) |
for (endp = p; *endp; endp++) |
279 |
if (isspace(*endp)) |
if (isspace(*(u_char*)endp)) |
280 |
break; |
break; |
281 |
|
|
282 |
len = endp - p; |
len = endp - p; |
297 |
int |
int |
298 |
isemptystr(char *text) |
isemptystr(char *text) |
299 |
{ |
{ |
300 |
for (; *text && isspace(*text); text++) |
for (; *text && isspace(*(u_char*)text); text++) |
301 |
; |
; |
302 |
return *text == 0; |
return *text == 0; |
303 |
} |
} |
346 |
{ |
{ |
347 |
int len; |
int len; |
348 |
|
|
349 |
for (len = strlen(s) - 1; len > 0 && isspace(s[len]); len--) |
for (len = strlen(s) - 1; len > 0 && isspace((u_char)s[len]); len--) |
350 |
; |
; |
351 |
if (len > 0) |
if (len > 0) |
352 |
s[len+1] = 0; |
s[len+1] = 0; |
359 |
char *string; |
char *string; |
360 |
int i, j, len; |
int i, j, len; |
361 |
|
|
362 |
for (i = 0; i < yyleng && isspace(yytext[i]); i++) |
for (i = 0; i < yyleng && isspace((u_char)yytext[i]); i++) |
363 |
; |
; |
364 |
for (j = yyleng - 1; j > i && isspace(yytext[i]); j--) |
for (j = yyleng - 1; j > i && isspace((u_char)yytext[i]); j--) |
365 |
; |
; |
366 |
len = j - i + 1; |
len = j - i + 1; |
367 |
string = xmalloc(len + 1); |
string = xmalloc(len + 1); |