FreeBSD/contrib/subversion/subversion/libsvn_wc/context.c
/* APR cleanup function used to explicitly close any of our dependent
   data structures before we disappear ourselves. */
APR cleanup function used to explicitly close any of our dependent
data structures before we disappear ourselves.
APR cleanup function used to explicitly close any of our dependent data structures before we disappear ourselves .
static apr_status_t
close_ctx_apr(void *data)
{
  svn_wc_context_t *ctx = data;
  if (ctx->close_db_on_destroy)
    {
      svn_error_t *err = svn_wc__db_close(ctx->db);
      if (err)
        {
          int result = err->apr_err;
          svn_error_clear(err);
          return result;
        }
    }
  return APR_SUCCESS;
}
static apr_status_t close_ctx_apr ( void * data ) { svn_wc_context_t * ctx = data ; if ( ctx -> close_db_on_destroy ) { svn_error_t * err = svn_wc__db_close ( ctx -> db ) ; if ( err ) { int result = err -> apr_err ; svn_error_clear ( err ) ; return result ; } } return APR_SUCCESS ; }
APR cleanup function used to explicitly close any of our dependent
data structures before we disappear ourselves.
APR cleanup function used to explicitly close any of our dependent data structures before we disappear ourselves .