apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: apr/tables apr_tables.c
Date Fri, 05 Jul 2002 05:39:01 GMT
brianp      2002/07/04 22:39:01

  Modified:    include  apr_tables.h
               tables   apr_tables.c
  Log:
  Moved the definition of apr_table_t's internals from apr_tables.h
  to apr_tables.c to strengthen its encapsulation
  
  Revision  Changes    Path
  1.31      +0 -15     apr/include/apr_tables.h
  
  Index: apr_tables.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_tables.h,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- apr_tables.h	28 Jun 2002 22:45:38 -0000	1.30
  +++ apr_tables.h	5 Jul 2002 05:39:01 -0000	1.31
  @@ -102,21 +102,6 @@
       char *elts;
   };
   
  -/** The opaque string-content table type */
  -struct apr_table_t {
  -    /* This has to be first to promote backwards compatibility with
  -     * older modules which cast a apr_table_t * to an apr_array_header_t *...
  -     * they should use the table_elts() function for most of the
  -     * cases they do this for.
  -     */
  -    /** The underlying array for the table */
  -    apr_array_header_t a;
  -#ifdef MAKE_TABLE_PROFILE
  -    /** Who created the array. */
  -    void *creator;
  -#endif
  -};
  -
   /**
    * The (opaque) structure for string-content tables.
    */
  
  
  
  1.30      +15 -0     apr/tables/apr_tables.c
  
  Index: apr_tables.c
  ===================================================================
  RCS file: /home/cvs/apr/tables/apr_tables.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- apr_tables.c	28 Jun 2002 22:49:24 -0000	1.29
  +++ apr_tables.c	5 Jul 2002 05:39:01 -0000	1.30
  @@ -337,6 +337,21 @@
       checksum &= CASE_MASK;                     \
   }
   
  +/** The opaque string-content table type */
  +struct apr_table_t {
  +    /* This has to be first to promote backwards compatibility with
  +     * older modules which cast a apr_table_t * to an apr_array_header_t *...
  +     * they should use the table_elts() function for most of the
  +     * cases they do this for.
  +     */
  +    /** The underlying array for the table */
  +    apr_array_header_t a;
  +#ifdef MAKE_TABLE_PROFILE
  +    /** Who created the array. */
  +    void *creator;
  +#endif
  +};
  +
   /*
    * XXX: if you tweak this you should look at is_empty_table() and table_elts()
    * in alloc.h
  
  
  

Mime
View raw message