diff options
author | Doug MacEachern <dougm@apache.org> | 2000-04-28 06:49:50 +0000 |
---|---|---|
committer | Doug MacEachern <dougm@apache.org> | 2000-04-28 06:49:50 +0000 |
commit | cbbf419812c03f4f3e76ac61ea7d14ae6e22e56f (patch) | |
tree | b3a50a0c8fafae0f0e35cdf5dd92efa2f86d1a19 /misc | |
parent | 5258e2cffad128671d2851ed132a7e5c8052a9f5 (diff) | |
download | apr-cbbf419812c03f4f3e76ac61ea7d14ae6e22e56f.tar.gz |
prefix TRUE,FALSE with APR_
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59975 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r-- | misc/win32/names.c | 20 | ||||
-rw-r--r-- | misc/win32/start.c | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/misc/win32/names.c b/misc/win32/names.c index d831842c9..4999045e8 100644 --- a/misc/win32/names.c +++ b/misc/win32/names.c @@ -60,7 +60,7 @@ #include <string.h> #include <sys/stat.h> -/* Returns TRUE if the input string is a string +/* Returns APR_TRUE if the input string is a string * of one or more '.' characters. */ static BOOL OnlyDots(char *pString) @@ -68,13 +68,13 @@ static BOOL OnlyDots(char *pString) char *c; if (*pString == '\0') - return FALSE; + return APR_FALSE; for (c = pString;*c;c++) if (*c != '.') - return FALSE; + return APR_FALSE; - return TRUE; + return APR_TRUE; } /* Accepts as input a pathname, and tries to match it to an @@ -88,8 +88,8 @@ API_EXPORT(char *) ap_os_systemcase_filename(ap_pool_t *pCont, char buf[HUGE_STRING_LEN]; char *pInputName; char *p, *q; - BOOL bDone = FALSE; - BOOL bFileExists = TRUE; + BOOL bDone = APR_FALSE; + BOOL bFileExists = APR_TRUE; HANDLE hFind; WIN32_FIND_DATA wfd; @@ -114,7 +114,7 @@ API_EXPORT(char *) ap_os_systemcase_filename(ap_pool_t *pCont, /* If all we have is a drive letter, then we are done */ if (strlen(pInputName) == 2) - bDone = TRUE; + bDone = APR_TRUE; } q = p; @@ -151,7 +151,7 @@ API_EXPORT(char *) ap_os_systemcase_filename(ap_pool_t *pCont, *p = '\0'; if (strchr(q, '*') || strchr(q, '?')) - bFileExists = FALSE; + bFileExists = APR_FALSE; /* If the path exists so far, call FindFirstFile * again. However, if this portion of the path contains @@ -164,7 +164,7 @@ API_EXPORT(char *) ap_os_systemcase_filename(ap_pool_t *pCont, hFind = FindFirstFile(pInputName, &wfd); if (hFind == INVALID_HANDLE_VALUE) { - bFileExists = FALSE; + bFileExists = APR_FALSE; } else { FindClose(hFind); @@ -185,7 +185,7 @@ API_EXPORT(char *) ap_os_systemcase_filename(ap_pool_t *pCont, p = strchr(p, '\\'); } else { - bDone = TRUE; + bDone = APR_TRUE; } } diff --git a/misc/win32/start.c b/misc/win32/start.c index 95fa14d96..e56172811 100644 --- a/misc/win32/start.c +++ b/misc/win32/start.c @@ -100,11 +100,11 @@ ap_status_t ap_get_oslevel(ap_pool_t *cont, ap_oslevel_e *level) { static OSVERSIONINFO oslev; static unsigned int servpack = 0; - static BOOL first = TRUE; + static BOOL first = APR_TRUE; char *pservpack; if (first) { - first = FALSE; + first = APR_FALSE; oslev.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&oslev); if (oslev.dwPlatformId == VER_PLATFORM_WIN32_NT) { |