httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@hyperreal.org
Subject cvs commit: apache-1.3/src/ap ap_snprintf.c
Date Thu, 02 Sep 1999 16:27:34 GMT
martin      99/09/02 09:27:31

  Modified:    src/ap   ap_snprintf.c
  Log:
  Some buggy compilers (noteably on 32 bit platforms) cannot deal with
  "register" in combination with "long long" types. Drop the register
  attribute in these cases.
  
  Reviewed by: Greg Stein, Roy T. Fielding
  
  Revision  Changes    Path
  1.36      +4 -4      apache-1.3/src/ap/ap_snprintf.c
  
  Index: ap_snprintf.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/ap/ap_snprintf.c,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- ap_snprintf.c	1999/08/06 22:15:59	1.35
  +++ ap_snprintf.c	1999/09/02 16:27:26	1.36
  @@ -401,12 +401,12 @@
       return (p);
   }
   
  -static char *conv_10_quad(register widest_int num, register bool_int is_unsigned,
  +static char *conv_10_quad(widest_int num, register bool_int is_unsigned,
   		     register bool_int *is_negative, char *buf_end,
   		     register int *len)
   {
       register char *p = buf_end;
  -    register u_widest_int magnitude;
  +    u_widest_int magnitude;
   
       /*
        * If the value is less than the maximum unsigned long value,
  @@ -445,7 +445,7 @@
        * We use a do-while loop so that we write at least 1 digit 
        */
       do {
  -	register u_widest_int new_magnitude = magnitude / 10;
  +	u_widest_int new_magnitude = magnitude / 10;
   
   	*--p = (char) (magnitude - new_magnitude * 10 + '0');
   	magnitude = new_magnitude;
  @@ -618,7 +618,7 @@
       return (p);
   }
   
  -static char *conv_p2_quad(register u_widest_int num, register int nbits,
  +static char *conv_p2_quad(u_widest_int num, register int nbits,
   		     char format, char *buf_end, register int *len)
   {
       register int mask = (1 << nbits) - 1;
  
  
  

Mime
View raw message