You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by st...@apache.org on 2002/03/02 10:26:07 UTC

cvs commit: apr/memory/unix apr_pools.c

striker     02/03/02 01:26:07

  Modified:    include  apr_general.h
               memory/unix apr_pools.c
  Log:
  Export the APR_ALIGN macros.
  
  Revision  Changes    Path
  1.66      +11 -0     apr/include/apr_general.h
  
  Index: apr_general.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_general.h,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- apr_general.h	18 Feb 2002 06:12:09 -0000	1.65
  +++ apr_general.h	2 Mar 2002 09:26:07 -0000	1.66
  @@ -159,6 +159,17 @@
   #endif
   
   /**
  + * Allignment macros
  + */
  +
  +/* APR_ALIGN() is only to be used to align on a power of 2 boundary */
  +#define APR_ALIGN(size, boundary) \
  +    (((size) + ((boundary) - 1)) & ~((boundary) - 1))
  +
  +#define APR_ALIGN_DEFAULT(size) APR_ALIGN(size, 8)
  +
  +
  +/**
    * String and memory functions
    */
   
  
  
  
  1.155     +0 -11     apr/memory/unix/apr_pools.c
  
  Index: apr_pools.c
  ===================================================================
  RCS file: /home/cvs/apr/memory/unix/apr_pools.c,v
  retrieving revision 1.154
  retrieving revision 1.155
  diff -u -r1.154 -r1.155
  --- apr_pools.c	9 Feb 2002 14:49:16 -0000	1.154
  +++ apr_pools.c	2 Mar 2002 09:26:07 -0000	1.155
  @@ -100,17 +100,6 @@
   
   
   /*
  - * Macros and defines
  - */
  -
  -/* APR_ALIGN() is only to be used to align on a power of 2 boundary */
  -#define APR_ALIGN(size, boundary) \
  -    (((size) + ((boundary) - 1)) & ~((boundary) - 1))
  -
  -#define APR_ALIGN_DEFAULT(size) APR_ALIGN(size, 8)
  -
  -
  -/*
    * Structures
    */