httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ras...@hyperreal.org
Subject cvs commit: apache-1.3/src Configure
Date Wed, 11 Mar 1998 23:58:05 GMT
rasmus      98/03/11 15:58:04

  Modified:    src      Configure
  Log:
  When writing the SERVER_SUBVERSION -D flag to ap_config.h it came out
  looking like:
  
    #define SERVER_SUBVERSION \"whatever\"
  
  When including this in a file you end up with an unterminated string
  constant.  We want it to look like this instead:
  
    #define SERVER_SUBVERSION "whatever"
  
  The backslashes are only needed in the actual -D argument.
  
  This little patch makes sure that any \" from a -D is replaced with just "
  when ap_config.h is generated.
  
  Revision  Changes    Path
  1.204     +1 -1      apache-1.3/src/Configure
  
  Index: Configure
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/Configure,v
  retrieving revision 1.203
  retrieving revision 1.204
  diff -u -r1.203 -r1.204
  --- Configure	1998/03/11 21:06:05	1.203
  +++ Configure	1998/03/11 23:58:03	1.204
  @@ -1165,7 +1165,7 @@
   # can be used by external modules needing to include Apache
   # header files.
   for cflag in $CFLAGS; do
  -	echo $cflag >>$tmpconfig ;
  +	echo $cflag | sed 's/\\\"/\"/g' >>$tmpconfig ;
   done
   awk > include/ap_config.h < $tmpconfig '
   	BEGIN {
  
  
  

Mime
View raw message