Checkout
Branko ─îibej
committed
on 04 Jan
Move (some of the) standalone types into separate implementation headers
so that SVN++ can use them directly without exposing APR or other d… Show more
Move (some of the) standalone types into separate implementation headers

so that SVN++ can use them directly without exposing APR or other dependencies.

* subversion/include/svn_opt_impl.h: New file.

 (svn_opt_revision_kind): Moved here from svn_opt.h

* subversion/include/svn_opt.h: Include svn_opt_impl.h.

 (svn_opt_revision_kind): Moved away.

* subversion/include/svn_types_impl.h: New file.

 (svn_error_t): Forward declaration.

 (svn_node_kind_t, svn_tristate_t,

  svn_revnum_t, SVN_INVALID_REVNUM, svn_depth_t): Moved here from svn_types.h.

* subversion/include/svn_types.h: Include svn_types_impl.h.

 (svn_node_kind_t, svn_tristate_t,

  svn_revnum_t, SVN_INVALID_REVNUM, svn_depth_t): Moved away.

[in subversion/bindings/cxx]

* include/svnxx/depth.hpp: Include svn_types_impl.h.

 (depth): Define enum constant values from svn_depth_t.

* include/svnxx/exception.hpp: Include svn_types_impl.h.

 (detail::svn_error): Remove forward declaration.

 (detail::error_ptr): Use svn_error_t directly.

* include/svnxx/revision.hpp: Include svn_opt_impl.h and svn_types_impl.h.

 (revision::number): Use svn_revnum_t for the underlying type and

  SVN_INVALID_REVNUM for the 'invalid' enum constant value.

 (revision::kind): Define enum constant values from svn_opt_revision_kind.

* include/svnxx/tristate.hpp: Include svn_types_impl.h.

 (tristate::value): Define enum constant values from svn_tristate_t.

* src/exception.cpp

 (detail::svn_error): Removed.

 (impl::checked_call): Use svn_error_t instead of detail::svn_error.

Show less