subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gst...@apache.org
Subject svn commit: r1332739 - in /subversion/trunk/subversion: include/svn_props.h libsvn_subr/properties.c
Date Tue, 01 May 2012 16:24:45 GMT
Author: gstein
Date: Tue May  1 16:24:44 2012
New Revision: 1332739

URL: http://svn.apache.org/viewvc?rev=1332739&view=rev
Log:
Small tweaks to some property functions.

* subversion/include/svn_props.h:
  (svn_prop_hash_dup): fix the docstring to note ptr-to-string

* subversion/libsvn_subr/properties.c:
  (svn_categorize_props): update to latest svn_property_kind()
  (svn_prop_hash_dup): use faster apr_pstrmemdup()

Modified:
    subversion/trunk/subversion/include/svn_props.h
    subversion/trunk/subversion/libsvn_subr/properties.c

Modified: subversion/trunk/subversion/include/svn_props.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_props.h?rev=1332739&r1=1332738&r2=1332739&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_props.h (original)
+++ subversion/trunk/subversion/include/svn_props.h Tue May  1 16:24:44 2012
@@ -111,7 +111,7 @@ svn_prop_array_to_hash(const apr_array_h
 
 /**
  * Creates a deep copy of @a hash (keys <tt>const char *</tt> and
- * values <tt>const svn_string_t</tt>) in @a pool.
+ * values <tt>const svn_string_t *</tt>) in @a pool.
  *
  * @since New in 1.6.
  */

Modified: subversion/trunk/subversion/libsvn_subr/properties.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/properties.c?rev=1332739&r1=1332738&r2=1332739&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/properties.c (original)
+++ subversion/trunk/subversion/libsvn_subr/properties.c Tue May  1 16:24:44 2012
@@ -122,7 +122,7 @@ svn_categorize_props(const apr_array_hea
       enum svn_prop_kind kind;
 
       prop = &APR_ARRAY_IDX(proplist, i, svn_prop_t);
-      kind = svn_property_kind(NULL, prop->name);
+      kind = svn_property_kind2(prop->name);
       newprop = NULL;
 
       if (kind == svn_prop_regular_kind)
@@ -305,7 +305,7 @@ svn_prop_hash_dup(apr_hash_t *hash,
       void *prop;
 
       apr_hash_this(hi, &key, &klen, &prop);
-      apr_hash_set(new_hash, apr_pstrdup(pool, key), klen,
+      apr_hash_set(new_hash, apr_pstrmemdup(pool, key, klen), klen,
                    svn_string_dup(prop, pool));
     }
   return new_hash;



Mime
View raw message