summaryrefslogtreecommitdiff
path: root/include/apr_tables.h
diff options
context:
space:
mode:
authorBrian Pane <brianp@apache.org>2002-07-13 07:08:41 +0000
committerBrian Pane <brianp@apache.org>2002-07-13 07:08:41 +0000
commitf7e9c4b375953a2b13e4a2f6403b1fbc7f431964 (patch)
tree96189dc3792f613a038b20e6cd3d1bbb55f417e5 /include/apr_tables.h
parent270bf7a1d1b700186b45bb2463ccd585ac8974d3 (diff)
downloadapr-f7e9c4b375953a2b13e4a2f6403b1fbc7f431964.tar.gz
Changed apr_table_elts() and apr_is_empty_table() from macros
to functions to make apr_table_t a fully abstract type git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63650 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_tables.h')
-rw-r--r--include/apr_tables.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/apr_tables.h b/include/apr_tables.h
index 0cabeefe4..d2cc0bd18 100644
--- a/include/apr_tables.h
+++ b/include/apr_tables.h
@@ -125,15 +125,14 @@ struct apr_table_entry_t {
* @param t The table
* @return An array containing the contents of the table
*/
-#define apr_table_elts(t) ((const apr_array_header_t *)(t))
+APR_DECLARE(const apr_array_header_t *) apr_table_elts(const apr_table_t *t);
/**
* Determine if the table is empty
* @param t The table to check
* @return True if empty, False otherwise
*/
-#define apr_is_empty_table(t) (((t) == NULL) \
- || (((apr_array_header_t *)(t))->nelts == 0))
+APR_DECLARE(int) apr_is_empty_table(const apr_table_t *t);
/**
* Create an array