Return-Path: Delivered-To: apmail-apache-cvs-archive@apache.org Received: (qmail 92719 invoked by uid 500); 13 May 2001 10:37:12 -0000 Mailing-List: contact apache-cvs-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-cvs@apache.org Received: (qmail 92659 invoked by uid 500); 13 May 2001 10:37:09 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 13 May 2001 10:37:09 -0000 Message-ID: <20010513103709.92626.qmail@apache.org> From: gstein@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/include http_config.h gstein 01/05/13 03:37:08 Modified: . configure.in include http_config.h Log: Implement Jeff's idea for an autoconf-defined symbol to enable the special command function prototype stuff. AP_DEBUG is always set in maintainer mode and AP_DEBUG_HAVE_GCC is set when the compiler is GCC. Submitted by: Jeff Trawick Revision Changes Path 1.155 +5 -1 httpd-2.0/configure.in Index: configure.in =================================================================== RCS file: /home/cvs/httpd-2.0/configure.in,v retrieving revision 1.154 retrieving revision 1.155 diff -u -u -r1.154 -r1.155 --- configure.in 2001/05/12 16:55:00 1.154 +++ configure.in 2001/05/13 10:37:04 1.155 @@ -208,7 +208,11 @@ [PORT=80]) AC_ARG_ENABLE(maintainer-mode,[ --enable-maintainer-mode Turn on debugging and compile time warnings], - [if test "$ac_cv_prog_gcc" = "yes"; then APR_ADDTO(CPPFLAGS,-DAP_DEBUG) fi +[ + if test "$ac_cv_prog_gcc" = "yes"; then + APR_ADDTO(CPPFLAGS,-DAP_DEBUG_HAVE_GCC) + fi + APR_ADDTO(CPPFLAGS, -DAP_DEBUG) ])dnl APACHE_ENABLE_LAYOUT 1.80 +3 -3 httpd-2.0/include/http_config.h Index: http_config.h =================================================================== RCS file: /home/cvs/httpd-2.0/include/http_config.h,v retrieving revision 1.79 retrieving revision 1.80 diff -u -u -r1.79 -r1.80 --- http_config.h 2001/05/11 18:21:27 1.79 +++ http_config.h 2001/05/13 10:37:06 1.80 @@ -120,7 +120,7 @@ typedef struct cmd_parms_struct cmd_parms; -#ifdef AP_DEBUG +#ifdef AP_DEBUG_HAVE_GCC typedef union { const char *(*no_args) (cmd_parms *parms, void *mconfig); @@ -162,7 +162,7 @@ # define AP_INIT_FLAG(directive, func, mconfig, where, help) \ { directive, { .flag=func }, mconfig, where, FLAG, help } -#else +#else /* AP_DEBUG_HAVE_GCC */ typedef const char *(*cmd_func) (); @@ -194,7 +194,7 @@ # define AP_INIT_FLAG(directive, func, mconfig, where, help) \ { directive, func, mconfig, where, FLAG, help } -#endif +#endif /* AP_DEBUG_HAVE_GCC */ typedef struct command_struct command_rec; /**