FreeBSD/contrib/subversion/subversion/libsvn_subr/properties.c
/* NOTE: this function is deprecated, but we cannot move it to deprecated.c
   because we need the SIZEOF_*_PREFIX constant symbols defined above.  */
this function is deprecated, but we cannot move it to deprecated.c
because we need the SIZEOF_*_PREFIX constant symbols defined above.
this function is deprecated but we cannot move it to deprecated . c because we need the SIZEOF_ * _PREFIX constant symbols defined above .
svn_prop_kind_t
svn_property_kind(int *prefix_len,
                  const char *prop_name)
{
  svn_prop_kind_t kind = svn_property_kind2(prop_name);
  if (prefix_len)
    {
      if (kind == svn_prop_wc_kind)
        *prefix_len = SIZEOF_WC_PREFIX;
      else if (kind == svn_prop_entry_kind)
        *prefix_len = SIZEOF_ENTRY_PREFIX;
      else
        *prefix_len = 0;
    }
  return kind;
}
svn_prop_kind_t svn_property_kind ( int * prefix_len , const char * prop_name ) { svn_prop_kind_t kind = svn_property_kind2 ( prop_name ) ; if ( prefix_len ) { if ( kind == svn_prop_wc_kind ) * prefix_len = SIZEOF_WC_PREFIX ; else if ( kind == svn_prop_entry_kind ) * prefix_len = SIZEOF_ENTRY_PREFIX ; else * prefix_len = 0 ; } return kind ; }
NOTE: this function is deprecated, but we cannot move it to deprecated.c
because we need the SIZEOF_*_PREFIX constant symbols defined above.
NOTE : this function is deprecated but we cannot move it to deprecated . c because we need the SIZEOF_ * _PREFIX constant symbols defined above .