⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svn_fs.c

📁 subversion-1.4.5.tar.gz 配置svn的源码
💻 C
📖 第 1 页 / 共 5 页
字号:
                    }    {        if (result) {            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);            svn_swig_rb_handle_svn_error(result);        }        vresult = Qnil;    }    return vresult;}static VALUE_wrap_svn_fs_compare_ids(int argc, VALUE *argv, VALUE self) {    svn_fs_id_t *arg1 = (svn_fs_id_t *) 0 ;    svn_fs_id_t *arg2 = (svn_fs_id_t *) 0 ;    int result;    void *temp1 ;    void *temp2 ;    VALUE vresult = Qnil;        if ((argc < 2) || (argc > 2))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);    {        SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_id_t, 1);                                arg1 = (svn_fs_id_t *)temp1;    }    {        SWIG_ConvertPtr(argv[1], &temp2, SWIGTYPE_p_svn_fs_id_t, 1);                                arg2 = (svn_fs_id_t *)temp2;    }    {        result = (int)svn_fs_compare_ids((struct svn_fs_id_t const *)arg1,(struct svn_fs_id_t const *)arg2);                                    }    vresult = INT2NUM(result);    return vresult;}static VALUE_wrap_svn_fs_check_related(int argc, VALUE *argv, VALUE self) {    svn_fs_id_t *arg1 = (svn_fs_id_t *) 0 ;    svn_fs_id_t *arg2 = (svn_fs_id_t *) 0 ;    svn_boolean_t result;    void *temp1 ;    void *temp2 ;    VALUE vresult = Qnil;        if ((argc < 2) || (argc > 2))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);    {        SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_id_t, 1);                                arg1 = (svn_fs_id_t *)temp1;    }    {        SWIG_ConvertPtr(argv[1], &temp2, SWIGTYPE_p_svn_fs_id_t, 1);                                arg2 = (svn_fs_id_t *)temp2;    }    {        result = (svn_boolean_t)svn_fs_check_related((struct svn_fs_id_t const *)arg1,(struct svn_fs_id_t const *)arg2);                                    }    {        vresult = output_helper(vresult, result ? Qtrue : Qfalse);    }    return vresult;}static VALUE_wrap_svn_fs_parse_id(int argc, VALUE *argv, VALUE self) {    char *arg1 = (char *) 0 ;    apr_size_t arg2 ;    apr_pool_t *arg3 = (apr_pool_t *) 0 ;    svn_fs_id_t *result;    VALUE _global_svn_swig_rb_pool ;    apr_pool_t *_global_pool ;    VALUE vresult = Qnil;        {        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg3);        _global_pool = arg3;        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);    }    if ((argc < 2) || (argc > 3))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);    arg1 = StringValuePtr(argv[0]);    arg2 = NUM2ULONG(argv[1]);    if (argc > 2) {            }    {        result = (svn_fs_id_t *)svn_fs_parse_id((char const *)arg1,arg2,arg3);                                    }    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_fs_id_t,0);    {        svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool);        svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);    }    return vresult;}static VALUE_wrap_svn_fs_unparse_id(int argc, VALUE *argv, VALUE self) {    svn_fs_id_t *arg1 = (svn_fs_id_t *) 0 ;    apr_pool_t *arg2 = (apr_pool_t *) 0 ;    svn_string_t *result;    VALUE _global_svn_swig_rb_pool ;    apr_pool_t *_global_pool ;    void *temp1 ;    VALUE vresult = Qnil;        {        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg2);        _global_pool = arg2;        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);    }    if ((argc < 1) || (argc > 2))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_id_t, 1);                                arg1 = (svn_fs_id_t *)temp1;    }    if (argc > 1) {            }    {        result = (svn_string_t *)svn_fs_unparse_id((struct svn_fs_id_t const *)arg1,arg2);                                    }    {        if (result) {            vresult = rb_str_new(result->data, result->len);        } else {            vresult = Qnil;        }    }    {        svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool);        svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);    }    return vresult;}static VALUE_wrap_svn_fs_begin_txn2(int argc, VALUE *argv, VALUE self) {    svn_fs_txn_t **arg1 = (svn_fs_txn_t **) 0 ;    svn_fs_t *arg2 = (svn_fs_t *) 0 ;    svn_revnum_t arg3 ;    apr_uint32_t arg4 ;    apr_pool_t *arg5 = (apr_pool_t *) 0 ;    svn_error_t *result;    VALUE _global_svn_swig_rb_pool ;    apr_pool_t *_global_pool ;    svn_fs_txn_t *temp1 ;    void *temp2 ;    VALUE vresult = Qnil;        {        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);        _global_pool = arg5;        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);    }    {        temp1 = NULL;        arg1 = (svn_fs_txn_t **)&temp1;    }    if ((argc < 3) || (argc > 4))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);    {        SWIG_ConvertPtr(argv[0], &temp2, SWIGTYPE_p_svn_fs_t, 1);                                arg2 = (svn_fs_t *)temp2;    }    arg3 = NUM2LONG(argv[1]);    arg4 = NUM2ULONG(argv[2]);    if (argc > 3) {            }    {        result = (svn_error_t *)svn_fs_begin_txn2(arg1,arg2,arg3,arg4,arg5);                                    }    {        if (result) {            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);            svn_swig_rb_handle_svn_error(result);        }        vresult = Qnil;    }    {        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_fs_txn_t, 0));    }    {        svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool);        svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);    }    return vresult;}static VALUE_wrap_svn_fs_begin_txn(int argc, VALUE *argv, VALUE self) {    svn_fs_txn_t **arg1 = (svn_fs_txn_t **) 0 ;    svn_fs_t *arg2 = (svn_fs_t *) 0 ;    svn_revnum_t arg3 ;    apr_pool_t *arg4 = (apr_pool_t *) 0 ;    svn_error_t *result;    VALUE _global_svn_swig_rb_pool ;    apr_pool_t *_global_pool ;    svn_fs_txn_t *temp1 ;    void *temp2 ;    VALUE vresult = Qnil;        {        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);        _global_pool = arg4;        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);    }    {        temp1 = NULL;        arg1 = (svn_fs_txn_t **)&temp1;    }    if ((argc < 2) || (argc > 3))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);    {        SWIG_ConvertPtr(argv[0], &temp2, SWIGTYPE_p_svn_fs_t, 1);                                arg2 = (svn_fs_t *)temp2;    }    arg3 = NUM2LONG(argv[1]);    if (argc > 2) {            }    {        result = (svn_error_t *)svn_fs_begin_txn(arg1,arg2,arg3,arg4);                                    }    {        if (result) {            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);            svn_swig_rb_handle_svn_error(result);        }        vresult = Qnil;    }    {        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_fs_txn_t, 0));    }    {        svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool);        svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);    }    return vresult;}static VALUE_wrap_svn_fs_commit_txn(int argc, VALUE *argv, VALUE self) {    char **arg1 = (char **) 0 ;    svn_revnum_t *arg2 = (svn_revnum_t *) 0 ;    svn_fs_txn_t *arg3 = (svn_fs_txn_t *) 0 ;    apr_pool_t *arg4 = (apr_pool_t *) 0 ;    svn_error_t *result;    VALUE _global_svn_swig_rb_pool ;    apr_pool_t *_global_pool ;    char const *temp1 = NULL ;    svn_revnum_t temp2 ;    void *temp3 ;    VALUE vresult = Qnil;        {        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);        _global_pool = arg4;        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);    }    arg1 = (char **)&temp1;    arg2 = &temp2;    if ((argc < 1) || (argc > 2))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(argv[0], &temp3, SWIGTYPE_p_svn_fs_txn_t, 1);                                arg3 = (svn_fs_txn_t *)temp3;    }    if (argc > 1) {            }    {        result = (svn_error_t *)svn_fs_commit_txn((char const **)arg1,arg2,arg3,arg4);                                    }    {        if (result) {            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);            svn_swig_rb_handle_svn_error(result);        }        vresult = Qnil;    }    {        if (*arg1) {            vresult = output_helper(vresult, rb_str_new2(*arg1));        } else {            vresult = output_helper(vresult, Qnil);        }    }    {        VALUE o = INT2NUM((long) (*arg2));        vresult = output_helper(vresult, o);    }    {        svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool);        svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);    }    return vresult;}static VALUE_wrap_svn_fs_abort_txn(int argc, VALUE *argv, VALUE self) {    svn_fs_txn_t *arg1 = (svn_fs_txn_t *) 0 ;    apr_pool_t *arg2 = (apr_pool_t *) 0 ;    svn_error_t *result;    VALUE _global_svn_swig_rb_pool ;    apr_pool_t *_global_pool ;    void *temp1 ;    VALUE vresult = Qnil;        {        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg2);        _global_pool = arg2;        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);    }    if ((argc < 1) || (argc > 2))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_txn_t, 1);                                arg1 = (svn_fs_txn_t *)temp1;    }    if (argc > 1) {            }    {        result = (svn_error_t *)svn_fs_abort_txn(arg1,arg2);                                    }    {        if (result) {            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);            svn_swig_rb_handle_svn_error(result);        }        vresult = Qnil;    }    {        svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool);        svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);    }    return vresult;}static VALUE_wrap_svn_fs_purge_txn(int argc, VALUE *argv, VALUE self) {    svn_fs_t *arg1 = (svn_fs_t *) 0 ;    char *arg2 = (char *) 0 ;    apr_pool_t *arg3 = (apr_pool_t *) 0 ;    svn_error_t *result;    VALUE _global_svn_swig_rb_pool ;    apr_pool_t *_global_pool ;    void *temp1 ;    VALUE vresult = Qnil;        {        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg3);        _global_pool = arg3;        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);    }    if ((argc < 2) || (argc > 3))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);    {        SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_fs_t, 1);                                arg1 = (svn_fs_t *)temp1;    }    arg2 = StringValuePtr(argv[1]);    if (argc > 2) {            }    {        result = (svn_error_t *)svn_fs_purge_txn(arg1,(char const *)arg2,arg3);                                    }    {        if (result) {            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);            svn_swig_rb_handle_svn_error(result);        }        vresult = Qnil;    }    {        svn_swig_rb_set_pool(vresult, _global_svn_swig_rb_pool);        svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);    }    return vresult;}static VALUE_wrap_svn_fs_txn_name(int argc, VALUE *argv, VALUE self) {    char **arg1 = (char **) 0 ;    svn_fs_txn_t *arg2 = (svn_fs_txn_t *) 0 ;    apr_pool_t *arg3 = (apr_pool_t *) 0 ;    svn_error_t *result;    VALUE _global_svn_swig_rb_pool ;    apr_pool_t *_global_pool ;    char const *temp1 = NULL ;    void *temp2 ;    VALUE vresult = Qnil;        {        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg3);        _global_pool = arg3;        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);    }    arg1 = (char **)&temp1;    if ((argc < 1) || (a

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -