apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1736552 - /apr/apr/trunk/include/apr_hash.h
Date Fri, 25 Mar 2016 10:27:07 GMT
Author: minfrin
Date: Fri Mar 25 10:27:07 2016
New Revision: 1736552

URL: http://svn.apache.org/viewvc?rev=1736552&view=rev
Log:
Clarify the behaviour of apr_hash_set().

Modified:
    apr/apr/trunk/include/apr_hash.h

Modified: apr/apr/trunk/include/apr_hash.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_hash.h?rev=1736552&r1=1736551&r2=1736552&view=diff
==============================================================================
--- apr/apr/trunk/include/apr_hash.h (original)
+++ apr/apr/trunk/include/apr_hash.h Fri Mar 25 10:27:07 2016
@@ -102,7 +102,8 @@ APR_DECLARE(apr_hash_t *) apr_hash_copy(
  * @param key Pointer to the key
  * @param klen Length of the key. Can be APR_HASH_KEY_STRING to use the string length.
  * @param val Value to associate with the key
- * @remark If the value is NULL the hash entry is deleted.
+ * @remark If the value is NULL the hash entry is deleted. The key is stored as is,
+ *         and so must have a lifetime at least as long as the hash table's pool.
  */
 APR_DECLARE(void) apr_hash_set(apr_hash_t *ht, const void *key,
                                apr_ssize_t klen, const void *val);



Mime
View raw message