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

📄 svn_client.c

📁 subversion-1.4.5.tar.gz 配置svn的源码
💻 C
📖 第 1 页 / 共 5 页
字号:
        arg1 = (svn_client_commit_info_t *)temp1;    }    arg2 = NUM2LONG(argv[0]);    if (arg1) (arg1)->revision = arg2;        return Qnil;}static VALUE_wrap_svn_client_commit_info_t_revision_get(int argc, VALUE *argv, VALUE self) {    svn_client_commit_info_t *arg1 = (svn_client_commit_info_t *) 0 ;    svn_revnum_t result;    void *temp1 ;    VALUE vresult = Qnil;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_info_t, 1);                                arg1 = (svn_client_commit_info_t *)temp1;    }    result = (svn_revnum_t) ((arg1)->revision);        vresult = INT2NUM(result);    return vresult;}static VALUE_wrap_svn_client_commit_info_t_date_set(int argc, VALUE *argv, VALUE self) {    svn_client_commit_info_t *arg1 = (svn_client_commit_info_t *) 0 ;    char *arg2 = (char *) 0 ;    void *temp1 ;        if ((argc < 1) || (argc > 1))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_info_t, 1);                                arg1 = (svn_client_commit_info_t *)temp1;    }    arg2 = StringValuePtr(argv[0]);    {        apr_size_t len = strlen(arg2) + 1;        char *copied;        if (arg1->date) free((char *)arg1->date);        copied = malloc(len);        memcpy(copied, arg2, len);        arg1->date = copied;    }    return Qnil;}static VALUE_wrap_svn_client_commit_info_t_date_get(int argc, VALUE *argv, VALUE self) {    svn_client_commit_info_t *arg1 = (svn_client_commit_info_t *) 0 ;    char *result;    void *temp1 ;    VALUE vresult = Qnil;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_info_t, 1);                                arg1 = (svn_client_commit_info_t *)temp1;    }    result = (char *) ((arg1)->date);        {        if (result) {            vresult = rb_str_new2(result);        } else {            vresult = Qnil;        }    }    return vresult;}static VALUE_wrap_svn_client_commit_info_t_author_set(int argc, VALUE *argv, VALUE self) {    svn_client_commit_info_t *arg1 = (svn_client_commit_info_t *) 0 ;    char *arg2 = (char *) 0 ;    void *temp1 ;        if ((argc < 1) || (argc > 1))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_info_t, 1);                                arg1 = (svn_client_commit_info_t *)temp1;    }    arg2 = StringValuePtr(argv[0]);    {        apr_size_t len = strlen(arg2) + 1;        char *copied;        if (arg1->author) free((char *)arg1->author);        copied = malloc(len);        memcpy(copied, arg2, len);        arg1->author = copied;    }    return Qnil;}static VALUE_wrap_svn_client_commit_info_t_author_get(int argc, VALUE *argv, VALUE self) {    svn_client_commit_info_t *arg1 = (svn_client_commit_info_t *) 0 ;    char *result;    void *temp1 ;    VALUE vresult = Qnil;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_info_t, 1);                                arg1 = (svn_client_commit_info_t *)temp1;    }    result = (char *) ((arg1)->author);        {        if (result) {            vresult = rb_str_new2(result);        } else {            vresult = Qnil;        }    }    return vresult;}#ifdef HAVE_RB_DEFINE_ALLOC_FUNCstatic VALUE_wrap_svn_client_commit_info_t_allocate(VALUE self) {#else    static VALUE    _wrap_svn_client_commit_info_t_allocate(int argc, VALUE *argv, VALUE self) {#endif                        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_client_commit_info_t);#ifndef HAVE_RB_DEFINE_ALLOC_FUNC        rb_obj_call_init(vresult, argc, argv);#endif        return vresult;    }    static VALUE_wrap_new_svn_client_commit_info_t(int argc, VALUE *argv, VALUE self) {    svn_client_commit_info_t *result;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        result = (svn_client_commit_info_t *)(svn_client_commit_info_t *) calloc(1, sizeof(svn_client_commit_info_t));        DATA_PTR(self) = result;                            }    return self;}static voidfree_svn_client_commit_info_t(svn_client_commit_info_t *arg1) {    free((char *) arg1);}swig_class cSvn_client_commit_item2_t;static VALUE_wrap_svn_client_commit_item2_t_path_set(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    char *arg2 = (char *) 0 ;    void *temp1 ;        if ((argc < 1) || (argc > 1))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    arg2 = StringValuePtr(argv[0]);    {        apr_size_t len = strlen(arg2) + 1;        char *copied;        if (arg1->path) free((char *)arg1->path);        copied = malloc(len);        memcpy(copied, arg2, len);        arg1->path = copied;    }    return Qnil;}static VALUE_wrap_svn_client_commit_item2_t_path_get(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    char *result;    void *temp1 ;    VALUE vresult = Qnil;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    result = (char *) ((arg1)->path);        {        if (result) {            vresult = rb_str_new2(result);        } else {            vresult = Qnil;        }    }    return vresult;}static VALUE_wrap_svn_client_commit_item2_t_kind_set(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    svn_node_kind_t arg2 ;    void *temp1 ;        if ((argc < 1) || (argc > 1))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    arg2 = (svn_node_kind_t) NUM2INT(argv[0]);    if (arg1) (arg1)->kind = arg2;        return Qnil;}static VALUE_wrap_svn_client_commit_item2_t_kind_get(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    svn_node_kind_t result;    void *temp1 ;    VALUE vresult = Qnil;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    result = (svn_node_kind_t) ((arg1)->kind);        vresult = INT2NUM(result);    return vresult;}static VALUE_wrap_svn_client_commit_item2_t_url_set(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    char *arg2 = (char *) 0 ;    void *temp1 ;        if ((argc < 1) || (argc > 1))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    arg2 = StringValuePtr(argv[0]);    {        apr_size_t len = strlen(arg2) + 1;        char *copied;        if (arg1->url) free((char *)arg1->url);        copied = malloc(len);        memcpy(copied, arg2, len);        arg1->url = copied;    }    return Qnil;}static VALUE_wrap_svn_client_commit_item2_t_url_get(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    char *result;    void *temp1 ;    VALUE vresult = Qnil;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    result = (char *) ((arg1)->url);        {        if (result) {            vresult = rb_str_new2(result);        } else {            vresult = Qnil;        }    }    return vresult;}static VALUE_wrap_svn_client_commit_item2_t_revision_set(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    svn_revnum_t arg2 ;    void *temp1 ;        if ((argc < 1) || (argc > 1))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    arg2 = NUM2LONG(argv[0]);    if (arg1) (arg1)->revision = arg2;        return Qnil;}static VALUE_wrap_svn_client_commit_item2_t_revision_get(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    svn_revnum_t result;    void *temp1 ;    VALUE vresult = Qnil;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    result = (svn_revnum_t) ((arg1)->revision);        vresult = INT2NUM(result);    return vresult;}static VALUE_wrap_svn_client_commit_item2_t_copyfrom_url_set(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    char *arg2 = (char *) 0 ;    void *temp1 ;        if ((argc < 1) || (argc > 1))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    {        if (NIL_P(argv[0])) {            arg2 = NULL;        } else {            arg2 = StringValuePtr(argv[0]);        }    }    {        apr_size_t len = strlen(arg2) + 1;        char *copied;        if (arg1->copyfrom_url) free((char *)arg1->copyfrom_url);        copied = malloc(len);        memcpy(copied, arg2, len);        arg1->copyfrom_url = copied;    }    return Qnil;}static VALUE_wrap_svn_client_commit_item2_t_copyfrom_url_get(int argc, VALUE *argv, VALUE self) {    svn_client_commit_item2_t *arg1 = (svn_client_commit_item2_t *) 0 ;    char *result;    void *temp1 ;    VALUE vresult = Qnil;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_client_commit_item2_t, 1);                                arg1 = (svn_client_commit_item2_t *)temp1;    }    result = (char *) ((arg1)->copyfrom_url);        {

⌨️ 快捷键说明

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