diff options
author | Nick Kew <niq@apache.org> | 2008-03-31 22:10:36 +0000 |
---|---|---|
committer | Nick Kew <niq@apache.org> | 2008-03-31 22:10:36 +0000 |
commit | 500c9cb211aa25db1624eadd3325b97c5be02355 (patch) | |
tree | 10fdf2a42c532a717e10c93d68118e6fa57cfe4e /include/ap_expr.h | |
parent | 13a49c46af2d2199c0a32af05efc005ca26cf9d4 (diff) | |
download | httpd-500c9cb211aa25db1624eadd3325b97c5be02355.tar.gz |
Remove ap_expr_clone from the API (same day it was added:-)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@643175 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/ap_expr.h')
-rw-r--r-- | include/ap_expr.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/ap_expr.h b/include/ap_expr.h index 2dcaf3935e..11dac272a4 100644 --- a/include/ap_expr.h +++ b/include/ap_expr.h @@ -102,7 +102,9 @@ AP_DECLARE(int) ap_expr_eval(request_rec *r, ap_parse_node_t *root, int *was_error, backref_t **reptr, string_func_t string_func, opt_func_t eval_func); /** - * Evaluate an expression + * Evaluate an expression. This is functionally equivalent to + * ap_expr_parse followed by ap_expr_eval, but faster and more efficient + * when an expression only needs to be parsed once and discarded. * @param r The current request * @param expr The expression to parse * @param was_error On return, set to zero if parse successful, nonzero on error @@ -141,19 +143,6 @@ AP_DECLARE(apr_status_t) ap_expr_init(apr_pool_t *pool); */ AP_DECLARE(const char*) ap_expr_string(request_rec *r, const char *str); -/** - * Clone a parse tree. This is required if you create a parse tree - * using ap_expr_parse, and wish to re-use it many times in ap_expr_eval. - * It is not required if you need to use it just once. - * @param pool Pool - * @param node The parse tree to clone - * @param parent Parent node (for internal use when recursing - pass in NULL) - * @return The cloned tree - */ -AP_DECLARE(ap_parse_node_t*) ap_expr_clone_tree(apr_pool_t *pool, - ap_parse_node_t *node, - ap_parse_node_t *parent); - #ifdef __cplusplus } #endif |