361
367
Check type equivalence in a name list like <name1>|<name2>|...
368
Return 0 if equal, -1 if nb < tb, 1 if nb > tb
371
SWIG_TypeCmp(const char *nb, const char *tb) {
373
const char* te = tb + strlen(tb);
375
while (equiv != 0 && *ne) {
376
for (nb = ne; *ne; ++ne) {
377
if (*ne == '|') break;
379
equiv = SWIG_TypeNameComp(nb, ne, tb, te);
386
Check type equivalence in a name list like <name1>|<name2>|...
362
387
Return 0 if not equal, 1 if equal
365
390
SWIG_TypeEquiv(const char *nb, const char *tb) {
367
const char* te = tb + strlen(tb);
369
while (!equiv && *ne) {
370
for (nb = ne; *ne; ++ne) {
371
if (*ne == '|') break;
373
equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380
Check type equivalence in a name list like <name1>|<name2>|...
381
Return 0 if equal, -1 if nb < tb, 1 if nb > tb
384
SWIG_TypeCompare(const char *nb, const char *tb) {
386
const char* te = tb + strlen(tb);
388
while (!equiv && *ne) {
389
for (nb = ne; *ne; ++ne) {
390
if (*ne == '|') break;
392
equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
391
return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
400
395
Check the typename
712
707
/* Errors in SWIG */
713
#define SWIG_UnknownError -1
714
#define SWIG_IOError -2
715
#define SWIG_RuntimeError -3
716
#define SWIG_IndexError -4
717
#define SWIG_TypeError -5
718
#define SWIG_DivisionByZero -6
719
#define SWIG_OverflowError -7
720
#define SWIG_SyntaxError -8
721
#define SWIG_ValueError -9
708
#define SWIG_UnknownError -1
709
#define SWIG_IOError -2
710
#define SWIG_RuntimeError -3
711
#define SWIG_IndexError -4
712
#define SWIG_TypeError -5
713
#define SWIG_DivisionByZero -6
714
#define SWIG_OverflowError -7
715
#define SWIG_SyntaxError -8
716
#define SWIG_ValueError -9
722
717
#define SWIG_SystemError -10
723
718
#define SWIG_AttributeError -11
724
#define SWIG_MemoryError -12
719
#define SWIG_MemoryError -12
725
720
#define SWIG_NullReferenceError -13
1801
1768
static PyMethodDef
1802
1769
swigobject_methods[] = {
1803
1770
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1804
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1771
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"},
1805
1772
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1806
1773
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"},
1807
1774
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
2997
2971
#define SWIGTYPE_p_svn_config_t swig_types[54]
2998
2972
#define SWIGTYPE_p_svn_delta_editor_t swig_types[55]
2999
2973
#define SWIGTYPE_p_svn_depth_t swig_types[56]
3000
#define SWIGTYPE_p_svn_dirent_t swig_types[57]
3001
#define SWIGTYPE_p_svn_errno_t swig_types[58]
3002
#define SWIGTYPE_p_svn_error_t swig_types[59]
3003
#define SWIGTYPE_p_svn_io_dirent2_t swig_types[60]
3004
#define SWIGTYPE_p_svn_io_dirent_t swig_types[61]
3005
#define SWIGTYPE_p_svn_io_file_del_t swig_types[62]
3006
#define SWIGTYPE_p_svn_location_segment_t swig_types[63]
3007
#define SWIGTYPE_p_svn_lock_t swig_types[64]
3008
#define SWIGTYPE_p_svn_log_changed_path2_t swig_types[65]
3009
#define SWIGTYPE_p_svn_log_changed_path_t swig_types[66]
3010
#define SWIGTYPE_p_svn_log_entry_t swig_types[67]
3011
#define SWIGTYPE_p_svn_merge_range_t swig_types[68]
3012
#define SWIGTYPE_p_svn_mergeinfo_inheritance_t swig_types[69]
3013
#define SWIGTYPE_p_svn_node_kind_t swig_types[70]
3014
#define SWIGTYPE_p_svn_opt_revision_range_t swig_types[71]
3015
#define SWIGTYPE_p_svn_opt_revision_t swig_types[72]
3016
#define SWIGTYPE_p_svn_opt_revision_value_t swig_types[73]
3017
#define SWIGTYPE_p_svn_opt_subcommand_desc2_t swig_types[74]
3018
#define SWIGTYPE_p_svn_opt_subcommand_desc_t swig_types[75]
3019
#define SWIGTYPE_p_svn_prop_inherited_item_t swig_types[76]
3020
#define SWIGTYPE_p_svn_prop_kind swig_types[77]
3021
#define SWIGTYPE_p_svn_stream_mark_t swig_types[78]
3022
#define SWIGTYPE_p_svn_stream_t swig_types[79]
3023
#define SWIGTYPE_p_svn_string_t swig_types[80]
3024
#define SWIGTYPE_p_svn_stringbuf_t swig_types[81]
3025
#define SWIGTYPE_p_svn_tristate_t swig_types[82]
3026
#define SWIGTYPE_p_svn_txdelta_op_t swig_types[83]
3027
#define SWIGTYPE_p_svn_txdelta_stream_t swig_types[84]
3028
#define SWIGTYPE_p_svn_txdelta_window_t swig_types[85]
3029
#define SWIGTYPE_p_svn_version_checklist_t swig_types[86]
3030
#define SWIGTYPE_p_svn_version_ext_linked_lib_t swig_types[87]
3031
#define SWIGTYPE_p_svn_version_ext_loaded_lib_t swig_types[88]
3032
#define SWIGTYPE_p_svn_version_extended_t swig_types[89]
3033
#define SWIGTYPE_p_svn_version_t swig_types[90]
3034
#define SWIGTYPE_p_svn_wc_external_item2_t swig_types[91]
3035
#define SWIGTYPE_p_unsigned_char swig_types[92]
3036
#define SWIGTYPE_p_unsigned_long swig_types[93]
3037
#define SWIGTYPE_p_void swig_types[94]
3038
static swig_type_info *swig_types[96];
3039
static swig_module_info swig_module = {swig_types, 95, 0, 0, 0, 0};
2974
#define SWIGTYPE_p_svn_diff_hunk_t swig_types[57]
2975
#define SWIGTYPE_p_svn_dirent_t swig_types[58]
2976
#define SWIGTYPE_p_svn_errno_t swig_types[59]
2977
#define SWIGTYPE_p_svn_error_t swig_types[60]
2978
#define SWIGTYPE_p_svn_fs_lock_target_t swig_types[61]
2979
#define SWIGTYPE_p_svn_io_dirent2_t swig_types[62]
2980
#define SWIGTYPE_p_svn_io_dirent_t swig_types[63]
2981
#define SWIGTYPE_p_svn_io_file_del_t swig_types[64]
2982
#define SWIGTYPE_p_svn_location_segment_t swig_types[65]
2983
#define SWIGTYPE_p_svn_lock_t swig_types[66]
2984
#define SWIGTYPE_p_svn_log_changed_path2_t swig_types[67]
2985
#define SWIGTYPE_p_svn_log_changed_path_t swig_types[68]
2986
#define SWIGTYPE_p_svn_log_entry_t swig_types[69]
2987
#define SWIGTYPE_p_svn_merge_range_t swig_types[70]
2988
#define SWIGTYPE_p_svn_mergeinfo_inheritance_t swig_types[71]
2989
#define SWIGTYPE_p_svn_node_kind_t swig_types[72]
2990
#define SWIGTYPE_p_svn_opt_revision_range_t swig_types[73]
2991
#define SWIGTYPE_p_svn_opt_revision_t swig_types[74]
2992
#define SWIGTYPE_p_svn_opt_revision_value_t swig_types[75]
2993
#define SWIGTYPE_p_svn_opt_subcommand_desc2_t swig_types[76]
2994
#define SWIGTYPE_p_svn_opt_subcommand_desc_t swig_types[77]
2995
#define SWIGTYPE_p_svn_prop_inherited_item_t swig_types[78]
2996
#define SWIGTYPE_p_svn_prop_kind swig_types[79]
2997
#define SWIGTYPE_p_svn_stream_mark_t swig_types[80]
2998
#define SWIGTYPE_p_svn_stream_t swig_types[81]
2999
#define SWIGTYPE_p_svn_string_t swig_types[82]
3000
#define SWIGTYPE_p_svn_stringbuf_t swig_types[83]
3001
#define SWIGTYPE_p_svn_tristate_t swig_types[84]
3002
#define SWIGTYPE_p_svn_txdelta_op_t swig_types[85]
3003
#define SWIGTYPE_p_svn_txdelta_stream_t swig_types[86]
3004
#define SWIGTYPE_p_svn_txdelta_window_t swig_types[87]
3005
#define SWIGTYPE_p_svn_version_checklist_t swig_types[88]
3006
#define SWIGTYPE_p_svn_version_ext_linked_lib_t swig_types[89]
3007
#define SWIGTYPE_p_svn_version_ext_loaded_lib_t swig_types[90]
3008
#define SWIGTYPE_p_svn_version_extended_t swig_types[91]
3009
#define SWIGTYPE_p_svn_version_t swig_types[92]
3010
#define SWIGTYPE_p_svn_wc_external_item2_t swig_types[93]
3011
#define SWIGTYPE_p_unsigned_char swig_types[94]
3012
#define SWIGTYPE_p_unsigned_long swig_types[95]
3013
#define SWIGTYPE_p_void swig_types[96]
3014
static swig_type_info *swig_types[98];
3015
static swig_module_info swig_module = {swig_types, 97, 0, 0, 0, 0};
3040
3016
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
3041
3017
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
9244
9232
static swig_type_info _swigt__p_svn_config_t = {"_p_svn_config_t", "struct svn_config_t *|svn_config_t *", 0, 0, (void*)0, 0};
9245
9233
static swig_type_info _swigt__p_svn_delta_editor_t = {"_p_svn_delta_editor_t", "struct svn_delta_editor_t *|svn_delta_editor_t *", 0, 0, (void*)0, 0};
9246
9234
static swig_type_info _swigt__p_svn_depth_t = {"_p_svn_depth_t", "enum svn_depth_t *|svn_depth_t *", 0, 0, (void*)0, 0};
9235
static swig_type_info _swigt__p_svn_diff_hunk_t = {"_p_svn_diff_hunk_t", "svn_diff_hunk_t *", 0, 0, (void*)0, 0};
9247
9236
static swig_type_info _swigt__p_svn_dirent_t = {"_p_svn_dirent_t", "struct svn_dirent_t *|svn_dirent_t *", 0, 0, (void*)0, 0};
9248
9237
static swig_type_info _swigt__p_svn_errno_t = {"_p_svn_errno_t", "enum svn_errno_t *|svn_errno_t *", 0, 0, (void*)0, 0};
9249
9238
static swig_type_info _swigt__p_svn_error_t = {"_p_svn_error_t", "struct svn_error_t *|svn_error_t *", 0, 0, (void*)0, 0};
9239
static swig_type_info _swigt__p_svn_fs_lock_target_t = {"_p_svn_fs_lock_target_t", "svn_fs_lock_target_t *", 0, 0, (void*)0, 0};
9250
9240
static swig_type_info _swigt__p_svn_io_dirent2_t = {"_p_svn_io_dirent2_t", "struct svn_io_dirent2_t *|svn_io_dirent2_t *", 0, 0, (void*)0, 0};
9251
9241
static swig_type_info _swigt__p_svn_io_dirent_t = {"_p_svn_io_dirent_t", "struct svn_io_dirent_t *|svn_io_dirent_t *", 0, 0, (void*)0, 0};
9252
9242
static swig_type_info _swigt__p_svn_io_file_del_t = {"_p_svn_io_file_del_t", "enum svn_io_file_del_t *|svn_io_file_del_t *", 0, 0, (void*)0, 0};
9438
9430
static swig_cast_info _swigc__p_svn_config_t[] = { {&_swigt__p_svn_config_t, 0, 0, 0},{0, 0, 0, 0}};
9439
9431
static swig_cast_info _swigc__p_svn_delta_editor_t[] = { {&_swigt__p_svn_delta_editor_t, 0, 0, 0},{0, 0, 0, 0}};
9440
9432
static swig_cast_info _swigc__p_svn_depth_t[] = { {&_swigt__p_svn_depth_t, 0, 0, 0},{0, 0, 0, 0}};
9433
static swig_cast_info _swigc__p_svn_diff_hunk_t[] = { {&_swigt__p_svn_diff_hunk_t, 0, 0, 0},{0, 0, 0, 0}};
9441
9434
static swig_cast_info _swigc__p_svn_dirent_t[] = { {&_swigt__p_svn_dirent_t, 0, 0, 0},{0, 0, 0, 0}};
9442
9435
static swig_cast_info _swigc__p_svn_errno_t[] = { {&_swigt__p_svn_errno_t, 0, 0, 0},{0, 0, 0, 0}};
9443
9436
static swig_cast_info _swigc__p_svn_error_t[] = { {&_swigt__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
9437
static swig_cast_info _swigc__p_svn_fs_lock_target_t[] = { {&_swigt__p_svn_fs_lock_target_t, 0, 0, 0},{0, 0, 0, 0}};
9444
9438
static swig_cast_info _swigc__p_svn_io_dirent2_t[] = { {&_swigt__p_svn_io_dirent2_t, 0, 0, 0},{0, 0, 0, 0}};
9445
9439
static swig_cast_info _swigc__p_svn_io_dirent_t[] = { {&_swigt__p_svn_io_dirent_t, 0, 0, 0},{0, 0, 0, 0}};
9446
9440
static swig_cast_info _swigc__p_svn_io_file_del_t[] = { {&_swigt__p_svn_io_file_del_t, 0, 0, 0},{0, 0, 0, 0}};
9587
9583
/* -----------------------------------------------------------------------------
9588
9584
* Type initialization:
9589
* This problem is tough by the requirement that no dynamic
9590
* memory is used. Also, since swig_type_info structures store pointers to
9585
* This problem is tough by the requirement that no dynamic
9586
* memory is used. Also, since swig_type_info structures store pointers to
9591
9587
* swig_cast_info structures and swig_cast_info structures store pointers back
9592
* to swig_type_info structures, we need some lookup code at initialization.
9593
* The idea is that swig generates all the structures that are needed.
9594
* The runtime then collects these partially filled structures.
9595
* The SWIG_InitializeModule function takes these initial arrays out of
9588
* to swig_type_info structures, we need some lookup code at initialization.
9589
* The idea is that swig generates all the structures that are needed.
9590
* The runtime then collects these partially filled structures.
9591
* The SWIG_InitializeModule function takes these initial arrays out of
9596
9592
* swig_module, and does all the lookup, filling in the swig_module.types
9597
9593
* array with the correct data and linking the correct swig_cast_info
9598
9594
* structures together.
9600
* The generated swig_type_info structures are assigned staticly to an initial
9596
* The generated swig_type_info structures are assigned staticly to an initial
9601
9597
* array. We just loop through that array, and handle each type individually.
9602
9598
* First we lookup if this type has been already loaded, and if so, use the
9603
9599
* loaded structure instead of the generated one. Then we have to fill in the
9607
9603
* a column is one of the swig_cast_info structures for that type.
9608
9604
* The cast_initial array is actually an array of arrays, because each row has
9609
9605
* a variable number of columns. So to actually build the cast linked list,
9610
* we find the array of casts associated with the type, and loop through it
9606
* we find the array of casts associated with the type, and loop through it
9611
9607
* adding the casts to the list. The one last trick we need to do is making
9612
9608
* sure the type pointer in the swig_cast_info struct is correct.
9614
* First off, we lookup the cast->type name to see if it is already loaded.
9610
* First off, we lookup the cast->type name to see if it is already loaded.
9615
9611
* There are three cases to handle:
9616
9612
* 1) If the cast->type has already been loaded AND the type we are adding
9617
9613
* casting info to has not been loaded (it is in this module), THEN we
9618
9614
* replace the cast->type pointer with the type pointer that has already
9620
* 2) If BOTH types (the one we are adding casting info to, and the
9616
* 2) If BOTH types (the one we are adding casting info to, and the
9621
9617
* cast->type) are loaded, THEN the cast info has already been loaded by
9622
9618
* the previous module so we just ignore it.
9623
9619
* 3) Finally, if cast->type has not already been loaded, then we add that