You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@locus.apache.org on 2000/09/13 22:20:22 UTC

cvs commit: apache-2.0/src/lib/apr/strings apr_snprintf.c

trawick     00/09/13 13:20:19

  Modified:    src      CHANGES
               src/lib/apr/strings apr_snprintf.c
  Log:
  apr_snprintf(): Get quad format strings working on OS/390 (and perhaps
  some other platforms).  The wrong type (long) was used when grabbing
  a %q(x|d) argument.
  
  Revision  Changes    Path
  1.227     +3 -0      apache-2.0/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/CHANGES,v
  retrieving revision 1.226
  retrieving revision 1.227
  diff -u -r1.226 -r1.227
  --- CHANGES	2000/09/13 02:07:39	1.226
  +++ CHANGES	2000/09/13 20:20:11	1.227
  @@ -1,4 +1,7 @@
   Changes with Apache 2.0a7
  +  *) apr_snprintf(): Get quad format strings working on OS/390 (and perhaps
  +     some other platforms).  [Jeff Trawick]
  +
     *) Modify mod_include to be a filter.  Currently, it has only been tested
        on actual files, but it should work for CGI scripts too.
        [Ryan Bloom]
  
  
  
  1.5       +2 -6      apache-2.0/src/lib/apr/strings/apr_snprintf.c
  
  Index: apr_snprintf.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/strings/apr_snprintf.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- apr_snprintf.c	2000/08/06 06:07:26	1.4
  +++ apr_snprintf.c	2000/09/13 20:20:17	1.5
  @@ -90,21 +90,17 @@
   #ifndef TRUE
   #define TRUE			1
   #endif
  -#ifndef APR_LONGEST_LONG
  -#define APR_LONGEST_LONG	long
  -#endif
   #define NUL			'\0'
   #define WIDE_INT		long
  -#define WIDEST_INT		APR_LONGEST_LONG
   
   typedef WIDE_INT wide_int;
   typedef unsigned WIDE_INT u_wide_int;
  -typedef WIDEST_INT widest_int;
  +typedef apr_int64_t widest_int;
   #ifdef __TANDEM
   /* Although Tandem supports "long long" there is no unsigned variant. */
   typedef unsigned long       u_widest_int;
   #else
  -typedef unsigned WIDEST_INT u_widest_int;
  +typedef apr_uint64_t u_widest_int;
   #endif
   typedef int bool_int;