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

📄 core.c

📁 subversion-1.4.5.tar.gz 配置svn的源码
💻 C
📖 第 1 页 / 共 5 页
字号:
    if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        SWIG_ConvertPtr(self, &temp1, SWIGTYPE_p_svn_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    result = (svn_node_kind_t) ((arg1)->kind);        vresult = INT2NUM(result);    return vresult;}static VALUE_wrap_svn_dirent_t_size_set(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_t *) 0 ;    svn_filesize_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    arg2 = (svn_filesize_t) NUM2LL(argv[0]);    if (arg1) (arg1)->size = arg2;        return Qnil;}static VALUE_wrap_svn_dirent_t_size_get(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_t *) 0 ;    svn_filesize_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    result =  ((arg1)->size);        vresult = LL2NUM(result);    return vresult;}static VALUE_wrap_svn_dirent_t_has_props_set(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_t *) 0 ;    svn_boolean_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    arg2 = RTEST(argv[0]);    if (arg1) (arg1)->has_props = arg2;        return Qnil;}static VALUE_wrap_svn_dirent_t_has_props_get(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_t *) 0 ;    svn_boolean_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    result = (svn_boolean_t) ((arg1)->has_props);        {        vresult = output_helper(vresult, result ? Qtrue : Qfalse);    }    return vresult;}static VALUE_wrap_svn_dirent_t_created_rev_set(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    arg2 = NUM2LONG(argv[0]);    if (arg1) (arg1)->created_rev = arg2;        return Qnil;}static VALUE_wrap_svn_dirent_t_created_rev_get(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    result = (svn_revnum_t) ((arg1)->created_rev);        vresult = INT2NUM(result);    return vresult;}static VALUE_wrap_svn_dirent_t_time_set(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_t *) 0 ;    apr_time_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    arg2 = (apr_time_t) NUM2LL(argv[0]);    if (arg1) (arg1)->time = arg2;        return Qnil;}static VALUE_wrap_svn_dirent_t_time_get(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_t *) 0 ;    apr_time_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    result =  ((arg1)->time);        vresult = LL2NUM(result);    return vresult;}static VALUE_wrap_svn_dirent_t_last_author_get(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    result = (char *) ((arg1)->last_author);        {        if (result) {            vresult = rb_str_new2(result);        } else {            vresult = Qnil;        }    }    return vresult;}#ifdef HAVE_RB_DEFINE_ALLOC_FUNCstatic VALUE_wrap_svn_dirent_t_allocate(VALUE self) {#else    static VALUE    _wrap_svn_dirent_t_allocate(int argc, VALUE *argv, VALUE self) {#endif                        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_dirent_t);#ifndef HAVE_RB_DEFINE_ALLOC_FUNC        rb_obj_call_init(vresult, argc, argv);#endif        return vresult;    }    static VALUE_wrap_new_svn_dirent_t(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *result;        if ((argc < 0) || (argc > 0))    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);    {        result = (svn_dirent_t *)(svn_dirent_t *) calloc(1, sizeof(svn_dirent_t));        DATA_PTR(self) = result;                            }    return self;}static voidfree_svn_dirent_t(svn_dirent_t *arg1) {    free((char *) arg1);}static VALUE_wrap_svn_dirent_dup(int argc, VALUE *argv, VALUE self) {    svn_dirent_t *arg1 = (svn_dirent_t *) 0 ;    apr_pool_t *arg2 = (apr_pool_t *) 0 ;    svn_dirent_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_dirent_t, 1);                                arg1 = (svn_dirent_t *)temp1;    }    if (argc > 1) {            }    {        result = (svn_dirent_t *)svn_dirent_dup((struct svn_dirent_t const *)arg1,arg2);                                    }    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_dirent_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;}swig_class cSvn_commit_info_t;static VALUE_wrap_svn_commit_info_t_revision_set(int argc, VALUE *argv, VALUE self) {    svn_commit_info_t *arg1 = (svn_commit_info_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_commit_info_t, 1);                                arg1 = (svn_commit_info_t *)temp1;    }    arg2 = NUM2LONG(argv[0]);    if (arg1) (arg1)->revision = arg2;        return Qnil;}static VALUE_wrap_svn_commit_info_t_revision_get(int argc, VALUE *argv, VALUE self) {    svn_commit_info_t *arg1 = (svn_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_commit_info_t, 1);                                arg1 = (svn_commit_info_t *)temp1;    }    result = (svn_revnum_t) ((arg1)->revision);        vresult = INT2NUM(result);    return vresult;}static VALUE_wrap_svn_commit_info_t_date_set(int argc, VALUE *argv, VALUE self) {    svn_commit_info_t *arg1 = (svn_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_commit_info_t, 1);                                arg1 = (svn_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_commit_info_t_date_get(int argc, VALUE *argv, VALUE self) {    svn_commit_info_t *arg1 = (svn_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_commit_info_t, 1);                                arg1 = (svn_commit_info_t *)temp1;    }    result = (char *) ((arg1)->date);        {        if (result) {            vresult = rb_str_new2(result);        } else {            vresult = Qnil;        }    }    return vresult;}static VALUE_wrap_svn_commit_info_t_author_set(int argc, VALUE *argv, VALUE self) {    svn_commit_info_t *arg1 = (svn_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_commit_info_t, 1);                                arg1 = (svn_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_commit_info_t_author_get(int argc, VALUE *argv, VALUE self) {    svn_commit_info_t *arg1 = (svn_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_commit_info_t, 1);                                arg1 = (svn_commit_info_t *)temp1;    }    result = (char *) ((arg1)->author);        {        if (result) {            vresult = rb_str_new2(result);        } else {            vresult = Qnil;        }    }    return vresult;}static VALUE_wrap_svn_commit_info_t_post_commit_err_set(int argc, VALUE *argv, VALUE self) {    svn_c

⌨️ 快捷键说明

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