FreeBSD/contrib/subversion/subversion/libsvn_subr/utf.c
/* Put back NODE into the xlate handle cache for use by other calls.

   Note: this function is not thread-safe. Call put_xlate_handle_node
   instead. */
Put back NODE into the xlate handle cache for use by other calls.
Note: this function is not thread-safe.
Put back NODE into the xlate handle cache for use by other calls . Note : this function is not thread - safe .
static svn_error_t *
put_xlate_handle_node_internal(xlate_handle_node_t *node,
                               const char *userdata_key)
{
  xlate_handle_node_t **node_p = svn_hash_gets(xlate_handle_hash, userdata_key);
  if (node_p == NULL)
    {
      userdata_key = apr_pstrdup(apr_hash_pool_get(xlate_handle_hash),
                                  userdata_key);
      node_p = apr_palloc(apr_hash_pool_get(xlate_handle_hash),
                          sizeof(*node_p));
      *node_p = NULL;
      svn_hash_sets(xlate_handle_hash, userdata_key, node_p);
    }
  node->next = *node_p;
  *node_p = node;
  return SVN_NO_ERROR;
}
static svn_error_t * put_xlate_handle_node_internal ( xlate_handle_node_t * node , const char * userdata_key ) { xlate_handle_node_t * * node_p = svn_hash_gets ( xlate_handle_hash , userdata_key ) ; if ( node_p == NULL ) { userdata_key = apr_pstrdup ( apr_hash_pool_get ( xlate_handle_hash ) , userdata_key ) ; node_p = apr_palloc ( apr_hash_pool_get ( xlate_handle_hash ) , sizeof ( * node_p ) ) ; * node_p = NULL ; svn_hash_sets ( xlate_handle_hash , userdata_key , node_p ) ; } node -> next = * node_p ; * node_p = node ; return SVN_NO_ERROR ; }
Put back NODE into the xlate handle cache for use by other calls.
Put back NODE into the xlate handle cache for use by other calls .