FreeBSD/contrib/subversion/subversion/libsvn_fs_x/lock.c
/* Set the value of KEY (whose size is KEY_LEN, or APR_HASH_KEY_STRING
   if unknown) to an svn_string_t-ized version of VALUE (whose size is
   VALUE_LEN, or APR_HASH_KEY_STRING if unknown) in HASH.  The value
   will be allocated in POOL; KEY will not be duped.  If either KEY or VALUE
   is NULL, this function will do nothing. */
Set the value of KEY (whose size is KEY_LEN, or APR_HASH_KEY_STRING
if unknown) to an svn_string_t-ized version of VALUE (whose size is
VALUE_LEN, or APR_HASH_KEY_STRING if unknown) in HASH.  The value
will be allocated in POOL; KEY will not be duped.  If either KEY or VALUE
is NULL, this function will do nothing.
Set the value of KEY ( whose size is KEY_LEN or APR_HASH_KEY_STRING if unknown ) to an svn_string_t - ized version of VALUE ( whose size is VALUE_LEN or APR_HASH_KEY_STRING if unknown ) in HASH . The value will be allocated in POOL ; KEY will not be duped . If either KEY or VALUE is NULL this function will do nothing .
static void
hash_store(apr_hash_t *hash,
           const char *key,
           apr_ssize_t key_len,
           const char *value,
           apr_ssize_t value_len,
           apr_pool_t *pool)
{
  if (! (key && value))
    return;
  if (value_len == APR_HASH_KEY_STRING)
    value_len = strlen(value);
  apr_hash_set(hash, key, key_len,
               svn_string_ncreate(value, value_len, pool));
}
static void hash_store ( apr_hash_t * hash , const char * key , apr_ssize_t key_len , const char * value , apr_ssize_t value_len , apr_pool_t * pool ) { if ( ! ( key && value ) ) return ; if ( value_len == APR_HASH_KEY_STRING ) value_len = strlen ( value ) ; apr_hash_set ( hash , key , key_len , svn_string_ncreate ( value , value_len , pool ) ) ; }
Set the value of KEY (whose size is KEY_LEN, or APR_HASH_KEY_STRING
if unknown) to an svn_string_t-ized version of VALUE (whose size is
VALUE_LEN, or APR_HASH_KEY_STRING if unknown) in HASH.
Set the value of KEY ( whose size is KEY_LEN or APR_HASH_KEY_STRING if unknown ) to an svn_string_t - ized version of VALUE ( whose size is VALUE_LEN or APR_HASH_KEY_STRING if unknown ) in HASH .