📄 svn_delta.c
字号:
arg1 = (svn_txdelta_op_t *)temp1; } result = ((arg1)->length); vresult = UINT2NUM(result); return vresult;}#ifdef HAVE_RB_DEFINE_ALLOC_FUNCstatic VALUE_wrap_svn_txdelta_op_t_allocate(VALUE self) {#else static VALUE _wrap_svn_txdelta_op_t_allocate(int argc, VALUE *argv, VALUE self) {#endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_txdelta_op_t);#ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv);#endif return vresult; } static VALUE_wrap_new_svn_txdelta_op_t(int argc, VALUE *argv, VALUE self) { svn_txdelta_op_t *result; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); { result = (svn_txdelta_op_t *)(svn_txdelta_op_t *) calloc(1, sizeof(svn_txdelta_op_t)); DATA_PTR(self) = result; } return self;}static voidfree_svn_txdelta_op_t(svn_txdelta_op_t *arg1) { free((char *) arg1);}swig_class cSvn_txdelta_window_t;static VALUE_wrap_svn_txdelta_window_t_sview_offset_set(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } arg2 = (svn_filesize_t) NUM2LL(argv[0]); if (arg1) (arg1)->sview_offset = arg2; return Qnil;}static VALUE_wrap_svn_txdelta_window_t_sview_offset_get(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } result = ((arg1)->sview_offset); vresult = LL2NUM(result); return vresult;}static VALUE_wrap_svn_txdelta_window_t_sview_len_set(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; apr_size_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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } arg2 = NUM2ULONG(argv[0]); if (arg1) (arg1)->sview_len = arg2; return Qnil;}static VALUE_wrap_svn_txdelta_window_t_sview_len_get(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; apr_size_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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } result = ((arg1)->sview_len); vresult = UINT2NUM(result); return vresult;}static VALUE_wrap_svn_txdelta_window_t_tview_len_set(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; apr_size_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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } arg2 = NUM2ULONG(argv[0]); if (arg1) (arg1)->tview_len = arg2; return Qnil;}static VALUE_wrap_svn_txdelta_window_t_tview_len_get(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; apr_size_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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } result = ((arg1)->tview_len); vresult = UINT2NUM(result); return vresult;}static VALUE_wrap_svn_txdelta_window_t_num_ops_set(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; int 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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } arg2 = NUM2INT(argv[0]); if (arg1) (arg1)->num_ops = arg2; return Qnil;}static VALUE_wrap_svn_txdelta_window_t_num_ops_get(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; int 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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } result = (int) ((arg1)->num_ops); vresult = INT2NUM(result); return vresult;}static VALUE_wrap_svn_txdelta_window_t_src_ops_set(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; int 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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } arg2 = NUM2INT(argv[0]); if (arg1) (arg1)->src_ops = arg2; return Qnil;}static VALUE_wrap_svn_txdelta_window_t_src_ops_get(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; int 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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } result = (int) ((arg1)->src_ops); vresult = INT2NUM(result); return vresult;}static VALUE_wrap_svn_txdelta_window_t_new_data_get(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; svn_string_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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } result = (svn_string_t *) ((arg1)->new_data); { if (result) { vresult = rb_str_new(result->data, result->len); } else { vresult = Qnil; } } return vresult;}#ifdef HAVE_RB_DEFINE_ALLOC_FUNCstatic VALUE_wrap_svn_txdelta_window_t_allocate(VALUE self) {#else static VALUE _wrap_svn_txdelta_window_t_allocate(int argc, VALUE *argv, VALUE self) {#endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_txdelta_window_t);#ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv);#endif return vresult; } static VALUE_wrap_new_svn_txdelta_window_t(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *result; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); { result = (svn_txdelta_window_t *)(svn_txdelta_window_t *) calloc(1, sizeof(svn_txdelta_window_t)); DATA_PTR(self) = result; } return self;}static voidfree_svn_txdelta_window_t(svn_txdelta_window_t *arg1) { free((char *) arg1);}static VALUE_wrap_svn_txdelta_window_dup(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; apr_pool_t *arg2 = (apr_pool_t *) 0 ; svn_txdelta_window_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_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } if (argc > 1) { } { result = (svn_txdelta_window_t *)svn_txdelta_window_dup((struct svn_txdelta_window_t const *)arg1,arg2); } vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_txdelta_window_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_txdelta_compose_windows(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; svn_txdelta_window_t *arg2 = (svn_txdelta_window_t *) 0 ; apr_pool_t *arg3 = (apr_pool_t *) 0 ; svn_txdelta_window_t *result; VALUE _global_svn_swig_rb_pool ; apr_pool_t *_global_pool ; void *temp1 ; 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); } if ((argc < 2) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); { SWIG_ConvertPtr(argv[0], &temp1, SWIGTYPE_p_svn_txdelta_window_t, 1); arg1 = (svn_txdelta_window_t *)temp1; } { SWIG_ConvertPtr(argv[1], &temp2, SWIGTYPE_p_svn_txdelta_window_t, 1); arg2 = (svn_txdelta_window_t *)temp2; } if (argc > 2) { } { result = (svn_txdelta_window_t *)svn_txdelta_compose_windows((struct svn_txdelta_window_t const *)arg1,(struct svn_txdelta_window_t const *)arg2,arg3); } vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_txdelta_window_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_txdelta_apply_instructions(int argc, VALUE *argv, VALUE self) { svn_txdelta_window_t *arg1 = (svn_txdelta_window_t *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; apr_size_t *arg4 = (apr_size_t *) 0 ; void *temp1 ; apr_size_t temp4 ; VALUE vresult = Qnil; arg4 = &temp4; if ((argc < 3) || (argc > 3))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -