📄 svn_client.c
字号:
if (!PyErr_Occurred()) { PyErr_Format(PyExc_TypeError, "Swig: null type passed to NewPointerObj"); } return robj; } if (!ptr) { Py_INCREF(Py_None); return Py_None; }#ifdef SWIG_COBJECT_TYPES robj = PySwigObject_FromVoidPtrAndDesc((void *) ptr, (char *)type->name);#else { char result[SWIG_BUFFER_SIZE]; robj = SWIG_PackVoidPtr(result, ptr, type->name, sizeof(result)) ? PyString_FromString(result) : 0; }#endif if (!robj || (robj == Py_None)) return robj; if (type->clientdata) { PyObject *inst; PyObject *args = Py_BuildValue((char*)"(O)", robj); Py_DECREF(robj); inst = PyObject_CallObject((PyObject *) type->clientdata, args); Py_DECREF(args); if (inst) { if (own) { PyObject_SetAttrString(inst,(char*)"thisown",Py_True); } robj = inst; } } return robj;}SWIGRUNTIME PyObject *SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { PyObject *robj = 0; if (!ptr) { Py_INCREF(Py_None); return Py_None; }#if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) robj = PySwigPacked_FromDataAndDesc((void *) ptr, sz, (char *)type->name);#else { char result[SWIG_BUFFER_SIZE]; robj = SWIG_PackDataName(result, ptr, sz, type->name, sizeof(result)) ? PyString_FromString(result) : 0; }#endif return robj;}/* -----------------------------------------------------------------------------* * Get type list * -----------------------------------------------------------------------------*/#ifdef SWIG_LINK_RUNTIMEvoid *SWIG_ReturnGlobalTypeList(void *);#endifSWIGRUNTIME swig_module_info *SWIG_Python_GetModule(void) { static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) {#ifdef SWIG_LINK_RUNTIME type_pointer = SWIG_ReturnGlobalTypeList((void *)0);#else type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); if (PyErr_Occurred()) { PyErr_Clear(); type_pointer = (void *)0; } }#endif return (swig_module_info *) type_pointer;}SWIGRUNTIME voidSWIG_Python_SetModule(swig_module_info *swig_module) { static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, NULL); if (pointer && module) { PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); }}#ifdef __cplusplus}#endif/* -------- TYPES TABLE (BEGIN) -------- */#define SWIGTYPE_p_apr_array_header_t swig_types[0]#define SWIGTYPE_p_apr_file_t swig_types[1]#define SWIGTYPE_p_apr_hash_t swig_types[2]#define SWIGTYPE_p_apr_int32_t swig_types[3]#define SWIGTYPE_p_apr_int64_t swig_types[4]#define SWIGTYPE_p_apr_pool_t swig_types[5]#define SWIGTYPE_p_char swig_types[6]#define SWIGTYPE_p_f_apr_off_t_apr_off_t_p_void_p_apr_pool_t__void swig_types[7]#define SWIGTYPE_p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[8]#define SWIGTYPE_p_f_p_p_q_const__char_p_p_q_const__char_p_apr_array_header_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[9]#define SWIGTYPE_p_f_p_p_q_const__char_p_p_q_const__char_p_q_const__apr_array_header_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[10]#define SWIGTYPE_p_f_p_p_svn_auth_cred_simple_t_p_void_p_q_const__char_p_q_const__char_svn_boolean_t_p_apr_pool_t__p_svn_error_t swig_types[11]#define SWIGTYPE_p_f_p_p_svn_auth_cred_ssl_client_cert_pw_t_p_void_p_q_const__char_svn_boolean_t_p_apr_pool_t__p_svn_error_t swig_types[12]#define SWIGTYPE_p_f_p_p_svn_auth_cred_ssl_client_cert_t_p_void_p_q_const__char_svn_boolean_t_p_apr_pool_t__p_svn_error_t swig_types[13]#define SWIGTYPE_p_f_p_p_svn_auth_cred_ssl_server_trust_t_p_void_p_q_const__char_apr_uint32_t_p_q_const__svn_auth_ssl_server_cert_info_t_svn_boolean_t_p_apr_pool_t__p_svn_error_t swig_types[14]#define SWIGTYPE_p_f_p_p_svn_auth_cred_username_t_p_void_p_q_const__char_svn_boolean_t_p_apr_pool_t__p_svn_error_t swig_types[15]#define SWIGTYPE_p_f_p_q_const__svn_client_diff_summarize_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[16]#define SWIGTYPE_p_f_p_void__p_svn_error_t swig_types[17]#define SWIGTYPE_p_f_p_void_apr_int64_t_svn_revnum_t_p_q_const__char_p_q_const__char_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[18]#define SWIGTYPE_p_f_p_void_p_apr_hash_t_svn_revnum_t_p_q_const__char_p_q_const__char_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[19]#define SWIGTYPE_p_f_p_void_p_q_const__char_enum_svn_wc_notify_action_t_enum_svn_node_kind_t_p_q_const__char_enum_svn_wc_notify_state_t_enum_svn_wc_notify_state_t_long__void swig_types[20]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_q_const__svn_dirent_t_p_q_const__svn_lock_t_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[21]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_q_const__svn_info_t_p_apr_pool_t__p_svn_error_t swig_types[22]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_struct_svn_wc_status2_t__void swig_types[23]#define SWIGTYPE_p_f_p_void_p_q_const__char_p_struct_svn_wc_status_t__void swig_types[24]#define SWIGTYPE_p_f_p_void_p_q_const__struct_svn_wc_notify_t_p_apr_pool_t__void swig_types[25]#define SWIGTYPE_p_int swig_types[26]#define SWIGTYPE_p_long swig_types[27]#define SWIGTYPE_p_p_apr_array_header_t swig_types[28]#define SWIGTYPE_p_p_apr_hash_t swig_types[29]#define SWIGTYPE_p_p_char swig_types[30]#define SWIGTYPE_p_p_svn_auth_provider_object_t swig_types[31]#define SWIGTYPE_p_p_svn_client_commit_info_t swig_types[32]#define SWIGTYPE_p_p_svn_client_ctx_t swig_types[33]#define SWIGTYPE_p_p_svn_commit_info_t swig_types[34]#define SWIGTYPE_p_p_svn_ra_session_t swig_types[35]#define SWIGTYPE_p_p_svn_string_t swig_types[36]#define SWIGTYPE_p_svn_auth_baton_t swig_types[37]#define SWIGTYPE_p_svn_auth_cred_simple_t swig_types[38]#define SWIGTYPE_p_svn_auth_cred_ssl_client_cert_pw_t swig_types[39]#define SWIGTYPE_p_svn_auth_cred_ssl_client_cert_t swig_types[40]#define SWIGTYPE_p_svn_auth_cred_ssl_server_trust_t swig_types[41]#define SWIGTYPE_p_svn_auth_cred_username_t swig_types[42]#define SWIGTYPE_p_svn_auth_iterstate_t swig_types[43]#define SWIGTYPE_p_svn_auth_provider_object_t swig_types[44]#define SWIGTYPE_p_svn_auth_provider_t swig_types[45]#define SWIGTYPE_p_svn_auth_ssl_server_cert_info_t swig_types[46]#define SWIGTYPE_p_svn_client_commit_info_t swig_types[47]#define SWIGTYPE_p_svn_client_commit_item2_t swig_types[48]#define SWIGTYPE_p_svn_client_commit_item_t swig_types[49]#define SWIGTYPE_p_svn_client_ctx_t swig_types[50]#define SWIGTYPE_p_svn_client_diff_summarize_kind_t swig_types[51]#define SWIGTYPE_p_svn_client_diff_summarize_t swig_types[52]#define SWIGTYPE_p_svn_client_proplist_item_t swig_types[53]#define SWIGTYPE_p_svn_commit_info_t swig_types[54]#define SWIGTYPE_p_svn_config_t swig_types[55]#define SWIGTYPE_p_svn_delta_editor_t swig_types[56]#define SWIGTYPE_p_svn_diff_datasource_e swig_types[57]#define SWIGTYPE_p_svn_diff_file_ignore_space_t swig_types[58]#define SWIGTYPE_p_svn_diff_file_options_t swig_types[59]#define SWIGTYPE_p_svn_diff_fns_t swig_types[60]#define SWIGTYPE_p_svn_diff_output_fns_t swig_types[61]#define SWIGTYPE_p_svn_diff_t swig_types[62]#define SWIGTYPE_p_svn_dirent_t swig_types[63]#define SWIGTYPE_p_svn_errno_t swig_types[64]#define SWIGTYPE_p_svn_error_t swig_types[65]#define SWIGTYPE_p_svn_info_t swig_types[66]#define SWIGTYPE_p_svn_io_dirent_t swig_types[67]#define SWIGTYPE_p_svn_io_file_del_t swig_types[68]#define SWIGTYPE_p_svn_lock_t swig_types[69]#define SWIGTYPE_p_svn_log_changed_path_t swig_types[70]#define SWIGTYPE_p_svn_node_kind_t swig_types[71]#define SWIGTYPE_p_svn_opt_revision_t swig_types[72]#define SWIGTYPE_p_svn_opt_revision_value_t swig_types[73]#define SWIGTYPE_p_svn_opt_subcommand_desc2_t swig_types[74]#define SWIGTYPE_p_svn_opt_subcommand_desc_t swig_types[75]#define SWIGTYPE_p_svn_prop_kind swig_types[76]#define SWIGTYPE_p_svn_ra_callbacks2_t swig_types[77]#define SWIGTYPE_p_svn_ra_callbacks_t swig_types[78]#define SWIGTYPE_p_svn_ra_plugin_t swig_types[79]#define SWIGTYPE_p_svn_ra_reporter2_t swig_types[80]#define SWIGTYPE_p_svn_ra_reporter_t swig_types[81]#define SWIGTYPE_p_svn_ra_session_t swig_types[82]#define SWIGTYPE_p_svn_stream_t swig_types[83]#define SWIGTYPE_p_svn_string_t swig_types[84]#define SWIGTYPE_p_svn_stringbuf_t swig_types[85]#define SWIGTYPE_p_svn_txdelta_op_t swig_types[86]#define SWIGTYPE_p_svn_txdelta_stream_t swig_types[87]#define SWIGTYPE_p_svn_txdelta_window_t swig_types[88]#define SWIGTYPE_p_svn_version_checklist_t swig_types[89]#define SWIGTYPE_p_svn_version_t swig_types[90]#define SWIGTYPE_p_svn_wc_adm_access_t swig_types[91]#define SWIGTYPE_p_svn_wc_diff_callbacks2_t swig_types[92]#define SWIGTYPE_p_svn_wc_diff_callbacks_t swig_types[93]#define SWIGTYPE_p_svn_wc_entry_callbacks_t swig_types[94]#define SWIGTYPE_p_svn_wc_entry_t swig_types[95]#define SWIGTYPE_p_svn_wc_external_item_t swig_types[96]#define SWIGTYPE_p_svn_wc_merge_outcome_t swig_types[97]#define SWIGTYPE_p_svn_wc_notify_action_t swig_types[98]#define SWIGTYPE_p_svn_wc_notify_lock_state_t swig_types[99]#define SWIGTYPE_p_svn_wc_notify_state_t swig_types[100]#define SWIGTYPE_p_svn_wc_notify_t swig_types[101]#define SWIGTYPE_p_svn_wc_revision_status_t swig_types[102]#define SWIGTYPE_p_svn_wc_schedule_t swig_types[103]#define SWIGTYPE_p_svn_wc_status2_t swig_types[104]#define SWIGTYPE_p_svn_wc_status_t swig_types[105]#define SWIGTYPE_p_svn_wc_traversal_info_t swig_types[106]#define SWIGTYPE_p_void swig_types[107]#define SWIGTYPE_ptrdiff_t swig_types[108]#define SWIGTYPE_size_t swig_types[109]static swig_type_info *swig_types[110];static swig_module_info swig_module = {swig_types, 110, 0, 0, 0, 0};#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)/* -------- TYPES TABLE (END) -------- *//*----------------------------------------------- @(target):= _client.so ------------------------------------------------*/#define SWIG_init init_client#define SWIG_name "_client"static PyObject * _global_svn_swig_py_pool = NULL;#define svn_argnum_obj0 1#define svn_argnum_obj1 2#define svn_argnum_obj2 3#define svn_argnum_obj3 4#define svn_argnum_obj4 5#define svn_argnum_obj5 6#define svn_argnum_obj6 7#define svn_argnum_obj7 8#define svn_argnum_obj8 9#define svn_argnum_obj9 10#define svn_argnum_obj10 11#define svn_argnum_obj11 12#define svn_argnum_obj12 13#define svn_argnum_obj13 14#define svn_argnum_obj14 15#define svn_argnum_obj15 16#define svn_argnum_obj16 17#define svn_argnum_obj17 18#define svn_argnum_obj18 19#define svn_argnum_obj19 20#include "svn_time.h"#include "svn_pools.h"#ifdef SWIGPYTHON#include "swigutil_py.h"#endif#ifdef SWIGPERL#include "swigutil_pl.h"#endif#ifdef SWIGRUBY#include <apu.h>#include <apr_xlate.h>#include "swigutil_rb.h"#endif#include "svn_client.h"SWIGINTERN int SWIG_AsVal_long(PyObject * obj, long* val){ if (PyInt_Check(obj)) { if (val) *val = PyInt_AS_LONG(obj); return 1; } if (PyLong_Check(obj)) { long v = PyLong_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return 1; } else { if (!val) PyErr_Clear(); return 0; } } if (val) { SWIG_type_error("long", obj); } return 0; }SWIGINTERNINLINE longSWIG_As_long(PyObject* obj){ long v; if (!SWIG_AsVal_long(obj, &v)) { /* this is needed to make valgrind/purify happier. */ memset((void*)&v, 0, sizeof(long)); } return v;} SWIGINTERNINLINE intSWIG_Check_long(PyObject* obj){ return SWIG_AsVal_long(obj, (long*)0);}SWIGINTERN PyObject*t_output_helper(PyObject* target, PyObject* o) { if (!target) { target = o; } else if (target == Py_None) { Py_DECREF(target); target = o; } else { if (!PyList_Check(target)) { PyObject *o2 = target; target = PyList_New(1); PyList_SetItem(target, 0, o2); } PyList_Append(target,o); Py_DECREF(o); } return target;} /*@/home/dave/svn/env/build/share/swig/1.3.25/python/pymacros.swg,66,SWIG_define@*/#define SWIG_From_long PyInt_FromLong/*@@*//* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */SWIGINTERN intSWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize){ static swig_type_info* pchar_info = 0; char* vptr = 0; if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) { if (cptr) *cptr = vptr; if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; return SWIG_OLDOBJ; } else { PyErr_Clear(); if (PyString_Check(obj)) { if (cptr) { *cptr = PyString_AS_STRING(obj); if (psize) { *psize = PyString_GET_SIZE(obj) + 1; } } return SWIG_PYSTR; } } if (cptr) { SWIG_type_error("char *", obj); } return 0;}SWIGINTERNINLINE intSWIG_AsCharPtr(PyObject *obj, char **val){ if (SWIG_AsCharPtrAndSize(obj, val, (size_t*)(0))) { return 1; } if (val) { PyErr_Clear(); SWIG_type_error("char *", obj); } return 0;}SWIGINTERN PyObject *SWIG_FromCharPtr(const char* cptr){ if (cptr) { size_t size = strlen(cptr); if (size > INT_MAX) { return SWIG_NewPointerObj((char*)(cptr), SWIG_TypeQuery("char *"), 0); } else { if (size != 0) { return PyString_FromStringAndSize(cptr, size); } else { return PyString_FromString(cptr); } } } Py_INCREF(Py_None); return Py_None;}SWIGINTERN int SWIG_AsVal_unsigned_SS_long(PyObject *obj, unsigned long *val) { if (PyInt_Check(obj)) { long v = PyInt_AS_LONG(obj); if (v >= 0) { if (val) *val = v; return 1; } } if (PyLong_Check(obj)) { unsigned long v = PyLong_AsUnsignedLong(obj); if (!PyErr_Occurred()) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -