From cvs-return-3695-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Fri Jul 05 05:39:03 2002 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 87295 invoked by uid 500); 5 Jul 2002 05:39:03 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 87283 invoked from network); 5 Jul 2002 05:39:02 -0000 Date: 5 Jul 2002 05:39:01 -0000 Message-ID: <20020705053901.22457.qmail@icarus.apache.org> From: brianp@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/tables apr_tables.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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