📄 svn_delta.c
字号:
svn_delta_editor_t *_obj, void *edit_baton, apr_pool_t *pool) { return _obj->close_edit(edit_baton, pool);}static svn_error_t *svn_delta_editor_invoke_abort_edit( svn_delta_editor_t *_obj, void *edit_baton, apr_pool_t *pool) { return _obj->abort_edit(edit_baton, pool);}#ifdef __cplusplusextern "C" {#endifstatic PyObject *_wrap_svn_swig_py_make_editor(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_delta_editor_t **arg1 = (svn_delta_editor_t **) 0 ; void **arg2 = (void **) 0 ; PyObject *arg3 = (PyObject *) 0 ; apr_pool_t *arg4 = (apr_pool_t *) 0 ; apr_pool_t *_global_pool ; PyObject *_global_svn_swig_py_pool ; int _global_pool_is_default_pool ; int _global_pool_is_application_pool ; svn_delta_editor_t const *temp1 ; void *temp2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } { int argnum = PyTuple_GET_SIZE(args) - 1; _global_pool_is_application_pool = 0; _global_pool_is_default_pool = 1; if (argnum >= 0) { PyObject *input = PyTuple_GET_ITEM(args, argnum); if (input != Py_None && PyObject_HasAttrString(input, (char *)"_mark_valid")) { _global_pool = svn_swig_MustGetPtr(input, SWIGTYPE_p_apr_pool_t, argnum+1, NULL); if (PyErr_Occurred()) { _global_svn_swig_py_pool = NULL; SWIG_fail; } _global_svn_swig_py_pool = input; Py_XINCREF(_global_svn_swig_py_pool); _global_pool_is_default_pool = 0; } else { if (PyErr_Occurred()) { PyErr_Clear(); } svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); /*@/home/dave/svn/env/.dist_sandbox/subversion-1.4.5/subversion/bindings/swig/include/svn_types.swg,258,svn_swig_py_pool_create_subpool@*/ if (_global_svn_swig_py_pool != NULL) { _global_pool = svn_pool_create(_global_pool); _global_svn_swig_py_pool = svn_swig_NewPointerObj(_global_pool, SWIGTYPE_p_apr_pool_t, _global_svn_swig_py_pool); } /*@@*/; } } else { svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); /*@/home/dave/svn/env/.dist_sandbox/subversion-1.4.5/subversion/bindings/swig/include/svn_types.swg,258,svn_swig_py_pool_create_subpool@*/ if (_global_svn_swig_py_pool != NULL) { _global_pool = svn_pool_create(_global_pool); _global_svn_swig_py_pool = svn_swig_NewPointerObj(_global_pool, SWIGTYPE_p_apr_pool_t, _global_svn_swig_py_pool); } /*@@*/; } arg4 = _global_pool; /*@/home/dave/svn/env/.dist_sandbox/subversion-1.4.5/subversion/bindings/swig/include/svn_types.swg,246,svn_swig_py_pool_check@*/ if (_global_svn_swig_py_pool != NULL && !PyObject_HasAttrString(_global_svn_swig_py_pool, (char *)"_mark_valid")) { int argnum = PyTuple_GET_SIZE(args); SWIG_Python_TypeError(SWIG_TypePrettyName(SWIGTYPE_p_apr_pool_t), _global_svn_swig_py_pool); SWIG_arg_fail(argnum); SWIG_fail; } /*@@*/ } { arg1 = (svn_delta_editor_t **)&temp1; } { arg2 = (void **)&temp2; } if(!PyArg_ParseTuple(args,(char *)"O|O:svn_swig_py_make_editor",&obj0,&obj1)) goto fail; arg3 = obj0; if (obj1) { { if (obj1 != Py_None && _global_pool_is_default_pool == 1) { /*@/home/dave/svn/env/.dist_sandbox/subversion-1.4.5/subversion/bindings/swig/include/svn_types.swg,246,svn_swig_py_pool_check@*/ if (obj1 != NULL && !PyObject_HasAttrString(obj1, (char *)"_mark_valid")) { int argnum = PyTuple_GET_SIZE(args); SWIG_Python_TypeError(SWIG_TypePrettyName(SWIGTYPE_p_apr_pool_t), obj1); SWIG_arg_fail(argnum); SWIG_fail; } /*@@*/ _global_pool = svn_swig_MustGetPtr(obj1, SWIGTYPE_p_apr_pool_t, svn_argnum_obj1, NULL); if (PyErr_Occurred()) { SWIG_fail; } Py_XDECREF(_global_svn_swig_py_pool); _global_svn_swig_py_pool = obj1; Py_XINCREF(_global_svn_swig_py_pool); arg4 = _global_pool; } } } { svn_swig_py_release_py_lock(); svn_swig_py_make_editor((struct svn_delta_editor_t const **)arg1,arg2,arg3,arg4); svn_swig_py_acquire_py_lock(); } Py_INCREF(Py_None); resultobj = Py_None; { resultobj = t_output_helper(resultobj, svn_swig_NewPointerObj(*arg1, SWIGTYPE_p_svn_delta_editor_t, _global_svn_swig_py_pool)); } { resultobj = t_output_helper(resultobj, svn_swig_NewPointerObj(*arg2, SWIGTYPE_p_void, _global_svn_swig_py_pool)); } { Py_XDECREF(_global_svn_swig_py_pool); } return resultobj; fail: { Py_XDECREF(_global_svn_swig_py_pool); } return NULL;}static PyObject *_wrap_svn_delta_version(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_version_t *result; if(!PyArg_ParseTuple(args,(char *)":svn_delta_version")) goto fail; { svn_swig_py_release_py_lock(); result = (svn_version_t *)svn_delta_version(); svn_swig_py_acquire_py_lock(); } resultobj = svn_swig_NewPointerObj((void*)(result), SWIGTYPE_p_svn_version_t, _global_svn_swig_py_pool); return resultobj; fail: return NULL;}static PyObject *_wrap_svn_txdelta_op_t_action_code_set(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_txdelta_op_t *arg1 = (svn_txdelta_op_t *) 0 ; enum svn_delta_action arg2 ; PyObject *_global_svn_swig_py_pool ; apr_pool_t *_global_pool ; int _global_pool_is_application_pool ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } if(!PyArg_ParseTuple(args,(char *)"OO:svn_txdelta_op_t_action_code_set",&obj0,&obj1)) goto fail; { arg1 = (svn_txdelta_op_t *)svn_swig_MustGetPtr(obj0, SWIGTYPE_p_svn_txdelta_op_t, svn_argnum_obj0, _global_pool_is_application_pool ? &_global_svn_swig_py_pool : NULL); if (PyErr_Occurred()) { SWIG_fail; } } { arg2 = (enum svn_delta_action)SWIG_As_long(obj1); if (SWIG_arg_fail(svn_argnum_obj1)) { SWIG_fail; } } if (arg1) (arg1)->action_code = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL;}static PyObject *_wrap_svn_txdelta_op_t_action_code_get(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_txdelta_op_t *arg1 = (svn_txdelta_op_t *) 0 ; enum svn_delta_action result; PyObject *_global_svn_swig_py_pool ; apr_pool_t *_global_pool ; int _global_pool_is_application_pool ; PyObject * obj0 = 0 ; { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } if(!PyArg_ParseTuple(args,(char *)"O:svn_txdelta_op_t_action_code_get",&obj0)) goto fail; { arg1 = (svn_txdelta_op_t *)svn_swig_MustGetPtr(obj0, SWIGTYPE_p_svn_txdelta_op_t, svn_argnum_obj0, _global_pool_is_application_pool ? &_global_svn_swig_py_pool : NULL); if (PyErr_Occurred()) { SWIG_fail; } } result = (enum svn_delta_action) ((arg1)->action_code); { resultobj = SWIG_From_long((long)(result)); } return resultobj; fail: return NULL;}static PyObject *_wrap_svn_txdelta_op_t_offset_set(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_txdelta_op_t *arg1 = (svn_txdelta_op_t *) 0 ; apr_size_t arg2 ; PyObject *_global_svn_swig_py_pool ; apr_pool_t *_global_pool ; int _global_pool_is_application_pool ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } if(!PyArg_ParseTuple(args,(char *)"OO:svn_txdelta_op_t_offset_set",&obj0,&obj1)) goto fail; { arg1 = (svn_txdelta_op_t *)svn_swig_MustGetPtr(obj0, SWIGTYPE_p_svn_txdelta_op_t, svn_argnum_obj0, _global_pool_is_application_pool ? &_global_svn_swig_py_pool : NULL); if (PyErr_Occurred()) { SWIG_fail; } } { arg2 = (apr_size_t)SWIG_As_unsigned_SS_long(obj1); if (SWIG_arg_fail(svn_argnum_obj1)) { SWIG_fail; } } if (arg1) (arg1)->offset = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL;}static PyObject *_wrap_svn_txdelta_op_t_offset_get(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_txdelta_op_t *arg1 = (svn_txdelta_op_t *) 0 ; apr_size_t result; PyObject *_global_svn_swig_py_pool ; apr_pool_t *_global_pool ; int _global_pool_is_application_pool ; PyObject * obj0 = 0 ; { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } if(!PyArg_ParseTuple(args,(char *)"O:svn_txdelta_op_t_offset_get",&obj0)) goto fail; { arg1 = (svn_txdelta_op_t *)svn_swig_MustGetPtr(obj0, SWIGTYPE_p_svn_txdelta_op_t, svn_argnum_obj0, _global_pool_is_application_pool ? &_global_svn_swig_py_pool : NULL); if (PyErr_Occurred()) { SWIG_fail; } } result = ((arg1)->offset); { resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); } return resultobj; fail: return NULL;}static PyObject *_wrap_svn_txdelta_op_t_length_set(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_txdelta_op_t *arg1 = (svn_txdelta_op_t *) 0 ; apr_size_t arg2 ; PyObject *_global_svn_swig_py_pool ; apr_pool_t *_global_pool ; int _global_pool_is_application_pool ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } if(!PyArg_ParseTuple(args,(char *)"OO:svn_txdelta_op_t_length_set",&obj0,&obj1)) goto fail; { arg1 = (svn_txdelta_op_t *)svn_swig_MustGetPtr(obj0, SWIGTYPE_p_svn_txdelta_op_t, svn_argnum_obj0, _global_pool_is_application_pool ? &_global_svn_swig_py_pool : NULL); if (PyErr_Occurred()) { SWIG_fail; } } { arg2 = (apr_size_t)SWIG_As_unsigned_SS_long(obj1); if (SWIG_arg_fail(svn_argnum_obj1)) { SWIG_fail; } } if (arg1) (arg1)->length = arg2; Py_INCREF(Py_None); resultobj = Py_None; return resultobj; fail: return NULL;}static PyObject *_wrap_svn_txdelta_op_t_length_get(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_txdelta_op_t *arg1 = (svn_txdelta_op_t *) 0 ; apr_size_t result; PyObject *_global_svn_swig_py_pool ; apr_pool_t *_global_pool ; int _global_pool_is_application_pool ; PyObject * obj0 = 0 ; { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } if(!PyArg_ParseTuple(args,(char *)"O:svn_txdelta_op_t_length_get",&obj0)) goto fail; { arg1 = (svn_txdelta_op_t *)svn_swig_MustGetPtr(obj0, SWIGTYPE_p_svn_txdelta_op_t, svn_argnum_obj0, _global_pool_is_application_pool ? &_global_svn_swig_py_pool : NULL); if (PyErr_Occurred()) { SWIG_fail; } } result = ((arg1)->length); { resultobj = SWIG_From_unsigned_SS_long((unsigned long)(result)); } return resultobj; fail: return NULL;}static PyObject *_wrap_new_svn_txdelta_op_t(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_txdelta_op_t *result; if(!PyArg_ParseTuple(args,(char *)":new_svn_txdelta_op_t")) goto fail; { svn_swig_py_release_py_lock(); result = (svn_txdelta_op_t *)(svn_txdelta_op_t *) calloc(1, sizeof(svn_txdelta_op_t)); svn_swig_py_acquire_py_lock(); } resultobj = svn_swig_NewPointerObj((void*)(result), SWIGTYPE_p_svn_txdelta_op_t, _global_svn_swig_py_pool); return resultobj; fail: return NULL;}static PyObject *_wrap_delete_svn_txdelta_op_t(PyObject *self, PyObject *args) { PyObject *resultobj = NULL; svn_txdelta_op_t *arg1 = (svn_txdelta_op_t *) 0 ; PyObject *_global_svn_swig_py_pool ; apr_pool_t *_global_pool ; int _global_pool_is_application_pool ; PyObject * obj0 = 0 ; { _global_pool_is_application_pool = 1; svn_swig_get_application_pool(&_global_svn_swig_py_pool, &_global_pool); } if(!PyArg_ParseTuple(args,(char *)"O:delete_svn_txdelta_op_t",&obj0)) goto fail; { arg1 = (svn_txdelta_op_t *)svn_swig_MustGetPtr(obj0, SWIGTYPE_p_svn_txdelta_op_t, svn_argnum_obj0, _global_pool_is_application_pool ? &_global_svn_swig_py_pool : NULL); if (PyErr_Occurred()) { SWIG_fail; } } { svn_swig_py_release_py_lock(); free((char *) arg1); svn_swig_py_acquire_py_lock();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -