mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
Replace is*() macros with our own IS*() ones.
This commit is contained in:
parent
ef769500d4
commit
4ec9316155
@ -37,8 +37,9 @@
|
|||||||
/* include memdebug.h last */
|
/* include memdebug.h last */
|
||||||
#include "memdebug.h"
|
#include "memdebug.h"
|
||||||
|
|
||||||
#define EAT_SPACE(ptr) while( ptr && *ptr && isspace((int)*ptr) ) ptr++
|
#define EAT_SPACE(ptr) while( ptr && *ptr && ISSPACE(*ptr) ) ptr++
|
||||||
#define EAT_WORD(ptr) while( ptr && *ptr && !isspace((int)*ptr) && ('>' != *ptr)) ptr++
|
#define EAT_WORD(ptr) while( ptr && *ptr && !ISSPACE(*ptr) && \
|
||||||
|
('>' != *ptr)) ptr++
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define show(x) printf x
|
#define show(x) printf x
|
||||||
|
@ -119,7 +119,7 @@ static void lograw(unsigned char *buffer, ssize_t len)
|
|||||||
optr += 2;
|
optr += 2;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
sprintf(optr, "%c", (isgraph(ptr[i]) || ptr[i]==0x20) ?ptr[i]:'.');
|
sprintf(optr, "%c", (ISGRAPH(ptr[i]) || ptr[i]==0x20) ?ptr[i]:'.');
|
||||||
width++;
|
width++;
|
||||||
optr++;
|
optr++;
|
||||||
break;
|
break;
|
||||||
|
@ -242,7 +242,7 @@ int ProcessRequest(struct httprequest *req)
|
|||||||
ptr++; /* skip the slash */
|
ptr++; /* skip the slash */
|
||||||
|
|
||||||
/* skip all non-numericals following the slash */
|
/* skip all non-numericals following the slash */
|
||||||
while(*ptr && !isdigit((int)*ptr))
|
while(*ptr && !ISDIGIT(*ptr))
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
||||||
req->testno = strtol(ptr, &ptr, 10);
|
req->testno = strtol(ptr, &ptr, 10);
|
||||||
|
@ -668,7 +668,7 @@ static int validate_access(struct testcase *test,
|
|||||||
ptr++; /* skip the slash */
|
ptr++; /* skip the slash */
|
||||||
|
|
||||||
/* skip all non-numericals following the slash */
|
/* skip all non-numericals following the slash */
|
||||||
while(*ptr && !isdigit((int)*ptr))
|
while(*ptr && !ISDIGIT(*ptr))
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
||||||
/* get the number */
|
/* get the number */
|
||||||
|
Loading…
Reference in New Issue
Block a user