]> granicus.if.org Git - apache/commitdiff
Namespace protect the rest of the macros defined by ap_config.h
authorRyan Bloom <rbb@apache.org>
Thu, 19 Oct 2000 00:05:00 +0000 (00:05 +0000)
committerRyan Bloom <rbb@apache.org>
Thu, 19 Oct 2000 00:05:00 +0000 (00:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86661 13f79535-47bb-0310-9956-ffa450edef68

STATUS
include/ap_config.h
include/http_log.h
modules/http/http_core.c
modules/http/http_protocol.c
server/log.c
server/main.c
server/mpm/mpmt_pthread/scoreboard.h
server/mpm/prefork/scoreboard.h
server/mpm/spmt_os2/scoreboard.h

diff --git a/STATUS b/STATUS
index ebbce032e33be5e8547a12461c3d4ff790335f33..8807b0928d3622531d650079332ff845487adf11 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -1,5 +1,5 @@
 Apache 2.0 STATUS:
-Last modified at [$Date: 2000/10/18 23:11:48 $]
+Last modified at [$Date: 2000/10/19 00:04:53 $]
 
 Release:
 
@@ -147,9 +147,6 @@ RELEASE NON-SHOWSTOPPERS BUT WOULD BE REAL NICE TO WRAP THESE UP:
       decided to do.
         Status: Greg +1 (volunteers), Ryan +1
 
-    * Go through ap_config.h and namespace-protect the symbols (e.g. USE_*).
-      Some symbols can/should move to mpm_common.h where possible.
-
     * Explore use of a post-config hook for the code in http_main.c which
       calls ap_fixup_virutal_hosts(), ap_fini_vhost_config(), and
       ap_sort_hooks()  [to reduce the logic in main()]
index e09635ac7e6420ecd51efbb9222c0fcbabe81623..1d7df4cb3056ee02d0d6945c66b0dbd0957941d9 100644 (file)
 #undef VERSION
 
 #if APR_HAS_MMAP
-#define USE_MMAP_FILES 1
+#define AP_USE_MMAP_FILES 1
 #else
-#undef USE_MMAP_FILES
+#undef AP_USE_MMAP_FILES
 #endif
 
 #if APR_FILE_BASED_SHM
-#define USE_FILE_BASED_SCOREBOARD
+#define AP_USE_FILE_BASED_SCOREBOARD
 #else
-#define USE_MEM_BASED_SCOREBOARD
+#define AP_USE_MEM_BASED_SCOREBOARD
 #endif
 
 /* If APR has OTHER_CHILD logic, use reliable piped logs.
  */
 #if (APR_HAS_OTHER_CHILD)
-#define HAVE_RELIABLE_PIPED_LOGS TRUE
+#define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
 #endif
 
 #if defined(CHARSET_EBCDIC) && !defined(APACHE_XLATE)
index aecbed8c4885b3be146be68d4ed62cf68c69ea91..c35c6d37dabf30bbba45b18116394fd6dd27e4ab 100644 (file)
@@ -229,7 +229,7 @@ struct piped_log {
     apr_file_t *fds[2];
     /* XXX - an #ifdef that needs to be eliminated from public view. Shouldn't
      * be hard */
-#ifdef HAVE_RELIABLE_PIPED_LOGS
+#ifdef AP_HAVE_RELIABLE_PIPED_LOGS
     /** The name of the program the logging process is running */
     char *program;
     /** The pid of the logging process */
index ad0b1ad295090d3719b89a8dd52e89bbffb93081..4d1afb2e2b36c7fc4cf5e7e32c1e139fe4154dc5 100644 (file)
@@ -94,7 +94,7 @@
 #define MIN_SIZE_TO_WRITE  9000
 
 /* Allow Apache to use ap_mmap */
-#ifdef USE_MMAP_FILES
+#ifdef AP_USE_MMAP_FILES
 #include "apr_mmap.h"
 
 /* mmap support for static files based on ideas from John Heidemann's
 #ifndef MMAP_LIMIT
 #define MMAP_LIMIT              (4*1024*1024)
 #endif
-#endif /* USE_MMAP_FILES */
+#endif /* AP_USE_MMAP_FILES */
 
 /* LimitXMLRequestBody handling */
 #define AP_LIMIT_UNSET                  ((long) -1)
@@ -2926,7 +2926,7 @@ static int default_handler(request_rec *r)
     int rangestatus, errstatus;
     apr_file_t *fd = NULL;
     apr_status_t status;
-#ifdef USE_MMAP_FILES
+#ifdef AP_USE_MMAP_FILES
     apr_mmap_t *mm = NULL;
 #endif
     /* XXX if/when somebody writes a content-md5 filter we either need to
@@ -2985,7 +2985,7 @@ static int default_handler(request_rec *r)
         return errstatus;
     }
 
-#ifdef USE_MMAP_FILES
+#ifdef AP_USE_MMAP_FILES
     if ((r->finfo.size >= MMAP_THRESHOLD)
        && (r->finfo.size < MMAP_LIMIT)
        && (!r->header_only || bld_content_md5)) {
@@ -3038,7 +3038,7 @@ static int default_handler(request_rec *r)
            }
        }
 
-#ifdef USE_MMAP_FILES
+#ifdef AP_USE_MMAP_FILES
     }
     else {
        unsigned char *addr;
index 0639ed1c1bfd34555d3e2c0938ef3b2bedc163d3..73c6f559388b3aebc94257c85bb0ab468898fa44 100644 (file)
@@ -2667,7 +2667,7 @@ AP_DECLARE(apr_status_t) ap_send_fd(apr_file_t *fd, request_rec *r, apr_off_t of
 } 
 #endif
 
-#ifdef USE_MMAP_FILES
+#ifdef AP_USE_MMAP_FILES
 
 /* The code writes MMAP_SEGMENT_SIZE bytes at a time.  This is due to Apache's
  * timeout model, which is a timeout per-write rather than a time for the
@@ -2700,7 +2700,7 @@ AP_DECLARE(size_t) ap_send_mmap(apr_mmap_t *mm, request_rec *r, size_t offset,
 
     return mm->size; /* XXX - change API to report apr_status_t? */
 }
-#endif /* USE_MMAP_FILES */
+#endif /* AP_USE_MMAP_FILES */
 
 AP_DECLARE(int) ap_rputc(int c, request_rec *r)
 {
index 5e5be7010fe4d0c9cf9667cbf4b2fa4c356d40c6..33dfcd455e89dc47fa8c307cebf0793ba7d984b1 100644 (file)
@@ -553,7 +553,7 @@ AP_DECLARE(void) ap_log_assert(const char *szExp, const char *szFile, int nLine)
 
 /* piped log support */
 
-#ifdef HAVE_RELIABLE_PIPED_LOGS
+#ifdef AP_HAVE_RELIABLE_PIPED_LOGS
 /* forward declaration */
 static void piped_log_maintenance(int reason, void *data, apr_wait_t status);
 
index 47df11db6eadfbc5f404ce6a182b65286dc6131b..9682eff8754b31022033ef7a47cbba0d82b5f28e 100644 (file)
@@ -95,18 +95,18 @@ static void show_compile_settings(void)
 #ifdef HAVE_SHMGET
     printf(" -D HAVE_SHMGET\n");
 #endif
-#ifdef USE_FILE_BASED_SCOREBOARD
-    printf(" -D USE_FILE_BASED_SCOREBOARD\n");
+#ifdef AP_USE_FILE_BASED_SCOREBOARD
+    printf(" -D AP_USE_FILE_BASED_SCOREBOARD\n");
 #endif
-#ifdef USE_MEM_BASED_SCOREBOARD
-    printf(" -D USE_MEM_BASED_SCOREBOARD\n");
+#ifdef AP_USE_MEM_BASED_SCOREBOARD
+    printf(" -D AP_USE_MEM_BASED_SCOREBOARD\n");
 #endif
-#ifdef USE_MMAP_FILES
-    printf(" -D USE_MMAP_FILES\n");
+#ifdef AP_USE_MMAP_FILES
+    printf(" -D AP_USE_MMAP_FILES\n");
 #ifdef MMAP_SEGMENT_SIZE
        printf(" -D MMAP_SEGMENT_SIZE=%ld\n",(long)MMAP_SEGMENT_SIZE);
 #endif
-#endif /*USE_MMAP_FILES*/
+#endif /*AP_USE_MMAP_FILES*/
 #ifdef NO_WRITEV
     printf(" -D NO_WRITEV\n");
 #endif
@@ -134,8 +134,8 @@ static void show_compile_settings(void)
 #if APR_HAS_OTHER_CHILD
     printf(" -D APR_HAS_OTHER_CHILD\n");
 #endif
-#ifdef HAVE_RELIABLE_PIPED_LOGS
-    printf(" -D HAVE_RELIABLE_PIPED_LOGS\n");
+#ifdef AP_HAVE_RELIABLE_PIPED_LOGS
+    printf(" -D AP_HAVE_RELIABLE_PIPED_LOGS\n");
 #endif
 #ifdef BUFFERED_LOGS
     printf(" -D BUFFERED_LOGS\n");
index b67b2ae33e9fa7f2a0459d136362dc5eebdd834e..28b3796a83a1ce2ef5b60cdb898469e7e39cdf12 100644 (file)
@@ -73,7 +73,7 @@ extern "C" {
 #include "mpm_default.h"       /* For HARD_.*_LIMIT */
 
 /*The optimized timeout code only works if we're not using a scoreboard file*/
-#if defined(USE_MEM_BASED_SCOREBOARD)
+#if defined(AP_USE_MEM_BASED_SCOREBOARD)
 #define OPTIMIZE_TIMEOUTS
 #endif
 
index 002a75e2c2fb51af5eb5fffb734546a962493dfd..241dc3eb12404fed3a68f3e2e647571117b77c8d 100644 (file)
@@ -75,7 +75,7 @@ extern "C" {
 
 /* The optimized timeout code only works if we're not using a scoreboard file
  */
-#if defined(USE_MEM_BASED_SCOREBOARD)
+#if defined(AP_USE_MEM_BASED_SCOREBOARD)
 #define OPTIMIZE_TIMEOUTS
 #endif
 
index 595172662cfb47175eb52e8a252c473659155779..d1d77e9c309e18544d74952305a5491b9583ce0d 100644 (file)
@@ -69,7 +69,7 @@ extern "C" {
 
 /* The optimized timeout code only works if we're not using a scoreboard file
  */
-#if defined(USE_MEM_BASED_SCOREBOARD)
+#if defined(AP_USE_MEM_BASED_SCOREBOARD)
 #define OPTIMIZE_TIMEOUTS
 #endif