/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.25
 * 
 * This file is not intended to be easily readable and contains a number of 
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG 
 * interface file instead. 
 * ----------------------------------------------------------------------------- */

/***********************************************************************
 *
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 *
 ************************************************************************/

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
#  if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#    define SWIGTEMPLATEDISAMBIGUATOR template
#  else
#    define SWIGTEMPLATEDISAMBIGUATOR 
#  endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__) || defined(__ICC)
#   define SWIGUNUSED __attribute__ ((unused)) 
# else
#   define SWIGUNUSED 
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods for Windows DLLs */
#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   define SWIGEXPORT
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif 
#endif


/* ruby.swg */
/* Implementation : RUBY */
#define SWIGRUBY 1

#include "ruby.h"

/* Flags for pointer conversion */
#define SWIG_POINTER_EXCEPTION     0x1
#define SWIG_POINTER_DISOWN        0x2

#define NUM2USHRT(n) (\
    (0 <= NUM2UINT(n) && NUM2UINT(n) <= USHRT_MAX)\
    ? (unsigned short) NUM2UINT(n) \
    : (rb_raise(rb_eArgError, "integer %d out of range of `unsigned short'",\
               NUM2UINT(n)), (short)0)\
)

#define NUM2SHRT(n) (\
    (SHRT_MIN <= NUM2INT(n) && NUM2INT(n) <= SHRT_MAX)\
    ? (short)NUM2INT(n)\
    : (rb_raise(rb_eArgError, "integer %d out of range of `short'",\
               NUM2INT(n)), (short)0)\
)

/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
#ifndef NUM2LL
#define NUM2LL(x) NUM2LONG((x))
#endif
#ifndef LL2NUM
#define LL2NUM(x) INT2NUM((long) (x))
#endif
#ifndef ULL2NUM
#define ULL2NUM(x) UINT2NUM((unsigned long) (x))
#endif

/* Ruby 1.7 doesn't (yet) define NUM2ULL() */
#ifndef NUM2ULL
#ifdef HAVE_LONG_LONG
#define NUM2ULL(x) rb_num2ull((x))
#else
#define NUM2ULL(x) NUM2ULONG(x)
#endif
#endif

/*
 * Need to be very careful about how these macros are defined, especially
 * when compiling C++ code or C code with an ANSI C compiler.
 *
 * VALUEFUNC(f) is a macro used to typecast a C function that implements
 * a Ruby method so that it can be passed as an argument to API functions
 * like rb_define_method() and rb_define_singleton_method().
 *
 * VOIDFUNC(f) is a macro used to typecast a C function that implements
 * either the "mark" or "free" stuff for a Ruby Data object, so that it
 * can be passed as an argument to API functions like Data_Wrap_Struct()
 * and Data_Make_Struct().
 */
 
#ifdef __cplusplus
#  ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
#    define PROTECTFUNC(f) ((VALUE (*)()) f)
#    define VALUEFUNC(f) ((VALUE (*)()) f)
#    define VOIDFUNC(f)  ((void (*)()) f)
#  else
#    ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
#      define PROTECTFUNC(f) ((VALUE (*)()) f)
#      define VALUEFUNC(f) ((VALUE (*)()) f)
#      define VOIDFUNC(f)  ((RUBY_DATA_FUNC) f)
#    else /* These definitions should work for Ruby 1.7+ */
#      define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
#      define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
#      define VOIDFUNC(f)  ((RUBY_DATA_FUNC) f)
#    endif
#  endif
#else
#  define VALUEFUNC(f) (f)
#  define VOIDFUNC(f) (f)
#endif

typedef struct {
  VALUE klass;
  VALUE mImpl;
  void  (*mark)(void *);
  void  (*destroy)(void *);
} swig_class;

/* Don't use for expressions have side effect */
#ifndef RB_STRING_VALUE
#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
#endif
#ifndef StringValue
#define StringValue(s) RB_STRING_VALUE(s)
#endif
#ifndef StringValuePtr
#define StringValuePtr(s) RSTRING(RB_STRING_VALUE(s))->ptr
#endif
#ifndef StringValueLen
#define StringValueLen(s) RSTRING(RB_STRING_VALUE(s))->len
#endif
#ifndef SafeStringValue
#define SafeStringValue(v) do {\
    StringValue(v);\
    rb_check_safe_str(v);\
} while (0)
#endif

#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
#endif

/* Contract support */

#define SWIG_contract_assert(expr, msg) if (!(expr)) { rb_raise(rb_eRuntimeError, (char *) msg ); } else



/***********************************************************************
 * swigrun.swg
 *
 *     This file contains generic CAPI SWIG runtime support for pointer
 *     type checking.
 *
 ************************************************************************/

/* This should only be incremented when either the layout of swig_type_info changes,
   or for whatever reason, the runtime changes incompatibly */
#define SWIG_RUNTIME_VERSION "2"

/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
#ifdef SWIG_TYPE_TABLE
# define SWIG_QUOTE_STRING(x) #x
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
#else
# define SWIG_TYPE_TABLE_NAME
#endif

/*
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
  creating a static or dynamic library from the swig runtime code.
  In 99.9% of the cases, swig just needs to declare them as 'static'.
  
  But only do this if is strictly necessary, ie, if you have problems
  with your compiler or so.
*/

#ifndef SWIGRUNTIME
# define SWIGRUNTIME SWIGINTERN
#endif

#ifndef SWIGRUNTIMEINLINE
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
#endif

#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef void *(*swig_converter_func)(void *);
typedef struct swig_type_info *(*swig_dycast_func)(void **);

/* Structure to store inforomation on one type */
typedef struct swig_type_info {
  const char             *name;			/* mangled name of this type */
  const char             *str;			/* human readable name of this type */
  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
  void                   *clientdata;		/* language specific type data */
} swig_type_info;

/* Structure to store a type and conversion function used for casting */
typedef struct swig_cast_info {
  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
  swig_converter_func     converter;		/* function to cast the void pointers */
  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
  struct swig_cast_info  *prev;			/* pointer to the previous cast */
} swig_cast_info;

/* Structure used to store module information
 * Each module generates one structure like this, and the runtime collects
 * all of these structures and stores them in a circularly linked list.*/
typedef struct swig_module_info {
  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
  size_t                 size;		        /* Number of types in this module */
  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
  swig_type_info         **type_initial;	/* Array of initially generated type structures */
  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
  void                    *clientdata;		/* Language specific module data */
} swig_module_info;


/* 
  Compare two type names skipping the space characters, therefore
  "char*" == "char *" and "Class<int>" == "Class<int >", etc.

  Return 0 when the two name types are equivalent, as in
  strncmp, but skipping ' '.
*/
SWIGRUNTIME int
SWIG_TypeNameComp(const char *f1, const char *l1,
		  const char *f2, const char *l2) {
  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
    while ((*f1 == ' ') && (f1 != l1)) ++f1;
    while ((*f2 == ' ') && (f2 != l2)) ++f2;
    if (*f1 != *f2) return (int)(*f1 - *f2);
  }
  return (l1 - f1) - (l2 - f2);
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
SWIG_TypeEquiv(const char *nb, const char *tb) {
  int equiv = 0;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (!equiv && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
    if (*ne) ++ne;
  }
  return equiv;
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
SWIG_TypeCompare(const char *nb, const char *tb) {
  int equiv = 0;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (!equiv && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
    if (*ne) ++ne;
  }
  return equiv;
}


/* think of this as a c++ template<> or a scheme macro */
#define SWIG_TypeCheck_Template(comparison, ty)         \
  if (ty) {                                             \
    swig_cast_info *iter = ty->cast;                    \
    while (iter) {                                      \
      if (comparison) {                                 \
        if (iter == ty->cast) return iter;              \
        /* Move iter to the top of the linked list */   \
        iter->prev->next = iter->next;                  \
        if (iter->next)                                 \
          iter->next->prev = iter->prev;                \
        iter->next = ty->cast;                          \
        iter->prev = 0;                                 \
        if (ty->cast) ty->cast->prev = iter;            \
        ty->cast = iter;                                \
        return iter;                                    \
      }                                                 \
      iter = iter->next;                                \
    }                                                   \
  }                                                     \
  return 0

/*
  Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
}

/* Same as previous function, except strcmp is replaced with a pointer comparison */
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
  SWIG_TypeCheck_Template(iter->type == from, into);
}

/*
  Cast a pointer up an inheritance hierarchy
*/
SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
}

/* 
   Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
  swig_type_info *lastty = ty;
  if (!ty || !ty->dcast) return ty;
  while (ty && (ty->dcast)) {
    ty = (*ty->dcast)(ptr);
    if (ty) lastty = ty;
  }
  return lastty;
}

/*
  Return the name associated with this type
*/
SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info *ty) {
  return ty->name;
}

/*
  Return the pretty name associated with this type,
  that is an unmangled type name in a form presentable to the user.
*/
SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info *type) {
  /* The "str" field contains the equivalent pretty names of the
     type, separated by vertical-bar characters.  We choose
     to print the last name, as it is often (?) the most
     specific. */
  if (type->str != NULL) {
    const char *last_name = type->str;
    const char *s;
    for (s = type->str; *s; s++)
      if (*s == '|') last_name = s+1;
    return last_name;
  }
  else
    return type->name;
}

/* 
   Set the clientdata field for a type
*/
SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
  if (!ti->clientdata) {
    swig_cast_info *cast = ti->cast;
    /* if (ti->clientdata == clientdata) return; */
    ti->clientdata = clientdata;
    
    while (cast) {
      if (!cast->converter)
	SWIG_TypeClientData(cast->type, clientdata);
      cast = cast->next;
    }
  }
}

/*
  Search for a swig_type_info structure only by mangled name
  Search is a O(log #types)
  
  We start searching at module start, and finish searching when start == end.  
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info *start, 
                            swig_module_info *end, 
		            const char *name) {
  swig_module_info *iter = start;
  do {
    if (iter->size) {
      register size_t l = 0;
      register size_t r = iter->size - 1;
      do {
	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
	register size_t i = (l + r) >> 1; 
	const char *iname = iter->types[i]->name;
	if (iname) {
	  register int compare = strcmp(name, iname);
	  if (compare == 0) {	    
	    return iter->types[i];
	  } else if (compare < 0) {
	    if (i) {
	      r = i - 1;
	    } else {
	      break;
	    }
	  } else if (compare > 0) {
	    l = i + 1;
	  }
	} else {
	  break; /* should never happen */
	}
      } while (l <= r);
    }
    iter = iter->next;
  } while (iter != end);
  return 0;
}

/*
  Search for a swig_type_info structure for either a mangled name or a human readable name.
  It first searches the mangled names of the types, which is a O(log #types)
  If a type is not found it then searches the human readable names, which is O(#types).
  
  We start searching at module start, and finish searching when start == end.  
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info *start, 
                     swig_module_info *end, 
		     const char *name) {
  /* STEP 1: Search the name field using binary search */
  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
  if (ret) {
    return ret;
  } else {
    /* STEP 2: If the type hasn't been found, do a complete search
       of the str field (the human readable name) */
    swig_module_info *iter = start;
    do {
      register size_t i = 0;
      for (; i < iter->size; ++i) {
	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
	  return iter->types[i];
      }
      iter = iter->next;
    } while (iter != end);
  }
  
  /* neither found a match */
  return 0;
}


/* 
   Pack binary data into a string
*/
SWIGRUNTIME char *
SWIG_PackData(char *c, void *ptr, size_t sz) {
  static const char hex[17] = "0123456789abcdef";
  register const unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu =  u + sz;
  for (; u != eu; ++u) {
    register unsigned char uu = *u;
    *(c++) = hex[(uu & 0xf0) >> 4];
    *(c++) = hex[uu & 0xf];
  }
  return c;
}

/* 
   Unpack binary data from a string
*/
SWIGRUNTIME const char *
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
  register unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu = u + sz;
  for (; u != eu; ++u) {
    register char d = *(c++);
    register unsigned char uu = 0;
    if ((d >= '0') && (d <= '9'))
      uu = ((d - '0') << 4);
    else if ((d >= 'a') && (d <= 'f'))
      uu = ((d - ('a'-10)) << 4);
    else 
      return (char *) 0;
    d = *(c++);
    if ((d >= '0') && (d <= '9'))
      uu |= (d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      uu |= (d - ('a'-10));
    else 
      return (char *) 0;
    *u = uu;
  }
  return c;
}

/* 
   Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
  char *r = buff;
  if ((2*sizeof(void *) + 2) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,&ptr,sizeof(void *));
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
  strcpy(r,name);
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      *ptr = (void *) 0;
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sizeof(void *));
}

SWIGRUNTIME char *
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
  char *r = buff;
  size_t lname = (name ? strlen(name) : 0);
  if ((2*sz + 2 + lname) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,ptr,sz);
  if (lname) {
    strncpy(r,name,lname+1);
  } else {
    *r = 0;
  }
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      memset(ptr,0,sz);
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sz);
}

#ifdef __cplusplus
}
#endif


/* Common SWIG API */
#define SWIG_ConvertPtr(obj, pp, type, flags) \
  SWIG_Ruby_ConvertPtr(obj, pp, type, flags)
#define SWIG_NewPointerObj(p, type, flags) \
  SWIG_Ruby_NewPointerObj(p, type, flags)
#define SWIG_MustGetPtr(p, type, argnum, flags) \
  SWIG_Ruby_MustGetPtr(p, type, argnum, flags)
#define SWIG_GetModule(clientdata) \
  SWIG_Ruby_GetModule()
#define SWIG_SetModule(clientdata, pointer) \
  SWIG_Ruby_SetModule(pointer)

/* Ruby-specific SWIG API */

#define SWIG_InitRuntime() \
  SWIG_Ruby_InitRuntime()
#define SWIG_define_class(ty) \
  SWIG_Ruby_define_class(ty)
#define SWIG_NewClassInstance(value, ty) \
  SWIG_Ruby_NewClassInstance(value, ty)
#define SWIG_MangleStr(value) \
  SWIG_Ruby_MangleStr(value)
#define SWIG_CheckConvert(value, ty) \
  SWIG_Ruby_CheckConvert(value, ty)
#define SWIG_NewPackedObj(ptr, sz, ty) \
  SWIG_Ruby_NewPackedObj(ptr, sz, ty)
#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
  SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)

/* rubydef.swg */
#ifdef __cplusplus
extern "C" {
#endif

static VALUE _mSWIG = Qnil;
static VALUE _cSWIG_Pointer = Qnil;
static VALUE swig_runtime_data_type_pointer = Qnil;

/* Initialize Ruby runtime support */
static void
SWIG_Ruby_InitRuntime(void)
{
    if (_mSWIG == Qnil) {
        _mSWIG = rb_define_module("SWIG");
    }
}

/* Define Ruby class for C type */
static void
SWIG_Ruby_define_class(swig_type_info *type)
{
    VALUE klass;
    char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
    sprintf(klass_name, "TYPE%s", type->name);
    if (NIL_P(_cSWIG_Pointer)) {
	_cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
	rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
    }
    klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
    free((void *) klass_name);
}

/* Create a new pointer object */
static VALUE
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int own)
{
    char *klass_name;
    swig_class *sklass;
    VALUE klass;
    VALUE obj;
    
    if (!ptr)
	return Qnil;
    
    if (type->clientdata) {
      sklass = (swig_class *) type->clientdata;
      obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), (own ? VOIDFUNC(sklass->destroy) : 0), ptr);
    } else {
      klass_name = (char *) malloc(4 + strlen(type->name) + 1);
      sprintf(klass_name, "TYPE%s", type->name);
      klass = rb_const_get(_mSWIG, rb_intern(klass_name));
      free((void *) klass_name);
      obj = Data_Wrap_Struct(klass, 0, 0, ptr);
    }
    rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
    return obj;
}

/* Create a new class instance (always owned) */
static VALUE
SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
{
    VALUE obj;
    swig_class *sklass = (swig_class *) type->clientdata;
    obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
    rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
    return obj;
}

/* Get type mangle from class name */
static SWIGINLINE char *
SWIG_Ruby_MangleStr(VALUE obj)
{
  VALUE stype = rb_iv_get(obj, "__swigtype__");
  return StringValuePtr(stype);
}

/* Convert a pointer value */
static int
SWIG_Ruby_ConvertPtr(VALUE obj, void **ptr, swig_type_info *ty, int flags)
{
  char *c;
  swig_cast_info *tc;

  /* Grab the pointer */
  if (NIL_P(obj)) {
    *ptr = 0;
    return 0;
  } else {
    Data_Get_Struct(obj, void, *ptr);
  }
  
  /* Do type-checking if type info was provided */
  if (ty) {
    if (ty->clientdata) {
        if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
          if (*ptr == 0)
            rb_raise(rb_eRuntimeError, "This %s already released", ty->str);
          return 0;
        }
    }
    if ((c = SWIG_MangleStr(obj)) == NULL) {
      if (flags & SWIG_POINTER_EXCEPTION)
        rb_raise(rb_eTypeError, "Expected %s", ty->str);
      else
        return -1;
    }
    tc = SWIG_TypeCheck(c, ty);
    if (!tc) {
      if (flags & SWIG_POINTER_EXCEPTION)
        rb_raise(rb_eTypeError, "Expected %s", ty->str);
      else
        return -1;
    }
    *ptr = SWIG_TypeCast(tc, *ptr);
  }
  return 0;
}

/* Convert a pointer value, signal an exception on a type mismatch */
static SWIGINLINE void *
SWIG_Ruby_MustGetPtr(VALUE obj, swig_type_info *ty, int argnum, int flags)
{
  void *result;
  SWIG_ConvertPtr(obj, &result, ty, flags | SWIG_POINTER_EXCEPTION);
  return result;
}

/* Check convert */
static SWIGINLINE int
SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
{
  char *c = SWIG_MangleStr(obj);
  if (!c)
    return 0;
  return SWIG_TypeCheck(c,ty) != 0;
}

static VALUE
SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
  char result[1024];
  char *r = result;
  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r, ptr, sz);
  strcpy(r, type->name);
  return rb_str_new2(result);
}

/* Convert a packed value value */
static void
SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty, int flags) {
  swig_cast_info *tc;
  const char  *c;

  if (TYPE(obj) != T_STRING) goto type_error;
  c = StringValuePtr(obj);
  /* Pointer values must start with leading underscore */
  if (*c != '_') goto type_error;
  c++;
  c = SWIG_UnpackData(c, ptr, sz);
  if (ty) {
    tc = SWIG_TypeCheck(c, ty);
    if (!tc) goto type_error;
  }
  return;

type_error:

  if (flags) {
    if (ty) {
      rb_raise(rb_eTypeError, "Type error. Expected %s", ty->name);
    } else {
      rb_raise(rb_eTypeError, "Expected a pointer");
    }
  }
}

static swig_module_info *SWIG_Ruby_GetModule() {
    VALUE pointer;
    swig_module_info *ret = 0;

   /* first check if pointer already created */
    pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
    if (pointer != Qnil) {
      Data_Get_Struct(pointer, swig_module_info, ret);
    }
    return ret;
}

static void SWIG_Ruby_SetModule(swig_module_info *pointer) {
      /* register a new class */
      VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
      /* create and store the structure pointer to a global variable */
      swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
      rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
}

#ifdef __cplusplus
}
#endif




/* -------- TYPES TABLE (BEGIN) -------- */

#define SWIGTYPE_p_apr_allocator_t swig_types[0]
#define SWIGTYPE_p_apr_array_header_t swig_types[1]
#define SWIGTYPE_p_apr_file_t swig_types[2]
#define SWIGTYPE_p_apr_getopt_option_t swig_types[3]
#define SWIGTYPE_p_apr_getopt_t swig_types[4]
#define SWIGTYPE_p_apr_hash_t swig_types[5]
#define SWIGTYPE_p_apr_int32_t swig_types[6]
#define SWIGTYPE_p_apr_int64_t swig_types[7]
#define SWIGTYPE_p_apr_pool_t swig_types[8]
#define SWIGTYPE_p_apr_pool_wrapper_t swig_types[9]
#define SWIGTYPE_p_apr_size_t swig_types[10]
#define SWIGTYPE_p_apr_uint32_t swig_types[11]
#define SWIGTYPE_p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t swig_types[12]
#define SWIGTYPE_p_f_p_apr_uint32_t_p_p_void_p_void_svn_diff_datasource_e__p_svn_error_t swig_types[13]
#define SWIGTYPE_p_f_p_p_void_p_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[14]
#define SWIGTYPE_p_f_p_p_void_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[15]
#define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__int swig_types[16]
#define SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void_p_apr_pool_t__int swig_types[17]
#define SWIGTYPE_p_f_p_q_const__char_p_void__int swig_types[18]
#define SWIGTYPE_p_f_p_q_const__char_p_void_p_apr_pool_t__int swig_types[19]
#define SWIGTYPE_p_f_p_svn_boolean_t_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t swig_types[20]
#define SWIGTYPE_p_f_p_void__void swig_types[21]
#define SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t swig_types[22]
#define SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_p_svn_diff_t__p_svn_error_t swig_types[23]
#define SWIGTYPE_p_f_p_void_p_void__void swig_types[24]
#define SWIGTYPE_p_f_p_void_p_void_p_void_p_int__p_svn_error_t swig_types[25]
#define SWIGTYPE_p_f_p_void_svn_diff_datasource_e__p_svn_error_t swig_types[26]
#define SWIGTYPE_p_f_void__p_svn_version_t swig_types[27]
#define SWIGTYPE_p_int swig_types[28]
#define SWIGTYPE_p_long swig_types[29]
#define SWIGTYPE_p_p_apr_array_header_t swig_types[30]
#define SWIGTYPE_p_p_apr_file_t swig_types[31]
#define SWIGTYPE_p_p_apr_hash_t swig_types[32]
#define SWIGTYPE_p_p_char swig_types[33]
#define SWIGTYPE_p_p_svn_auth_baton_t swig_types[34]
#define SWIGTYPE_p_p_svn_auth_iterstate_t swig_types[35]
#define SWIGTYPE_p_p_svn_config_t swig_types[36]
#define SWIGTYPE_p_p_svn_diff_t swig_types[37]
#define SWIGTYPE_p_p_svn_stream_t swig_types[38]
#define SWIGTYPE_p_p_svn_string_t swig_types[39]
#define SWIGTYPE_p_p_svn_stringbuf_t swig_types[40]
#define SWIGTYPE_p_p_void swig_types[41]
#define SWIGTYPE_p_svn_auth_baton_t swig_types[42]
#define SWIGTYPE_p_svn_auth_cred_simple_t swig_types[43]
#define SWIGTYPE_p_svn_auth_cred_ssl_client_cert_pw_t swig_types[44]
#define SWIGTYPE_p_svn_auth_cred_ssl_client_cert_t swig_types[45]
#define SWIGTYPE_p_svn_auth_cred_ssl_server_trust_t swig_types[46]
#define SWIGTYPE_p_svn_auth_cred_username_t swig_types[47]
#define SWIGTYPE_p_svn_auth_iterstate_t swig_types[48]
#define SWIGTYPE_p_svn_auth_provider_object_t swig_types[49]
#define SWIGTYPE_p_svn_auth_provider_t swig_types[50]
#define SWIGTYPE_p_svn_auth_ssl_server_cert_info_t swig_types[51]
#define SWIGTYPE_p_svn_commit_info_t swig_types[52]
#define SWIGTYPE_p_svn_config_t swig_types[53]
#define SWIGTYPE_p_svn_diff_datasource_e swig_types[54]
#define SWIGTYPE_p_svn_diff_fns_t swig_types[55]
#define SWIGTYPE_p_svn_diff_output_fns_t swig_types[56]
#define SWIGTYPE_p_svn_diff_t swig_types[57]
#define SWIGTYPE_p_svn_dirent_t swig_types[58]
#define SWIGTYPE_p_svn_errno_t swig_types[59]
#define SWIGTYPE_p_svn_error_t swig_types[60]
#define SWIGTYPE_p_svn_io_dirent_t swig_types[61]
#define SWIGTYPE_p_svn_lock_t swig_types[62]
#define SWIGTYPE_p_svn_log_changed_path_t swig_types[63]
#define SWIGTYPE_p_svn_node_kind_t swig_types[64]
#define SWIGTYPE_p_svn_opt_revision_t swig_types[65]
#define SWIGTYPE_p_svn_opt_revision_value_t swig_types[66]
#define SWIGTYPE_p_svn_opt_subcommand_desc_t swig_types[67]
#define SWIGTYPE_p_svn_prop_kind swig_types[68]
#define SWIGTYPE_p_svn_prop_t swig_types[69]
#define SWIGTYPE_p_svn_stream_t swig_types[70]
#define SWIGTYPE_p_svn_string_t swig_types[71]
#define SWIGTYPE_p_svn_stringbuf_t swig_types[72]
#define SWIGTYPE_p_svn_version_checklist_t swig_types[73]
#define SWIGTYPE_p_svn_version_t swig_types[74]
#define SWIGTYPE_p_unsigned_char swig_types[75]
#define SWIGTYPE_p_unsigned_long swig_types[76]
#define SWIGTYPE_p_void swig_types[77]
static swig_type_info *swig_types[78];
static swig_module_info swig_module = {swig_types, 78, 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) -------- */

#define SWIG_init    Init_core
#define SWIG_name    "Svn::Ext::Core"

static VALUE mCore;

static void SWIG_AsVal(VALUE obj, int *val)
{
    *val = (int) NUM2INT(obj);
}


static VALUE _global_svn_swig_rb_pool = Qnil;


#include "svn_time.h"
#include <svn_pools.h>


#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
struct timeval rb_time_timeval(VALUE);
#endif
#ifdef __cplusplus
}
#endif


#ifdef __cplusplus
extern "C" {
#endif
#include "rubyio.h"
#ifdef __cplusplus
}
#endif


#include <apr.h>
#include <apr_general.h>

#include "svn_md5.h"
#include "svn_diff.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_error_codes.h"




#define  SWIG_MemoryError    1
#define  SWIG_IOError        2
#define  SWIG_RuntimeError   3
#define  SWIG_IndexError     4
#define  SWIG_TypeError      5
#define  SWIG_DivisionByZero 6
#define  SWIG_OverflowError  7
#define  SWIG_SyntaxError    8
#define  SWIG_ValueError     9
#define  SWIG_SystemError   10
#define  SWIG_UnknownError  99


SWIGINTERN void SWIG_exception_(int code, const char *msg) {
    switch (code) {
        case SWIG_MemoryError:
            rb_raise(rb_eNoMemError, msg);
            break;
        case SWIG_IOError:
            rb_raise(rb_eIOError, msg);
            break;
        case SWIG_RuntimeError:
            rb_raise(rb_eRuntimeError, msg);
            break;
        case SWIG_IndexError:
            rb_raise(rb_eIndexError, msg);
            break;
        case SWIG_TypeError:
            rb_raise(rb_eTypeError, msg);
            break;
        case SWIG_DivisionByZero:
            rb_raise(rb_eZeroDivError, msg);
            break;
        case SWIG_OverflowError:
            rb_raise(rb_eRangeError, msg);
            break;
        case SWIG_SyntaxError:
            rb_raise(rb_eSyntaxError, msg);
            break;
        case SWIG_ValueError:
            rb_raise(rb_eArgError, msg);
            break;
        case SWIG_SystemError:
            rb_raise(rb_eFatal, msg);
            break;
        case SWIG_UnknownError:
            rb_raise(rb_eRuntimeError, msg);
            break;
        default:
            break;
    }
}

#define SWIG_exception(a, b) SWIG_exception_((a), (b))


#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_time.h"


static VALUE output_helper(VALUE target, VALUE o) {
    if (NIL_P(target)) {
	target = o;
    } else {
	if (TYPE(target) != T_ARRAY) {
	    VALUE o2 = target;
	    target = rb_ary_new();
	    rb_ary_push(target, o2);
	}
	rb_ary_push(target, o);
    }
    return target;
}




#include "svn_types.h"




#include "svn_pools.h"




#include "svn_version.h"




#include "svn_props.h"




#include "svn_opt.h"




#include "svn_auth.h"




#include "svn_config.h"




#include "svn_utf.h"




#include "svn_nls.h"




#include "svn_io.h"




static void apr_pool_wrapper_destroy_children(apr_pool_wrapper_t *self);
static void apr_pool_wrapper_remove_from_parent(apr_pool_wrapper_t *self);

static struct apr_pool_wrapper_t *new_apr_pool_wrapper_t(apr_pool_wrapper_t *parent){
    apr_pool_wrapper_t *self;
    apr_pool_t *parent_pool;

    self = ALLOC(apr_pool_wrapper_t);
    if (parent) {
      parent_pool = parent->pool;
      (*((apr_pool_wrapper_t * *)apr_array_push (parent->children))) = self;
    } else {
      parent_pool = NULL;
    }
    self->pool = svn_pool_create_ex(parent_pool, NULL);
    self->destroyed = 0;
    self->parent = parent;
    self->children = apr_array_make(self->pool, 0,
                                    sizeof(apr_pool_wrapper_t *));
    return self;
  }

static void
apr_pool_wrapper_destroy_children(apr_pool_wrapper_t *self)
{
  if (!self->destroyed) {
    apr_pool_wrapper_t **child;

    self->destroyed = TRUE;
    while (child = apr_array_pop(self->children)) {
      if (*child) {
        apr_pool_wrapper_destroy_children(*child);
      }
    }
  }
}

static void
apr_pool_wrapper_remove_from_parent(apr_pool_wrapper_t *self)
{
  if (self->parent) {
    apr_pool_wrapper_t *child;
    int i, len;

    len = self->parent->children->nelts;
    for (i = 0; i < len; i++) {
      child = APR_ARRAY_IDX(self->parent->children, i, apr_pool_wrapper_t *);
      if (child == self) {
        APR_ARRAY_IDX(self->parent->children, i, apr_pool_wrapper_t *) = NULL;
        break;
      }
    }
  }
}


#include "svn_diff.h"


static svn_error_t *svn_diff_fns_invoke_datasource_open(
  svn_diff_fns_t *_obj, void *diff_baton, svn_diff_datasource_e datasource) {
  return _obj->datasource_open(diff_baton, datasource);
}

static svn_error_t *svn_diff_fns_invoke_datasource_close(
  svn_diff_fns_t *_obj, void *diff_baton, svn_diff_datasource_e datasource) {
  return _obj->datasource_close(diff_baton, datasource);
}

static svn_error_t *svn_diff_fns_invoke_datasource_get_next_token(
  svn_diff_fns_t *_obj, apr_uint32_t *hash, void **token, void *diff_baton, svn_diff_datasource_e datasource) {
  return _obj->datasource_get_next_token(hash, token, diff_baton, datasource);
}

static svn_error_t *svn_diff_fns_invoke_token_compare(
  svn_diff_fns_t *_obj, void *diff_baton, void *ltoken, void *rtoken, int *compare) {
  return _obj->token_compare(diff_baton, ltoken, rtoken, compare);
}

static svn_error_t *svn_diff_output_fns_invoke_output_common(
  svn_diff_output_fns_t *_obj, void *output_baton, apr_off_t original_start, apr_off_t original_length, apr_off_t modified_start, apr_off_t modified_length, apr_off_t latest_start, apr_off_t latest_length) {
  return _obj->output_common(output_baton, original_start, original_length, modified_start, modified_length, latest_start, latest_length);
}

static svn_error_t *svn_diff_output_fns_invoke_output_diff_modified(
  svn_diff_output_fns_t *_obj, void *output_baton, apr_off_t original_start, apr_off_t original_length, apr_off_t modified_start, apr_off_t modified_length, apr_off_t latest_start, apr_off_t latest_length) {
  return _obj->output_diff_modified(output_baton, original_start, original_length, modified_start, modified_length, latest_start, latest_length);
}

static svn_error_t *svn_diff_output_fns_invoke_output_diff_latest(
  svn_diff_output_fns_t *_obj, void *output_baton, apr_off_t original_start, apr_off_t original_length, apr_off_t modified_start, apr_off_t modified_length, apr_off_t latest_start, apr_off_t latest_length) {
  return _obj->output_diff_latest(output_baton, original_start, original_length, modified_start, modified_length, latest_start, latest_length);
}

static svn_error_t *svn_diff_output_fns_invoke_output_diff_common(
  svn_diff_output_fns_t *_obj, void *output_baton, apr_off_t original_start, apr_off_t original_length, apr_off_t modified_start, apr_off_t modified_length, apr_off_t latest_start, apr_off_t latest_length) {
  return _obj->output_diff_common(output_baton, original_start, original_length, modified_start, modified_length, latest_start, latest_length);
}

static svn_error_t *svn_diff_output_fns_invoke_output_conflict(
  svn_diff_output_fns_t *_obj, void *output_baton, apr_off_t original_start, apr_off_t original_length, apr_off_t modified_start, apr_off_t modified_length, apr_off_t latest_start, apr_off_t latest_length, svn_diff_t *resolved_diff) {
  return _obj->output_conflict(output_baton, original_start, original_length, modified_start, modified_length, latest_start, latest_length, resolved_diff);
}



static VALUE
svn_default_charset(void)
{
  return INT2NUM((int)APR_DEFAULT_CHARSET);
}
 
static VALUE
svn_locale_charset(void)
{
  return INT2NUM((int)APR_LOCALE_CHARSET);
}

static VALUE
_wrap_svn_time_to_cstring(int argc, VALUE *argv, VALUE self) {
    apr_time_t arg1 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    char *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    arg1 = (apr_time_t) NUM2LL(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (char *)svn_time_to_cstring(arg1,arg2);
        
        
        
        
    }
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    {
        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_time_from_cstring(int argc, VALUE *argv, VALUE self) {
    apr_time_t *arg1 = (apr_time_t *) 0 ;
    char *arg2 = (char *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_time_t temp1 ;
    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);
    }
    arg1 = &temp1;
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg2 = StringValuePtr(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_time_from_cstring(arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        VALUE o = LL2NUM((long long) (*arg1));
        vresult = output_helper(vresult, o);
    }
    {
        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_time_to_human_cstring(int argc, VALUE *argv, VALUE self) {
    apr_time_t arg1 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    char *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    arg1 = (apr_time_t) NUM2LL(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (char *)svn_time_to_human_cstring(arg1,arg2);
        
        
        
        
    }
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    {
        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_parse_date(int argc, VALUE *argv, VALUE self) {
    svn_boolean_t *arg1 = (svn_boolean_t *) 0 ;
    apr_time_t *arg2 = (apr_time_t *) 0 ;
    char *arg3 = (char *) 0 ;
    apr_time_t arg4 ;
    apr_pool_t *arg5 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_boolean_t temp1 ;
    apr_time_t temp2 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);
        _global_pool = arg5;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        arg1 = &temp1;
    }
    arg2 = &temp2;
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    arg3 = StringValuePtr(argv[0]);
    arg4 = (apr_time_t) NUM2LL(argv[1]);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_parse_date(arg1,arg2,(char const *)arg3,arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, *arg1 ? Qtrue : Qfalse);
    }
    {
        VALUE o = LL2NUM((long long) (*arg2));
        vresult = output_helper(vresult, o);
    }
    {
        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_sleep_for_timestamps(int argc, VALUE *argv, VALUE self) {
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        svn_sleep_for_timestamps();
        
        
        
        
    }
    return Qnil;
}


swig_class cSvn_error_t;

static VALUE
_wrap_svn_error_t_apr_err_set(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    apr_status_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    arg2 = NUM2INT(argv[0]);
    if (arg1) (arg1)->apr_err = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_error_t_apr_err_get(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    apr_status_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    result = (apr_status_t) ((arg1)->apr_err);
    
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_error_t_message_get(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    result = (char *) ((arg1)->message);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_error_t_child_set(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    struct svn_error_t *arg2 = (struct svn_error_t *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_svn_error_t, 1);
    if (arg1) (arg1)->child = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_error_t_child_get(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    struct svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    result = (struct svn_error_t *) ((arg1)->child);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_error_t_pool_set(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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 < 0) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    if (argc > 0) {
        
    }
    if (arg1) (arg1)->pool = arg2;
    
    {
        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_error_t_pool_get(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    apr_pool_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    result = (apr_pool_t *) ((arg1)->pool);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_apr_pool_t,0);
    return vresult;
}


static VALUE
_wrap_svn_error_t_file_get(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    result = (char *) ((arg1)->file);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_error_t_line_set(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    long arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    arg2 = NUM2LONG(argv[0]);
    if (arg1) (arg1)->line = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_error_t_line_get(int argc, VALUE *argv, VALUE self) {
    svn_error_t *arg1 = (svn_error_t *) 0 ;
    long result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_error_t, 1);
    result = (long) ((arg1)->line);
    
    vresult = INT2NUM(result);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_error_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_error_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_error_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_error_t(int argc, VALUE *argv, VALUE self) {
    svn_error_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_error_t *)(svn_error_t *) calloc(1, sizeof(svn_error_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_error_t(svn_error_t *arg1) {
    free((char *) arg1);
}
swig_class cSvn_dirent_t;

static VALUE
_wrap_svn_dirent_t_kind_set(int argc, VALUE *argv, VALUE self) {
    svn_dirent_t *arg1 = (svn_dirent_t *) 0 ;
    svn_node_kind_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    arg2 = (svn_node_kind_t) NUM2INT(argv[0]);
    if (arg1) (arg1)->kind = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_dirent_t_kind_get(int argc, VALUE *argv, VALUE self) {
    svn_dirent_t *arg1 = (svn_dirent_t *) 0 ;
    svn_node_kind_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    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 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    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;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    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 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    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;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    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 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    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;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    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 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    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;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    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;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_dirent_t, 1);
    result = (char *) ((arg1)->last_author);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static 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 void
free_svn_dirent_t(svn_dirent_t *arg1) {
    free((char *) arg1);
}
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 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_commit_info_t, 1);
    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;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_commit_info_t, 1);
    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 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_commit_info_t, 1);
    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;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_commit_info_t, 1);
    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 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_commit_info_t, 1);
    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;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_commit_info_t, 1);
    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_commit_info_t *arg1 = (svn_commit_info_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_commit_info_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->post_commit_err) free((char *)arg1->post_commit_err);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->post_commit_err = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_commit_info_t_post_commit_err_get(int argc, VALUE *argv, VALUE self) {
    svn_commit_info_t *arg1 = (svn_commit_info_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_commit_info_t, 1);
    result = (char *) ((arg1)->post_commit_err);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_commit_info_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_commit_info_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_commit_info_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_commit_info_t(int argc, VALUE *argv, VALUE self) {
    svn_commit_info_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_commit_info_t *)(svn_commit_info_t *) calloc(1, sizeof(svn_commit_info_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_commit_info_t(svn_commit_info_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_create_commit_info(int argc, VALUE *argv, VALUE self) {
    apr_pool_t *arg1 = (apr_pool_t *) 0 ;
    svn_commit_info_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg1);
        _global_pool = arg1;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 0) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    if (argc > 0) {
        
    }
    {
        result = (svn_commit_info_t *)svn_create_commit_info(arg1);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_commit_info_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_log_changed_path_t;

static VALUE
_wrap_svn_log_changed_path_t_action_set(int argc, VALUE *argv, VALUE self) {
    svn_log_changed_path_t *arg1 = (svn_log_changed_path_t *) 0 ;
    char arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_log_changed_path_t, 1);
    arg2 = NUM2CHR(argv[0]);
    if (arg1) (arg1)->action = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_log_changed_path_t_action_get(int argc, VALUE *argv, VALUE self) {
    svn_log_changed_path_t *arg1 = (svn_log_changed_path_t *) 0 ;
    char result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_log_changed_path_t, 1);
    result = (char) ((arg1)->action);
    
    vresult = rb_str_new(&result,1);
    return vresult;
}


static VALUE
_wrap_svn_log_changed_path_t_copyfrom_path_get(int argc, VALUE *argv, VALUE self) {
    svn_log_changed_path_t *arg1 = (svn_log_changed_path_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_log_changed_path_t, 1);
    result = (char *) ((arg1)->copyfrom_path);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_log_changed_path_t_copyfrom_rev_set(int argc, VALUE *argv, VALUE self) {
    svn_log_changed_path_t *arg1 = (svn_log_changed_path_t *) 0 ;
    svn_revnum_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_log_changed_path_t, 1);
    arg2 = NUM2LONG(argv[0]);
    if (arg1) (arg1)->copyfrom_rev = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_log_changed_path_t_copyfrom_rev_get(int argc, VALUE *argv, VALUE self) {
    svn_log_changed_path_t *arg1 = (svn_log_changed_path_t *) 0 ;
    svn_revnum_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_log_changed_path_t, 1);
    result = (svn_revnum_t) ((arg1)->copyfrom_rev);
    
    vresult = INT2NUM(result);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_log_changed_path_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_log_changed_path_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_log_changed_path_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_log_changed_path_t(int argc, VALUE *argv, VALUE self) {
    svn_log_changed_path_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_log_changed_path_t *)(svn_log_changed_path_t *) calloc(1, sizeof(svn_log_changed_path_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_log_changed_path_t(svn_log_changed_path_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_log_changed_path_dup(int argc, VALUE *argv, VALUE self) {
    svn_log_changed_path_t *arg1 = (svn_log_changed_path_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_log_changed_path_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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], (void **) &arg1, SWIGTYPE_p_svn_log_changed_path_t, 1);
    if (argc > 1) {
        
    }
    {
        result = (svn_log_changed_path_t *)svn_log_changed_path_dup((struct svn_log_changed_path_t const *)arg1,arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_log_changed_path_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_mime_type_validate(int argc, VALUE *argv, VALUE self) {
    char *arg1 = (char *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    arg1 = StringValuePtr(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_mime_type_validate((char const *)arg1,arg2);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_mime_type_is_binary(int argc, VALUE *argv, VALUE self) {
    char *arg1 = (char *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg1 = StringValuePtr(argv[0]);
    {
        result = (svn_boolean_t)svn_mime_type_is_binary((char const *)arg1);
        
        
        
        
    }
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


swig_class cSvn_lock_t;

static VALUE
_wrap_svn_lock_t_path_set(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->path) free((char *)arg1->path);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->path = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_lock_t_path_get(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    result = (char *) ((arg1)->path);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_lock_t_token_set(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->token) free((char *)arg1->token);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->token = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_lock_t_token_get(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    result = (char *) ((arg1)->token);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_lock_t_owner_set(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->owner) free((char *)arg1->owner);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->owner = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_lock_t_owner_get(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    result = (char *) ((arg1)->owner);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_lock_t_comment_set(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->comment) free((char *)arg1->comment);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->comment = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_lock_t_comment_get(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    result = (char *) ((arg1)->comment);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_lock_t_is_dav_comment_set(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    svn_boolean_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    arg2 = RTEST(argv[0]);
    if (arg1) (arg1)->is_dav_comment = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_lock_t_is_dav_comment_get(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    result = (svn_boolean_t) ((arg1)->is_dav_comment);
    
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


static VALUE
_wrap_svn_lock_t_creation_date_set(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    apr_time_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    arg2 = (apr_time_t) NUM2LL(argv[0]);
    if (arg1) (arg1)->creation_date = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_lock_t_creation_date_get(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    apr_time_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    result =  ((arg1)->creation_date);
    
    vresult = LL2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_lock_t_expiration_date_set(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    apr_time_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    arg2 = (apr_time_t) NUM2LL(argv[0]);
    if (arg1) (arg1)->expiration_date = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_lock_t_expiration_date_get(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    apr_time_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    result =  ((arg1)->expiration_date);
    
    vresult = LL2NUM(result);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_lock_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_lock_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_lock_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_lock_t(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_lock_t *)(svn_lock_t *) calloc(1, sizeof(svn_lock_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_lock_t(svn_lock_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_lock_create(int argc, VALUE *argv, VALUE self) {
    apr_pool_t *arg1 = (apr_pool_t *) 0 ;
    svn_lock_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg1);
        _global_pool = arg1;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 0) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    if (argc > 0) {
        
    }
    {
        result = (svn_lock_t *)svn_lock_create(arg1);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_lock_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_lock_dup(int argc, VALUE *argv, VALUE self) {
    svn_lock_t *arg1 = (svn_lock_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_lock_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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], (void **) &arg1, SWIGTYPE_p_svn_lock_t, 1);
    if (argc > 1) {
        
    }
    {
        result = (svn_lock_t *)svn_lock_dup((struct svn_lock_t const *)arg1,arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_lock_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_apr_initialize(int argc, VALUE *argv, VALUE self) {
    apr_status_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (apr_status_t)apr_initialize();
        
        
        
        
    }
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_apr_terminate(int argc, VALUE *argv, VALUE self) {
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        apr_terminate();
        
        
        
        
    }
    return Qnil;
}


static VALUE
_wrap_apr_time_ansi_put(int argc, VALUE *argv, VALUE self) {
    apr_time_t *arg1 = (apr_time_t *) 0 ;
    time_t arg2 ;
    apr_status_t result;
    apr_time_t temp1 ;
    VALUE vresult = Qnil;
    
    arg1 = &temp1;
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        if (NIL_P(argv[0]))
        arg2 = (time_t)-1;
        else
        arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0));
    }
    {
        result = (apr_status_t)apr_time_ansi_put(arg1,arg2);
        
        
        
        
    }
    vresult = INT2NUM(result);
    {
        VALUE o = LL2NUM((long long) (*arg1));
        vresult = output_helper(vresult, o);
    }
    return vresult;
}


static VALUE
_wrap_apr_pool_destroy(int argc, VALUE *argv, VALUE self) {
    apr_pool_t *arg1 = (apr_pool_t *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_apr_pool_t, 1);
    {
        apr_pool_destroy(arg1);
        
        
        
        
    }
    return Qnil;
}


static VALUE
_wrap_apr_pool_clear(int argc, VALUE *argv, VALUE self) {
    apr_pool_t *arg1 = (apr_pool_t *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_apr_pool_t, 1);
    {
        apr_pool_clear(arg1);
        
        
        
        
    }
    return Qnil;
}


static VALUE
_wrap_apr_file_open_stdout(int argc, VALUE *argv, VALUE self) {
    apr_file_t **arg1 = (apr_file_t **) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    apr_status_t result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_file_t *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);
    }
    arg1 = &temp1;
    if ((argc < 0) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    if (argc > 0) {
        
    }
    {
        result = (apr_status_t)apr_file_open_stdout(arg1,arg2);
        
        
        
        
    }
    vresult = INT2NUM(result);
    {
        vresult = output_helper(vresult,
        SWIG_NewPointerObj((void *)*arg1, SWIGTYPE_p_apr_file_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_apr_file_open_stderr(int argc, VALUE *argv, VALUE self) {
    apr_file_t **arg1 = (apr_file_t **) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    apr_status_t result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_file_t *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);
    }
    arg1 = &temp1;
    if ((argc < 0) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    if (argc > 0) {
        
    }
    {
        result = (apr_status_t)apr_file_open_stderr(arg1,arg2);
        
        
        
        
    }
    vresult = INT2NUM(result);
    {
        vresult = output_helper(vresult,
        SWIG_NewPointerObj((void *)*arg1, SWIGTYPE_p_apr_file_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_pool_create(int argc, VALUE *argv, VALUE self) {
    apr_pool_t *arg1 = (apr_pool_t *) 0 ;
    apr_allocator_t *arg2 = (apr_allocator_t *) 0 ;
    apr_pool_t *result;
    VALUE vresult = Qnil;
    
    {
        arg2 = NULL;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_apr_pool_t, 1);
    if (argc > 1) {
        SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_apr_allocator_t, 1);
    }
    {
        result = (apr_pool_t *)svn_pool_create_ex(arg1,arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_apr_pool_t,0);
    return vresult;
}


swig_class cSvn_version_t;

static VALUE
_wrap_svn_version_t_major_set(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    int arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    arg2 = NUM2INT(argv[0]);
    if (arg1) (arg1)->major = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_version_t_major_get(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    int result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    result = (int) ((arg1)->major);
    
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_version_t_minor_set(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    int arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    arg2 = NUM2INT(argv[0]);
    if (arg1) (arg1)->minor = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_version_t_minor_get(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    int result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    result = (int) ((arg1)->minor);
    
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_version_t_patch_set(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    int arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    arg2 = NUM2INT(argv[0]);
    if (arg1) (arg1)->patch = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_version_t_patch_get(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    int result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    result = (int) ((arg1)->patch);
    
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_version_t_tag_set(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->tag) free((char *)arg1->tag);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->tag = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_version_t_tag_get(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    result = (char *) ((arg1)->tag);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_version_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_version_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_version_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_version_t(int argc, VALUE *argv, VALUE self) {
    svn_version_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_version_t *)(svn_version_t *) calloc(1, sizeof(svn_version_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_version_t(svn_version_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_ver_compatible(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    svn_version_t *arg2 = (svn_version_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_svn_version_t, 1);
    {
        result = (svn_boolean_t)svn_ver_compatible((struct svn_version_t const *)arg1,(struct svn_version_t const *)arg2);
        
        
        
        
    }
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


static VALUE
_wrap_svn_ver_equal(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    svn_version_t *arg2 = (svn_version_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_svn_version_t, 1);
    {
        result = (svn_boolean_t)svn_ver_equal((struct svn_version_t const *)arg1,(struct svn_version_t const *)arg2);
        
        
        
        
    }
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


swig_class cSvn_version_checklist_t;

static VALUE
_wrap_svn_version_checklist_t_label_set(int argc, VALUE *argv, VALUE self) {
    svn_version_checklist_t *arg1 = (svn_version_checklist_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_checklist_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->label) free((char *)arg1->label);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->label = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_version_checklist_t_label_get(int argc, VALUE *argv, VALUE self) {
    svn_version_checklist_t *arg1 = (svn_version_checklist_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_checklist_t, 1);
    result = (char *) ((arg1)->label);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_version_checklist_t_version_query_set(int argc, VALUE *argv, VALUE self) {
    svn_version_checklist_t *arg1 = (svn_version_checklist_t *) 0 ;
    svn_version_t *(*arg2)(void) = (svn_version_t *(*)(void)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_checklist_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_void__p_svn_version_t, 1);
    if (arg1) (arg1)->version_query = (svn_version_t const *(*)(void))arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_version_checklist_t_version_query_get(int argc, VALUE *argv, VALUE self) {
    svn_version_checklist_t *arg1 = (svn_version_checklist_t *) 0 ;
    svn_version_t *(*result)(void);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_version_checklist_t, 1);
    result = (svn_version_t *(*)(void)) ((arg1)->version_query);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_void__p_svn_version_t,0);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_version_checklist_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_version_checklist_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_version_checklist_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_version_checklist_t(int argc, VALUE *argv, VALUE self) {
    svn_version_checklist_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_version_checklist_t *)(svn_version_checklist_t *) calloc(1, sizeof(svn_version_checklist_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_version_checklist_t(svn_version_checklist_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_ver_check_list(int argc, VALUE *argv, VALUE self) {
    svn_version_t *arg1 = (svn_version_t *) 0 ;
    svn_version_checklist_t *arg2 = (svn_version_checklist_t *) 0 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_version_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_svn_version_checklist_t, 1);
    {
        result = (svn_error_t *)svn_ver_check_list((struct svn_version_t const *)arg1,(struct svn_version_checklist_t const *)arg2);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_subr_version(int argc, VALUE *argv, VALUE self) {
    svn_version_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_version_t *)svn_subr_version();
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_version_t,0);
    return vresult;
}


swig_class cSvn_prop_t;

static VALUE
_wrap_svn_prop_t_name_get(int argc, VALUE *argv, VALUE self) {
    svn_prop_t *arg1 = (svn_prop_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_prop_t, 1);
    result = (char *) ((arg1)->name);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_prop_t_value_get(int argc, VALUE *argv, VALUE self) {
    svn_prop_t *arg1 = (svn_prop_t *) 0 ;
    svn_string_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_prop_t, 1);
    result = (svn_string_t *) ((arg1)->value);
    
    {
        if (result) {
            vresult = rb_str_new(result->data, result->len);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_prop_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_prop_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_prop_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_prop_t(int argc, VALUE *argv, VALUE self) {
    svn_prop_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_prop_t *)(svn_prop_t *) calloc(1, sizeof(svn_prop_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_prop_t(svn_prop_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_prop_dup(int argc, VALUE *argv, VALUE self) {
    svn_prop_t *arg1 = (svn_prop_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_prop_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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], (void **) &arg1, SWIGTYPE_p_svn_prop_t, 1);
    if (argc > 1) {
        
    }
    {
        result = (svn_prop_t *)svn_prop_dup((struct svn_prop_t const *)arg1,arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_prop_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_prop_array_dup(int argc, VALUE *argv, VALUE self) {
    apr_array_header_t *arg1 = (apr_array_header_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    apr_array_header_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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], (void **) &arg1, SWIGTYPE_p_apr_array_header_t, 1);
    if (argc > 1) {
        
    }
    {
        result = (apr_array_header_t *)svn_prop_array_dup((apr_array_header_t const *)arg1,arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_apr_array_header_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_property_kind(int argc, VALUE *argv, VALUE self) {
    int *arg1 = (int *) 0 ;
    char *arg2 = (char *) 0 ;
    svn_prop_kind_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_int, 1);
    arg2 = StringValuePtr(argv[1]);
    {
        result = (svn_prop_kind_t)svn_property_kind(arg1,(char const *)arg2);
        
        
        
        
    }
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_prop_is_svn_prop(int argc, VALUE *argv, VALUE self) {
    char *arg1 = (char *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg1 = StringValuePtr(argv[0]);
    {
        result = (svn_boolean_t)svn_prop_is_svn_prop((char const *)arg1);
        
        
        
        
    }
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


static VALUE
_wrap_svn_prop_needs_translation(int argc, VALUE *argv, VALUE self) {
    char *arg1 = (char *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg1 = StringValuePtr(argv[0]);
    {
        result = (svn_boolean_t)svn_prop_needs_translation((char const *)arg1);
        
        
        
        
    }
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


static VALUE
_wrap_svn_categorize_props(int argc, VALUE *argv, VALUE self) {
    apr_array_header_t *arg1 = (apr_array_header_t *) 0 ;
    apr_array_header_t **arg2 = (apr_array_header_t **) 0 ;
    apr_array_header_t **arg3 = (apr_array_header_t **) 0 ;
    apr_array_header_t **arg4 = (apr_array_header_t **) 0 ;
    apr_pool_t *arg5 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_array_header_t *temp2 ;
    apr_array_header_t *temp3 ;
    apr_array_header_t *temp4 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);
        _global_pool = arg5;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        arg2 = &temp2;
    }
    {
        arg3 = &temp3;
    }
    {
        arg4 = &temp4;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        arg1 = svn_swig_rb_array_to_apr_array_prop(argv[0], _global_pool);
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_categorize_props((apr_array_header_t const *)arg1,arg2,arg3,arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, svn_swig_rb_apr_array_to_array_prop(*arg2));
    }
    {
        vresult = output_helper(vresult, svn_swig_rb_apr_array_to_array_prop(*arg3));
    }
    {
        vresult = output_helper(vresult, svn_swig_rb_apr_array_to_array_prop(*arg4));
    }
    {
        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_prop_diffs(int argc, VALUE *argv, VALUE self) {
    apr_array_header_t **arg1 = (apr_array_header_t **) 0 ;
    apr_hash_t *arg2 = (apr_hash_t *) 0 ;
    apr_hash_t *arg3 = (apr_hash_t *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_array_header_t *temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        arg1 = &temp1;
    }
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    {
        arg2 = svn_swig_rb_hash_to_apr_hash_svn_string(argv[0], _global_pool);
    }
    {
        arg3 = svn_swig_rb_hash_to_apr_hash_svn_string(argv[1], _global_pool);
    }
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_prop_diffs(arg1,arg2,arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, svn_swig_rb_apr_array_to_array_prop(*arg1));
    }
    {
        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_opt_subcommand_desc_t;

static VALUE
_wrap_svn_opt_subcommand_desc_t_name_set(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->name) free((char *)arg1->name);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->name = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_opt_subcommand_desc_t_name_get(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    result = (char *) ((arg1)->name);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_opt_subcommand_desc_t_cmd_func_set(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    svn_opt_subcommand_t *arg2 = (svn_opt_subcommand_t *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t, 1);
    if (arg1) (arg1)->cmd_func = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_opt_subcommand_desc_t_cmd_func_get(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    svn_opt_subcommand_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    result = (svn_opt_subcommand_t *) ((arg1)->cmd_func);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_opt_subcommand_desc_t_aliases_set(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    char **arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_p_char, 1);
    {
        size_t ii;
        char const * *b = (char const * *) arg1->aliases;
        for (ii = 0; ii < (size_t)3; ii++) b[ii] = *((char const * *) arg2 + ii);
    }
    return Qnil;
}


static VALUE
_wrap_svn_opt_subcommand_desc_t_aliases_get(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    char **result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    result = (char **)(char **) ((arg1)->aliases);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_p_char,0);
    return vresult;
}


static VALUE
_wrap_svn_opt_subcommand_desc_t_help_set(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->help) free((char *)arg1->help);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->help = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_opt_subcommand_desc_t_help_get(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    result = (char *) ((arg1)->help);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_opt_subcommand_desc_t_valid_options_set(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    int *arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_int, 1);
    {
        size_t ii;
        int *b = (int *) arg1->valid_options;
        for (ii = 0; ii < (size_t)50; ii++) b[ii] = *((int *) arg2 + ii);
    }
    return Qnil;
}


static VALUE
_wrap_svn_opt_subcommand_desc_t_valid_options_get(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    int *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    result = (int *)(int *) ((arg1)->valid_options);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_int,0);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_opt_subcommand_desc_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_opt_subcommand_desc_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_opt_subcommand_desc_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_opt_subcommand_desc_t(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_opt_subcommand_desc_t *)(svn_opt_subcommand_desc_t *) calloc(1, sizeof(svn_opt_subcommand_desc_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_opt_subcommand_desc_t(svn_opt_subcommand_desc_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_opt_get_canonical_subcommand(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    char *arg2 = (char *) 0 ;
    svn_opt_subcommand_desc_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    arg2 = StringValuePtr(argv[1]);
    {
        result = (svn_opt_subcommand_desc_t *)svn_opt_get_canonical_subcommand((struct svn_opt_subcommand_desc_t const *)arg1,(char const *)arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_opt_subcommand_desc_t,0);
    return vresult;
}


static VALUE
_wrap_svn_opt_get_option_from_code(int argc, VALUE *argv, VALUE self) {
    int arg1 ;
    apr_getopt_option_t *arg2 = (apr_getopt_option_t *) 0 ;
    apr_getopt_option_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    arg1 = NUM2INT(argv[0]);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_apr_getopt_option_t, 1);
    {
        result = (apr_getopt_option_t *)svn_opt_get_option_from_code(arg1,(apr_getopt_option_t const *)arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_apr_getopt_option_t,0);
    return vresult;
}


static VALUE
_wrap_svn_opt_subcommand_takes_option(int argc, VALUE *argv, VALUE self) {
    svn_opt_subcommand_desc_t *arg1 = (svn_opt_subcommand_desc_t *) 0 ;
    int arg2 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    arg2 = NUM2INT(argv[1]);
    {
        result = (svn_boolean_t)svn_opt_subcommand_takes_option((struct svn_opt_subcommand_desc_t const *)arg1,arg2);
        
        
        
        
    }
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


static VALUE
_wrap_svn_opt_format_option(int argc, VALUE *argv, VALUE self) {
    char **arg1 = (char **) 0 ;
    apr_getopt_option_t *arg2 = (apr_getopt_option_t *) 0 ;
    svn_boolean_t arg3 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    char const *temp1 = NULL ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    arg1 = (char **)&temp1;
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_apr_getopt_option_t, 1);
    arg3 = RTEST(argv[1]);
    if (argc > 2) {
        
    }
    {
        svn_opt_format_option((char const **)arg1,(apr_getopt_option_t const *)arg2,arg3,arg4);
        
        
        
        
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new2(*arg1));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_opt_subcommand_help(int argc, VALUE *argv, VALUE self) {
    char *arg1 = (char *) 0 ;
    svn_opt_subcommand_desc_t *arg2 = (svn_opt_subcommand_desc_t *) 0 ;
    apr_getopt_option_t *arg3 = (apr_getopt_option_t *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    arg1 = StringValuePtr(argv[0]);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_apr_getopt_option_t, 1);
    if (argc > 3) {
        
    }
    {
        svn_opt_subcommand_help((char const *)arg1,(struct svn_opt_subcommand_desc_t const *)arg2,(apr_getopt_option_t const *)arg3,arg4);
        
        
        
        
    }
    {
        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_opt_revision_value_t;

static VALUE
_wrap_svn_opt_revision_value_t_number_set(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_value_t *arg1 = (svn_opt_revision_value_t *) 0 ;
    svn_revnum_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_revision_value_t, 1);
    arg2 = NUM2LONG(argv[0]);
    if (arg1) (arg1)->number = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_opt_revision_value_t_number_get(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_value_t *arg1 = (svn_opt_revision_value_t *) 0 ;
    svn_revnum_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_revision_value_t, 1);
    result = (svn_revnum_t) ((arg1)->number);
    
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_opt_revision_value_t_date_set(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_value_t *arg1 = (svn_opt_revision_value_t *) 0 ;
    apr_time_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_revision_value_t, 1);
    arg2 = (apr_time_t) NUM2LL(argv[0]);
    if (arg1) (arg1)->date = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_opt_revision_value_t_date_get(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_value_t *arg1 = (svn_opt_revision_value_t *) 0 ;
    apr_time_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_opt_revision_value_t, 1);
    result =  ((arg1)->date);
    
    vresult = LL2NUM(result);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_opt_revision_value_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_opt_revision_value_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_opt_revision_value_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_opt_revision_value_t(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_value_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_opt_revision_value_t *)(svn_opt_revision_value_t *) calloc(1, sizeof(svn_opt_revision_value_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_opt_revision_value_t(svn_opt_revision_value_t *arg1) {
    free((char *) arg1);
}
swig_class cSvn_opt_revision_t;

static VALUE
_wrap_svn_opt_revision_t_kind_set(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_t *arg1 = (svn_opt_revision_t *) 0 ;
    enum svn_opt_revision_kind arg2 ;
    svn_opt_revision_t rev1 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        arg1 = &rev1;
        svn_swig_rb_set_revision(&rev1, self);
    }
    arg2 = (enum svn_opt_revision_kind) NUM2INT(argv[0]);
    if (arg1) (arg1)->kind = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_opt_revision_t_kind_get(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_t *arg1 = (svn_opt_revision_t *) 0 ;
    enum svn_opt_revision_kind result;
    svn_opt_revision_t rev1 ;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        arg1 = &rev1;
        svn_swig_rb_set_revision(&rev1, self);
    }
    result = (enum svn_opt_revision_kind) ((arg1)->kind);
    
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_opt_revision_t_value_set(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_t *arg1 = (svn_opt_revision_t *) 0 ;
    svn_opt_revision_value_t *arg2 = (svn_opt_revision_value_t *) 0 ;
    svn_opt_revision_t rev1 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        arg1 = &rev1;
        svn_swig_rb_set_revision(&rev1, self);
    }
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_svn_opt_revision_value_t, 1);
    if (arg1) (arg1)->value = *arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_opt_revision_t_value_get(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_t *arg1 = (svn_opt_revision_t *) 0 ;
    svn_opt_revision_value_t *result;
    svn_opt_revision_t rev1 ;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        arg1 = &rev1;
        svn_swig_rb_set_revision(&rev1, self);
    }
    result = (svn_opt_revision_value_t *)& ((arg1)->value);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_opt_revision_value_t,0);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_opt_revision_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_opt_revision_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_opt_revision_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_opt_revision_t(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_opt_revision_t *)(svn_opt_revision_t *) calloc(1, sizeof(svn_opt_revision_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_opt_revision_t(svn_opt_revision_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_opt_parse_revision(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_t *arg1 = (svn_opt_revision_t *) 0 ;
    svn_opt_revision_t *arg2 = (svn_opt_revision_t *) 0 ;
    char *arg3 = (char *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    int result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_opt_revision_t rev1 ;
    svn_opt_revision_t rev2 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    {
        arg1 = &rev1;
        svn_swig_rb_set_revision(&rev1, argv[0]);
    }
    {
        arg2 = &rev2;
        svn_swig_rb_set_revision(&rev2, argv[1]);
    }
    arg3 = StringValuePtr(argv[2]);
    if (argc > 3) {
        
    }
    {
        result = (int)svn_opt_parse_revision(arg1,arg2,(char const *)arg3,arg4);
        
        
        
        
    }
    vresult = INT2NUM(result);
    {
        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_opt_args_to_target_array2(int argc, VALUE *argv, VALUE self) {
    apr_array_header_t **arg1 = (apr_array_header_t **) 0 ;
    apr_getopt_t *arg2 = (apr_getopt_t *) 0 ;
    apr_array_header_t *arg3 = (apr_array_header_t *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_p_apr_array_header_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_apr_getopt_t, 1);
    SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_apr_array_header_t, 1);
    if (argc > 3) {
        
    }
    {
        result = (svn_error_t *)svn_opt_args_to_target_array2(arg1,arg2,arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_opt_args_to_target_array(int argc, VALUE *argv, VALUE self) {
    apr_array_header_t **arg1 = (apr_array_header_t **) 0 ;
    apr_getopt_t *arg2 = (apr_getopt_t *) 0 ;
    apr_array_header_t *arg3 = (apr_array_header_t *) 0 ;
    svn_opt_revision_t *arg4 = (svn_opt_revision_t *) 0 ;
    svn_opt_revision_t *arg5 = (svn_opt_revision_t *) 0 ;
    svn_boolean_t arg6 ;
    apr_pool_t *arg7 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_opt_revision_t rev4 ;
    svn_opt_revision_t rev5 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg7);
        _global_pool = arg7;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 6) || (argc > 7))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_p_apr_array_header_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_apr_getopt_t, 1);
    SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_apr_array_header_t, 1);
    {
        arg4 = &rev4;
        svn_swig_rb_set_revision(&rev4, argv[3]);
    }
    {
        arg5 = &rev5;
        svn_swig_rb_set_revision(&rev5, argv[4]);
    }
    arg6 = RTEST(argv[5]);
    if (argc > 6) {
        
    }
    {
        result = (svn_error_t *)svn_opt_args_to_target_array(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_opt_push_implicit_dot_target(int argc, VALUE *argv, VALUE self) {
    apr_array_header_t *arg1 = (apr_array_header_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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], (void **) &arg1, SWIGTYPE_p_apr_array_header_t, 1);
    if (argc > 1) {
        
    }
    {
        svn_opt_push_implicit_dot_target(arg1,arg2);
        
        
        
        
    }
    {
        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_opt_parse_num_args(int argc, VALUE *argv, VALUE self) {
    apr_array_header_t **arg1 = (apr_array_header_t **) 0 ;
    apr_getopt_t *arg2 = (apr_getopt_t *) 0 ;
    int arg3 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_p_apr_array_header_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_apr_getopt_t, 1);
    arg3 = NUM2INT(argv[2]);
    if (argc > 3) {
        
    }
    {
        result = (svn_error_t *)svn_opt_parse_num_args(arg1,arg2,arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_opt_parse_all_args(int argc, VALUE *argv, VALUE self) {
    apr_array_header_t **arg1 = (apr_array_header_t **) 0 ;
    apr_getopt_t *arg2 = (apr_getopt_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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], (void **) &arg1, SWIGTYPE_p_p_apr_array_header_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_apr_getopt_t, 1);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_opt_parse_all_args(arg1,arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_opt_parse_path(int argc, VALUE *argv, VALUE self) {
    svn_opt_revision_t *arg1 = (svn_opt_revision_t *) 0 ;
    char **arg2 = (char **) 0 ;
    char *arg3 = (char *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_opt_revision_t rev1 ;
    char const *temp2 = NULL ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    arg2 = (char **)&temp2;
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    {
        arg1 = &rev1;
        svn_swig_rb_set_revision(&rev1, argv[0]);
    }
    arg3 = StringValuePtr(argv[1]);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_opt_parse_path(arg1,(char const **)arg2,(char const *)arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg2) {
            vresult = output_helper(vresult, rb_str_new2(*arg2));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_opt_print_help(int argc, VALUE *argv, VALUE self) {
    apr_getopt_t *arg1 = (apr_getopt_t *) 0 ;
    char *arg2 = (char *) 0 ;
    svn_boolean_t arg3 ;
    svn_boolean_t arg4 ;
    char *arg5 = (char *) 0 ;
    char *arg6 = (char *) 0 ;
    svn_opt_subcommand_desc_t *arg7 = (svn_opt_subcommand_desc_t *) 0 ;
    apr_getopt_option_t *arg8 = (apr_getopt_option_t *) 0 ;
    char *arg9 = (char *) 0 ;
    apr_pool_t *arg10 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg10);
        _global_pool = arg10;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 9) || (argc > 10))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_apr_getopt_t, 1);
    arg2 = StringValuePtr(argv[1]);
    arg3 = RTEST(argv[2]);
    arg4 = RTEST(argv[3]);
    arg5 = StringValuePtr(argv[4]);
    arg6 = StringValuePtr(argv[5]);
    SWIG_ConvertPtr(argv[6], (void **) &arg7, SWIGTYPE_p_svn_opt_subcommand_desc_t, 1);
    SWIG_ConvertPtr(argv[7], (void **) &arg8, SWIGTYPE_p_apr_getopt_option_t, 1);
    arg9 = StringValuePtr(argv[8]);
    if (argc > 9) {
        
    }
    {
        result = (svn_error_t *)svn_opt_print_help(arg1,(char const *)arg2,arg3,arg4,(char const *)arg5,(char const *)arg6,(struct svn_opt_subcommand_desc_t const *)arg7,(apr_getopt_option_t const *)arg8,(char const *)arg9,arg10);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_auth_provider_t;

static VALUE
_wrap_svn_auth_provider_t_cred_kind_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_t *arg1 = (svn_auth_provider_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->cred_kind) free((char *)arg1->cred_kind);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->cred_kind = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_provider_t_cred_kind_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_t *arg1 = (svn_auth_provider_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_t, 1);
    result = (char *) ((arg1)->cred_kind);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_provider_t_first_credentials_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_t *arg1 = (svn_auth_provider_t *) 0 ;
    svn_error_t *(*arg2)(void **,void **,void *,apr_hash_t *,char const *,apr_pool_t *) = (svn_error_t *(*)(void **,void **,void *,apr_hash_t *,char const *,apr_pool_t *)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_p_void_p_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t, 1);
    if (arg1) (arg1)->first_credentials = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_provider_t_first_credentials_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_t *arg1 = (svn_auth_provider_t *) 0 ;
    svn_error_t *(*result)(void **,void **,void *,apr_hash_t *,char const *,apr_pool_t *);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_t, 1);
    result = (svn_error_t *(*)(void **,void **,void *,apr_hash_t *,char const *,apr_pool_t *)) ((arg1)->first_credentials);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_p_void_p_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_auth_provider_t_next_credentials_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_t *arg1 = (svn_auth_provider_t *) 0 ;
    svn_error_t *(*arg2)(void **,void *,void *,apr_hash_t *,char const *,apr_pool_t *) = (svn_error_t *(*)(void **,void *,void *,apr_hash_t *,char const *,apr_pool_t *)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_p_void_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t, 1);
    if (arg1) (arg1)->next_credentials = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_provider_t_next_credentials_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_t *arg1 = (svn_auth_provider_t *) 0 ;
    svn_error_t *(*result)(void **,void *,void *,apr_hash_t *,char const *,apr_pool_t *);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_t, 1);
    result = (svn_error_t *(*)(void **,void *,void *,apr_hash_t *,char const *,apr_pool_t *)) ((arg1)->next_credentials);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_p_void_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_auth_provider_t_save_credentials_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_t *arg1 = (svn_auth_provider_t *) 0 ;
    svn_error_t *(*arg2)(svn_boolean_t *,void *,void *,apr_hash_t *,char const *,apr_pool_t *) = (svn_error_t *(*)(svn_boolean_t *,void *,void *,apr_hash_t *,char const *,apr_pool_t *)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_svn_boolean_t_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t, 1);
    if (arg1) (arg1)->save_credentials = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_provider_t_save_credentials_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_t *arg1 = (svn_auth_provider_t *) 0 ;
    svn_error_t *(*result)(svn_boolean_t *,void *,void *,apr_hash_t *,char const *,apr_pool_t *);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_t, 1);
    result = (svn_error_t *(*)(svn_boolean_t *,void *,void *,apr_hash_t *,char const *,apr_pool_t *)) ((arg1)->save_credentials);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_svn_boolean_t_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t,0);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_auth_provider_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_auth_provider_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_auth_provider_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_auth_provider_t(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_auth_provider_t *)(svn_auth_provider_t *) calloc(1, sizeof(svn_auth_provider_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_auth_provider_t(svn_auth_provider_t *arg1) {
    free((char *) arg1);
}
swig_class cSvn_auth_provider_object_t;

static VALUE
_wrap_svn_auth_provider_object_t_vtable_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_object_t *arg1 = (svn_auth_provider_object_t *) 0 ;
    svn_auth_provider_t *arg2 = (svn_auth_provider_t *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_object_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_svn_auth_provider_t, 1);
    if (arg1) (arg1)->vtable = (svn_auth_provider_t const *)arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_provider_object_t_vtable_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_object_t *arg1 = (svn_auth_provider_object_t *) 0 ;
    svn_auth_provider_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_object_t, 1);
    result = (svn_auth_provider_t *) ((arg1)->vtable);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_auth_provider_t,0);
    return vresult;
}


static VALUE
_wrap_svn_auth_provider_object_t_provider_baton_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_object_t *arg1 = (svn_auth_provider_object_t *) 0 ;
    void *arg2 = (void *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_object_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, 0, 1);
    if (arg1) (arg1)->provider_baton = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_provider_object_t_provider_baton_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_object_t *arg1 = (svn_auth_provider_object_t *) 0 ;
    void *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_provider_object_t, 1);
    result = (void *) ((arg1)->provider_baton);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void,0);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_auth_provider_object_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_auth_provider_object_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_auth_provider_object_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_auth_provider_object_t(int argc, VALUE *argv, VALUE self) {
    svn_auth_provider_object_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_auth_provider_object_t *)(svn_auth_provider_object_t *) calloc(1, sizeof(svn_auth_provider_object_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_auth_provider_object_t(svn_auth_provider_object_t *arg1) {
    free((char *) arg1);
}
swig_class cSvn_auth_cred_simple_t;

static VALUE
_wrap_svn_auth_cred_simple_t_username_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_simple_t *arg1 = (svn_auth_cred_simple_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_simple_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->username) free((char *)arg1->username);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->username = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_simple_t_username_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_simple_t *arg1 = (svn_auth_cred_simple_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_simple_t, 1);
    result = (char *) ((arg1)->username);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_cred_simple_t_password_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_simple_t *arg1 = (svn_auth_cred_simple_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_simple_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->password) free((char *)arg1->password);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->password = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_simple_t_password_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_simple_t *arg1 = (svn_auth_cred_simple_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_simple_t, 1);
    result = (char *) ((arg1)->password);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_cred_simple_t_may_save_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_simple_t *arg1 = (svn_auth_cred_simple_t *) 0 ;
    svn_boolean_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_simple_t, 1);
    arg2 = RTEST(argv[0]);
    if (arg1) (arg1)->may_save = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_simple_t_may_save_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_simple_t *arg1 = (svn_auth_cred_simple_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_simple_t, 1);
    result = (svn_boolean_t) ((arg1)->may_save);
    
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_auth_cred_simple_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_auth_cred_simple_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_auth_cred_simple_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_auth_cred_simple_t(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_simple_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_auth_cred_simple_t *)(svn_auth_cred_simple_t *) calloc(1, sizeof(svn_auth_cred_simple_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_auth_cred_simple_t(svn_auth_cred_simple_t *arg1) {
    free((char *) arg1);
}
swig_class cSvn_auth_cred_username_t;

static VALUE
_wrap_svn_auth_cred_username_t_username_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_username_t *arg1 = (svn_auth_cred_username_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_username_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->username) free((char *)arg1->username);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->username = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_username_t_username_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_username_t *arg1 = (svn_auth_cred_username_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_username_t, 1);
    result = (char *) ((arg1)->username);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_cred_username_t_may_save_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_username_t *arg1 = (svn_auth_cred_username_t *) 0 ;
    svn_boolean_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_username_t, 1);
    arg2 = RTEST(argv[0]);
    if (arg1) (arg1)->may_save = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_username_t_may_save_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_username_t *arg1 = (svn_auth_cred_username_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_username_t, 1);
    result = (svn_boolean_t) ((arg1)->may_save);
    
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_auth_cred_username_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_auth_cred_username_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_auth_cred_username_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_auth_cred_username_t(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_username_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_auth_cred_username_t *)(svn_auth_cred_username_t *) calloc(1, sizeof(svn_auth_cred_username_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_auth_cred_username_t(svn_auth_cred_username_t *arg1) {
    free((char *) arg1);
}
swig_class cSvn_auth_cred_ssl_client_cert_t;

static VALUE
_wrap_svn_auth_cred_ssl_client_cert_t_cert_file_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_t *arg1 = (svn_auth_cred_ssl_client_cert_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->cert_file) free((char *)arg1->cert_file);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->cert_file = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_ssl_client_cert_t_cert_file_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_t *arg1 = (svn_auth_cred_ssl_client_cert_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_t, 1);
    result = (char *) ((arg1)->cert_file);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_cred_ssl_client_cert_t_may_save_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_t *arg1 = (svn_auth_cred_ssl_client_cert_t *) 0 ;
    svn_boolean_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_t, 1);
    arg2 = RTEST(argv[0]);
    if (arg1) (arg1)->may_save = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_ssl_client_cert_t_may_save_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_t *arg1 = (svn_auth_cred_ssl_client_cert_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_t, 1);
    result = (svn_boolean_t) ((arg1)->may_save);
    
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_auth_cred_ssl_client_cert_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_auth_cred_ssl_client_cert_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_auth_cred_ssl_client_cert_t(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_auth_cred_ssl_client_cert_t *)(svn_auth_cred_ssl_client_cert_t *) calloc(1, sizeof(svn_auth_cred_ssl_client_cert_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_auth_cred_ssl_client_cert_t(svn_auth_cred_ssl_client_cert_t *arg1) {
    free((char *) arg1);
}
swig_class cSvn_auth_cred_ssl_client_cert_pw_t;

static VALUE
_wrap_svn_auth_cred_ssl_client_cert_pw_t_password_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_pw_t *arg1 = (svn_auth_cred_ssl_client_cert_pw_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_pw_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->password) free((char *)arg1->password);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->password = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_ssl_client_cert_pw_t_password_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_pw_t *arg1 = (svn_auth_cred_ssl_client_cert_pw_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_pw_t, 1);
    result = (char *) ((arg1)->password);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_cred_ssl_client_cert_pw_t_may_save_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_pw_t *arg1 = (svn_auth_cred_ssl_client_cert_pw_t *) 0 ;
    svn_boolean_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_pw_t, 1);
    arg2 = RTEST(argv[0]);
    if (arg1) (arg1)->may_save = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_ssl_client_cert_pw_t_may_save_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_pw_t *arg1 = (svn_auth_cred_ssl_client_cert_pw_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_pw_t, 1);
    result = (svn_boolean_t) ((arg1)->may_save);
    
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_auth_cred_ssl_client_cert_pw_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_auth_cred_ssl_client_cert_pw_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_auth_cred_ssl_client_cert_pw_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_auth_cred_ssl_client_cert_pw_t(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_client_cert_pw_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_auth_cred_ssl_client_cert_pw_t *)(svn_auth_cred_ssl_client_cert_pw_t *) calloc(1, sizeof(svn_auth_cred_ssl_client_cert_pw_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_auth_cred_ssl_client_cert_pw_t(svn_auth_cred_ssl_client_cert_pw_t *arg1) {
    free((char *) arg1);
}
swig_class cSvn_auth_ssl_server_cert_info_t;

static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_hostname_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->hostname) free((char *)arg1->hostname);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->hostname = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_hostname_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    result = (char *) ((arg1)->hostname);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_fingerprint_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->fingerprint) free((char *)arg1->fingerprint);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->fingerprint = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_fingerprint_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    result = (char *) ((arg1)->fingerprint);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_valid_from_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->valid_from) free((char *)arg1->valid_from);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->valid_from = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_valid_from_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    result = (char *) ((arg1)->valid_from);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_valid_until_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->valid_until) free((char *)arg1->valid_until);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->valid_until = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_valid_until_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    result = (char *) ((arg1)->valid_until);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_issuer_dname_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->issuer_dname) free((char *)arg1->issuer_dname);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->issuer_dname = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_issuer_dname_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    result = (char *) ((arg1)->issuer_dname);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_ascii_cert_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *arg2 = (char *) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    arg2 = StringValuePtr(argv[0]);
    {
        apr_size_t len = strlen(arg2) + 1;
        char *copied;
        if (arg1->ascii_cert) free((char *)arg1->ascii_cert);
        copied = malloc(len);
        memcpy(copied, arg2, len);
        arg1->ascii_cert = copied;
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_ascii_cert_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    result = (char *) ((arg1)->ascii_cert);
    
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_auth_ssl_server_cert_info_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_auth_ssl_server_cert_info_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_auth_ssl_server_cert_info_t(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_auth_ssl_server_cert_info_t *)(svn_auth_ssl_server_cert_info_t *) calloc(1, sizeof(svn_auth_ssl_server_cert_info_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_auth_ssl_server_cert_info_t(svn_auth_ssl_server_cert_info_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_auth_ssl_server_cert_info_dup(int argc, VALUE *argv, VALUE self) {
    svn_auth_ssl_server_cert_info_t *arg1 = (svn_auth_ssl_server_cert_info_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_auth_ssl_server_cert_info_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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], (void **) &arg1, SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, 1);
    if (argc > 1) {
        
    }
    {
        result = (svn_auth_ssl_server_cert_info_t *)svn_auth_ssl_server_cert_info_dup((struct svn_auth_ssl_server_cert_info_t const *)arg1,arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_auth_ssl_server_cert_info_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_auth_cred_ssl_server_trust_t;

static VALUE
_wrap_svn_auth_cred_ssl_server_trust_t_may_save_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_server_trust_t *arg1 = (svn_auth_cred_ssl_server_trust_t *) 0 ;
    svn_boolean_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_server_trust_t, 1);
    arg2 = RTEST(argv[0]);
    if (arg1) (arg1)->may_save = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_ssl_server_trust_t_may_save_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_server_trust_t *arg1 = (svn_auth_cred_ssl_server_trust_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_server_trust_t, 1);
    result = (svn_boolean_t) ((arg1)->may_save);
    
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_cred_ssl_server_trust_t_accepted_failures_set(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_server_trust_t *arg1 = (svn_auth_cred_ssl_server_trust_t *) 0 ;
    apr_uint32_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_server_trust_t, 1);
    arg2 = NUM2ULONG(argv[0]);
    if (arg1) (arg1)->accepted_failures = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_auth_cred_ssl_server_trust_t_accepted_failures_get(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_server_trust_t *arg1 = (svn_auth_cred_ssl_server_trust_t *) 0 ;
    apr_uint32_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_auth_cred_ssl_server_trust_t, 1);
    result =  ((arg1)->accepted_failures);
    
    vresult = UINT2NUM(result);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_auth_cred_ssl_server_trust_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_auth_cred_ssl_server_trust_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_auth_cred_ssl_server_trust_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_auth_cred_ssl_server_trust_t(int argc, VALUE *argv, VALUE self) {
    svn_auth_cred_ssl_server_trust_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_auth_cred_ssl_server_trust_t *)(svn_auth_cred_ssl_server_trust_t *) calloc(1, sizeof(svn_auth_cred_ssl_server_trust_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_auth_cred_ssl_server_trust_t(svn_auth_cred_ssl_server_trust_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_auth_open(int argc, VALUE *argv, VALUE self) {
    svn_auth_baton_t **arg1 = (svn_auth_baton_t **) 0 ;
    apr_array_header_t *arg2 = (apr_array_header_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_auth_baton_t *temp1 ;
    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);
    }
    {
        temp1 = NULL;
        arg1 = (svn_auth_baton_t **)&temp1;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        arg2 = svn_swig_rb_array_to_auth_provider_object_apr_array(argv[0], _global_pool);
    }
    if (argc > 1) {
        
    }
    {
        svn_auth_open(arg1,arg2,arg3);
        
        
        
        
    }
    {
        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_auth_baton_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_auth_set_parameter(int argc, VALUE *argv, VALUE self) {
    svn_auth_baton_t *arg1 = (svn_auth_baton_t *) 0 ;
    char *arg2 = (char *) 0 ;
    void *arg3 = (void *) 0 ;
    
    if ((argc < 3) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_auth_baton_t, 1);
    arg2 = StringValuePtr(argv[1]);
    {
        if (NIL_P(argv[2])) {
            arg3 = (void *)NULL;
        } else {
            VALUE _rb_pool;
            apr_pool_t *_global_pool;
            char *value = StringValuePtr(argv[2]);
            
            svn_swig_rb_get_pool(1, argv, Qnil, &_rb_pool, &_global_pool);
            arg3 = (void *)apr_pstrdup(_global_pool, value);
        }
    }
    {
        svn_auth_set_parameter(arg1,(char const *)arg2,(void const *)arg3);
        
        
        
        
    }
    return Qnil;
}


static VALUE
_wrap_svn_auth_get_parameter(int argc, VALUE *argv, VALUE self) {
    svn_auth_baton_t *arg1 = (svn_auth_baton_t *) 0 ;
    char *arg2 = (char *) 0 ;
    void *result;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_auth_baton_t, 1);
    arg2 = StringValuePtr(argv[1]);
    {
        result = (void *)svn_auth_get_parameter(arg1,(char const *)arg2);
        
        
        
        
    }
    {
        char *value = result;
        if (value) {
            vresult = rb_str_new2(value);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_auth_first_credentials(int argc, VALUE *argv, VALUE self) {
    void **arg1 = (void **) 0 ;
    svn_auth_iterstate_t **arg2 = (svn_auth_iterstate_t **) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    svn_auth_baton_t *arg5 = (svn_auth_baton_t *) 0 ;
    apr_pool_t *arg6 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg6);
        _global_pool = arg6;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 5) || (argc > 6))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_p_void, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_p_svn_auth_iterstate_t, 1);
    arg3 = StringValuePtr(argv[2]);
    arg4 = StringValuePtr(argv[3]);
    SWIG_ConvertPtr(argv[4], (void **) &arg5, SWIGTYPE_p_svn_auth_baton_t, 1);
    if (argc > 5) {
        
    }
    {
        result = (svn_error_t *)svn_auth_first_credentials(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5,arg6);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_auth_next_credentials(int argc, VALUE *argv, VALUE self) {
    void **arg1 = (void **) 0 ;
    svn_auth_iterstate_t *arg2 = (svn_auth_iterstate_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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], (void **) &arg1, SWIGTYPE_p_p_void, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_svn_auth_iterstate_t, 1);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_auth_next_credentials(arg1,arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_auth_save_credentials(int argc, VALUE *argv, VALUE self) {
    svn_auth_iterstate_t *arg1 = (svn_auth_iterstate_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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], (void **) &arg1, SWIGTYPE_p_svn_auth_iterstate_t, 1);
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_auth_save_credentials(arg1,arg2);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_config_get_config(int argc, VALUE *argv, VALUE self) {
    apr_hash_t **arg1 = (apr_hash_t **) 0 ;
    char *arg2 = (char *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_hash_t *temp1 ;
    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);
    }
    arg1 = &temp1;
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        if (NIL_P(argv[0])) {
            arg2 = "";
        } else {
            arg2 = StringValuePtr(argv[0]);
        }
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_config_get_config(arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = svn_swig_rb_apr_hash_to_hash_swig_type(*arg1, "svn_config_t *");
    }
    {
        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_config_read(int argc, VALUE *argv, VALUE self) {
    svn_config_t **arg1 = (svn_config_t **) 0 ;
    char *arg2 = (char *) 0 ;
    svn_boolean_t arg3 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_config_t *temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        temp1 = NULL;
        arg1 = (svn_config_t **)&temp1;
    }
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    arg2 = StringValuePtr(argv[0]);
    arg3 = RTEST(argv[1]);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_config_read(arg1,(char const *)arg2,arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_config_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_config_merge(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    char *arg2 = (char *) 0 ;
    svn_boolean_t arg3 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 3) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg2 = StringValuePtr(argv[1]);
    arg3 = RTEST(argv[2]);
    {
        result = (svn_error_t *)svn_config_merge(arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_config_get(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    char **arg2 = (char **) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    char *arg5 = (char *) 0 ;
    char const *temp2 = NULL ;
    VALUE vresult = Qnil;
    
    arg2 = (char **)&temp2;
    if ((argc < 4) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg3 = StringValuePtr(argv[1]);
    arg4 = StringValuePtr(argv[2]);
    {
        if (NIL_P(argv[3])) {
            arg5 = NULL;
        } else {
            arg5 = StringValuePtr(argv[3]);
        }
    }
    {
        svn_config_get(arg1,(char const **)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5);
        
        
        
        
    }
    {
        if (*arg2) {
            vresult = output_helper(vresult, rb_str_new2(*arg2));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_config_set(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    
    if ((argc < 4) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg2 = StringValuePtr(argv[1]);
    arg3 = StringValuePtr(argv[2]);
    arg4 = StringValuePtr(argv[3]);
    {
        svn_config_set(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
        
        
        
        
    }
    return Qnil;
}


static VALUE
_wrap_svn_config_get_bool(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    svn_boolean_t *arg2 = (svn_boolean_t *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    svn_boolean_t arg5 ;
    svn_error_t *result;
    svn_boolean_t temp2 ;
    VALUE vresult = Qnil;
    
    {
        arg2 = &temp2;
    }
    if ((argc < 4) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg3 = StringValuePtr(argv[1]);
    arg4 = StringValuePtr(argv[2]);
    arg5 = RTEST(argv[3]);
    {
        result = (svn_error_t *)svn_config_get_bool(arg1,arg2,(char const *)arg3,(char const *)arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, *arg2 ? Qtrue : Qfalse);
    }
    return vresult;
}


static VALUE
_wrap_svn_config_set_bool(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    svn_boolean_t arg4 ;
    
    if ((argc < 4) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg2 = StringValuePtr(argv[1]);
    arg3 = StringValuePtr(argv[2]);
    arg4 = RTEST(argv[3]);
    {
        svn_config_set_bool(arg1,(char const *)arg2,(char const *)arg3,arg4);
        
        
        
        
    }
    return Qnil;
}


static VALUE
_wrap_svn_config_enumerate_sections(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    svn_config_section_enumerator_t arg2 = (svn_config_section_enumerator_t) 0 ;
    void *arg3 = (void *) 0 ;
    int result;
    VALUE vresult = Qnil;
    
    if ((argc < 3) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_f_p_q_const__char_p_void__int, 1);
    SWIG_ConvertPtr(argv[2], (void **) &arg3, 0, 1);
    {
        result = (int)svn_config_enumerate_sections(arg1,arg2,arg3);
        
        
        
        
    }
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_config_enumerate_sections2(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    svn_config_section_enumerator2_t arg2 = (svn_config_section_enumerator2_t) 0 ;
    void *arg3 = (void *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    int result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        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], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    {
        arg2 = svn_swig_rb_config_section_enumerator;
        arg3 = (void *)svn_swig_rb_make_baton(argv[1], _global_svn_swig_rb_pool);
    }
    if (argc > 2) {
        
    }
    {
        result = (int)svn_config_enumerate_sections2(arg1,arg2,arg3,arg4);
        
        
        
        
    }
    vresult = INT2NUM(result);
    {
        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_config_enumerate(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    char *arg2 = (char *) 0 ;
    svn_config_enumerator_t arg3 = (svn_config_enumerator_t) 0 ;
    void *arg4 = (void *) 0 ;
    int result;
    VALUE vresult = Qnil;
    
    if ((argc < 4) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg2 = StringValuePtr(argv[1]);
    SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_void__int, 1);
    SWIG_ConvertPtr(argv[3], (void **) &arg4, 0, 1);
    {
        result = (int)svn_config_enumerate(arg1,(char const *)arg2,arg3,arg4);
        
        
        
        
    }
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_config_enumerate2(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    char *arg2 = (char *) 0 ;
    svn_config_enumerator2_t arg3 = (svn_config_enumerator2_t) 0 ;
    void *arg4 = (void *) 0 ;
    apr_pool_t *arg5 = (apr_pool_t *) 0 ;
    int result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);
        _global_pool = arg5;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg2 = StringValuePtr(argv[1]);
    {
        arg3 = svn_swig_rb_config_enumerator;
        arg4 = (void *)svn_swig_rb_make_baton(argv[2], _global_svn_swig_rb_pool);
    }
    if (argc > 3) {
        
    }
    {
        result = (int)svn_config_enumerate2(arg1,(char const *)arg2,arg3,arg4,arg5);
        
        
        
        
    }
    vresult = INT2NUM(result);
    {
        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_config_find_group(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    char *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg2 = StringValuePtr(argv[1]);
    arg3 = StringValuePtr(argv[2]);
    if (argc > 3) {
        
    }
    {
        result = (char *)svn_config_find_group(arg1,(char const *)arg2,(char const *)arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    {
        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_config_get_server_setting(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    char *result;
    VALUE vresult = Qnil;
    
    if ((argc < 4) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg2 = StringValuePtr(argv[1]);
    arg3 = StringValuePtr(argv[2]);
    {
        if (NIL_P(argv[3])) {
            arg4 = NULL;
        } else {
            arg4 = StringValuePtr(argv[3]);
        }
    }
    {
        result = (char *)svn_config_get_server_setting(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4);
        
        
        
        
    }
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    return vresult;
}


static VALUE
_wrap_svn_config_get_server_setting_int(int argc, VALUE *argv, VALUE self) {
    svn_config_t *arg1 = (svn_config_t *) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    apr_int64_t arg4 ;
    apr_int64_t *arg5 = (apr_int64_t *) 0 ;
    apr_pool_t *arg6 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_int64_t temp5 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg6);
        _global_pool = arg6;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    arg5 = &temp5;
    if ((argc < 4) || (argc > 5))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_config_t, 1);
    arg2 = StringValuePtr(argv[1]);
    arg3 = StringValuePtr(argv[2]);
    arg4 = (apr_int64_t) NUM2LL(argv[3]);
    if (argc > 4) {
        
    }
    {
        result = (svn_error_t *)svn_config_get_server_setting_int(arg1,(char const *)arg2,(char const *)arg3,arg4,arg5,arg6);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        VALUE o = LL2NUM((long long) (*arg5));
        vresult = output_helper(vresult, o);
    }
    {
        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_config_ensure(int argc, VALUE *argv, VALUE self) {
    char *arg1 = (char *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    {
        if (NIL_P(argv[0])) {
            arg1 = "";
        } else {
            arg1 = StringValuePtr(argv[0]);
        }
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_config_ensure((char const *)arg1,arg2);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_config_read_auth_data(int argc, VALUE *argv, VALUE self) {
    apr_hash_t **arg1 = (apr_hash_t **) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    apr_pool_t *arg5 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_hash_t *temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);
        _global_pool = arg5;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    arg1 = &temp1;
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    arg2 = StringValuePtr(argv[0]);
    arg3 = StringValuePtr(argv[1]);
    {
        if (NIL_P(argv[2])) {
            arg4 = "";
        } else {
            arg4 = StringValuePtr(argv[2]);
        }
    }
    if (argc > 3) {
        
    }
    {
        result = (svn_error_t *)svn_config_read_auth_data(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = svn_swig_rb_apr_hash_to_hash_svn_string(*arg1);
        } else {
            vresult = Qnil;
        }
    }
    {
        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_config_write_auth_data(int argc, VALUE *argv, VALUE self) {
    apr_hash_t *arg1 = (apr_hash_t *) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    apr_pool_t *arg5 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);
        _global_pool = arg5;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 4) || (argc > 5))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    {
        arg1 = svn_swig_rb_hash_to_apr_hash_svn_string(argv[0], _global_pool);
    }
    arg2 = StringValuePtr(argv[1]);
    arg3 = StringValuePtr(argv[2]);
    {
        if (NIL_P(argv[3])) {
            arg4 = "";
        } else {
            arg4 = StringValuePtr(argv[3]);
        }
    }
    if (argc > 4) {
        
    }
    {
        result = (svn_error_t *)svn_config_write_auth_data(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_utf_initialize(int argc, VALUE *argv, VALUE self) {
    apr_pool_t *arg1 = (apr_pool_t *) 0 ;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg1);
        _global_pool = arg1;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 0) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    if (argc > 0) {
        
    }
    {
        svn_utf_initialize(arg1);
        
        
        
        
    }
    {
        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_utf_stringbuf_to_utf8(int argc, VALUE *argv, VALUE self) {
    svn_stringbuf_t **arg1 = (svn_stringbuf_t **) 0 ;
    svn_stringbuf_t *arg2 = (svn_stringbuf_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_stringbuf_t *temp1 ;
    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);
    }
    {
        arg1 = &temp1;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        if (NIL_P(argv[0])) {
            arg2 = NULL;
        } else {
            arg2 = svn_stringbuf_ncreate(StringValuePtr(argv[0]),
            RSTRING(argv[0])->len,
            _global_pool);
        }
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_utf_stringbuf_to_utf8(arg1,(struct svn_stringbuf_t const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new((*arg1)->data, (*arg1)->len));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_utf_string_to_utf8(int argc, VALUE *argv, VALUE self) {
    svn_string_t **arg1 = (svn_string_t **) 0 ;
    svn_string_t *arg2 = (svn_string_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_string_t *temp1 ;
    svn_string_t value2 ;
    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);
    }
    {
        arg1 = &temp1;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        if (NIL_P(argv[0])) {
            arg2 = NULL;
        } else {
            value2.data = StringValuePtr(argv[0]);
            value2.len = RSTRING(argv[0])->len;
            arg2 = &value2;
        }
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_utf_string_to_utf8((struct svn_string_t const **)arg1,(struct svn_string_t const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new((*arg1)->data, (*arg1)->len));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_utf_cstring_to_utf8(int argc, VALUE *argv, VALUE self) {
    char **arg1 = (char **) 0 ;
    char *arg2 = (char *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    char const *temp1 = NULL ;
    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);
    }
    arg1 = (char **)&temp1;
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg2 = StringValuePtr(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_utf_cstring_to_utf8((char const **)arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new2(*arg1));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_utf_cstring_to_utf8_ex(int argc, VALUE *argv, VALUE self) {
    char **arg1 = (char **) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    apr_pool_t *arg5 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    char const *temp1 = NULL ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);
        _global_pool = arg5;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    arg1 = (char **)&temp1;
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    arg2 = StringValuePtr(argv[0]);
    arg3 = StringValuePtr(argv[1]);
    arg4 = StringValuePtr(argv[2]);
    if (argc > 3) {
        
    }
    {
        result = (svn_error_t *)svn_utf_cstring_to_utf8_ex((char const **)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new2(*arg1));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_utf_stringbuf_from_utf8(int argc, VALUE *argv, VALUE self) {
    svn_stringbuf_t **arg1 = (svn_stringbuf_t **) 0 ;
    svn_stringbuf_t *arg2 = (svn_stringbuf_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_stringbuf_t *temp1 ;
    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);
    }
    {
        arg1 = &temp1;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        if (NIL_P(argv[0])) {
            arg2 = NULL;
        } else {
            arg2 = svn_stringbuf_ncreate(StringValuePtr(argv[0]),
            RSTRING(argv[0])->len,
            _global_pool);
        }
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_utf_stringbuf_from_utf8(arg1,(struct svn_stringbuf_t const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new((*arg1)->data, (*arg1)->len));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_utf_string_from_utf8(int argc, VALUE *argv, VALUE self) {
    svn_string_t **arg1 = (svn_string_t **) 0 ;
    svn_string_t *arg2 = (svn_string_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_string_t *temp1 ;
    svn_string_t value2 ;
    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);
    }
    {
        arg1 = &temp1;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        if (NIL_P(argv[0])) {
            arg2 = NULL;
        } else {
            value2.data = StringValuePtr(argv[0]);
            value2.len = RSTRING(argv[0])->len;
            arg2 = &value2;
        }
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_utf_string_from_utf8((struct svn_string_t const **)arg1,(struct svn_string_t const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new((*arg1)->data, (*arg1)->len));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_utf_cstring_from_utf8(int argc, VALUE *argv, VALUE self) {
    char **arg1 = (char **) 0 ;
    char *arg2 = (char *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    char const *temp1 = NULL ;
    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);
    }
    arg1 = (char **)&temp1;
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg2 = StringValuePtr(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_utf_cstring_from_utf8((char const **)arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new2(*arg1));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_utf_cstring_from_utf8_ex(int argc, VALUE *argv, VALUE self) {
    char **arg1 = (char **) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    apr_pool_t *arg5 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    char const *temp1 = NULL ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);
        _global_pool = arg5;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    arg1 = (char **)&temp1;
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    arg2 = StringValuePtr(argv[0]);
    arg3 = StringValuePtr(argv[1]);
    arg4 = StringValuePtr(argv[2]);
    if (argc > 3) {
        
    }
    {
        result = (svn_error_t *)svn_utf_cstring_from_utf8_ex((char const **)arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new2(*arg1));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_utf_cstring_from_utf8_fuzzy(int argc, VALUE *argv, VALUE self) {
    char *arg1 = (char *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    char *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    arg1 = StringValuePtr(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (char *)svn_utf_cstring_from_utf8_fuzzy((char const *)arg1,arg2);
        
        
        
        
    }
    {
        if (result) {
            vresult = rb_str_new2(result);
        } else {
            vresult = Qnil;
        }
    }
    {
        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_utf_cstring_from_utf8_stringbuf(int argc, VALUE *argv, VALUE self) {
    char **arg1 = (char **) 0 ;
    svn_stringbuf_t *arg2 = (svn_stringbuf_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    char const *temp1 = NULL ;
    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);
    }
    arg1 = (char **)&temp1;
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        if (NIL_P(argv[0])) {
            arg2 = NULL;
        } else {
            arg2 = svn_stringbuf_ncreate(StringValuePtr(argv[0]),
            RSTRING(argv[0])->len,
            _global_pool);
        }
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_utf_cstring_from_utf8_stringbuf((char const **)arg1,(struct svn_stringbuf_t const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new2(*arg1));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_utf_cstring_from_utf8_string(int argc, VALUE *argv, VALUE self) {
    char **arg1 = (char **) 0 ;
    svn_string_t *arg2 = (svn_string_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    char const *temp1 = NULL ;
    svn_string_t value2 ;
    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);
    }
    arg1 = (char **)&temp1;
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        if (NIL_P(argv[0])) {
            arg2 = NULL;
        } else {
            value2.data = StringValuePtr(argv[0]);
            value2.len = RSTRING(argv[0])->len;
            arg2 = &value2;
        }
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_utf_cstring_from_utf8_string((char const **)arg1,(struct svn_string_t const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new2(*arg1));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_nls_init(int argc, VALUE *argv, VALUE self) {
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_error_t *)svn_nls_init();
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


swig_class cSvn_io_dirent_t;

static VALUE
_wrap_svn_io_dirent_t_kind_set(int argc, VALUE *argv, VALUE self) {
    svn_io_dirent_t *arg1 = (svn_io_dirent_t *) 0 ;
    svn_node_kind_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_io_dirent_t, 1);
    arg2 = (svn_node_kind_t) NUM2INT(argv[0]);
    if (arg1) (arg1)->kind = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_io_dirent_t_kind_get(int argc, VALUE *argv, VALUE self) {
    svn_io_dirent_t *arg1 = (svn_io_dirent_t *) 0 ;
    svn_node_kind_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_io_dirent_t, 1);
    result = (svn_node_kind_t) ((arg1)->kind);
    
    vresult = INT2NUM(result);
    return vresult;
}


static VALUE
_wrap_svn_io_dirent_t_special_set(int argc, VALUE *argv, VALUE self) {
    svn_io_dirent_t *arg1 = (svn_io_dirent_t *) 0 ;
    svn_boolean_t arg2 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_io_dirent_t, 1);
    arg2 = RTEST(argv[0]);
    if (arg1) (arg1)->special = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_io_dirent_t_special_get(int argc, VALUE *argv, VALUE self) {
    svn_io_dirent_t *arg1 = (svn_io_dirent_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_io_dirent_t, 1);
    result = (svn_boolean_t) ((arg1)->special);
    
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_io_dirent_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_io_dirent_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_io_dirent_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_io_dirent_t(int argc, VALUE *argv, VALUE self) {
    svn_io_dirent_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_io_dirent_t *)(svn_io_dirent_t *) calloc(1, sizeof(svn_io_dirent_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_io_dirent_t(svn_io_dirent_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_io_open_unique_file(int argc, VALUE *argv, VALUE self) {
    apr_file_t **arg1 = (apr_file_t **) 0 ;
    char **arg2 = (char **) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    svn_boolean_t arg5 ;
    apr_pool_t *arg6 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_file_t *temp1 ;
    char const *temp2 = NULL ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg6);
        _global_pool = arg6;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    arg1 = &temp1;
    arg2 = (char **)&temp2;
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    arg3 = StringValuePtr(argv[0]);
    arg4 = StringValuePtr(argv[1]);
    arg5 = RTEST(argv[2]);
    if (argc > 3) {
        
    }
    {
        result = (svn_error_t *)svn_io_open_unique_file(arg1,(char const **)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult,
        SWIG_NewPointerObj((void *)*arg1, SWIGTYPE_p_apr_file_t, 0));
    }
    {
        if (*arg2) {
            vresult = output_helper(vresult, rb_str_new2(*arg2));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_io_set_file_read_write_carefully(int argc, VALUE *argv, VALUE self) {
    char *arg1 = (char *) 0 ;
    svn_boolean_t arg2 ;
    svn_boolean_t arg3 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    arg1 = StringValuePtr(argv[0]);
    arg2 = RTEST(argv[1]);
    arg3 = RTEST(argv[2]);
    if (argc > 3) {
        
    }
    {
        result = (svn_error_t *)svn_io_set_file_read_write_carefully((char const *)arg1,arg2,arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_io_file_checksum(int argc, VALUE *argv, VALUE self) {
    unsigned char *arg1 ;
    char *arg2 = (char *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    unsigned char temp1[APR_MD5_DIGESTSIZE] ;
    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);
    }
    {
        arg1 = (unsigned char *)temp1;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg2 = StringValuePtr(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_io_file_checksum(arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult,
        rb_str_new2(svn_md5_digest_to_cstring(arg1, _global_pool)));
    }
    {
        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_io_files_contents_same_p(int argc, VALUE *argv, VALUE self) {
    svn_boolean_t *arg1 = (svn_boolean_t *) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_boolean_t temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        arg1 = &temp1;
    }
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    arg2 = StringValuePtr(argv[0]);
    arg3 = StringValuePtr(argv[1]);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_io_files_contents_same_p(arg1,(char const *)arg2,(char const *)arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, *arg1 ? Qtrue : Qfalse);
    }
    {
        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_stream_empty(int argc, VALUE *argv, VALUE self) {
    apr_pool_t *arg1 = (apr_pool_t *) 0 ;
    svn_stream_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg1);
        _global_pool = arg1;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 0) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    if (argc > 0) {
        
    }
    {
        result = (svn_stream_t *)svn_stream_empty(arg1);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_stream_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_stream_from_aprfile(int argc, VALUE *argv, VALUE self) {
    apr_file_t *arg1 = (apr_file_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_stream_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    {
        arg1 = svn_swig_rb_make_file(argv[0], _global_pool);
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_stream_t *)svn_stream_from_aprfile(arg1,arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_stream_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_stream_for_stdout(int argc, VALUE *argv, VALUE self) {
    svn_stream_t **arg1 = (svn_stream_t **) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_stream_t *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);
    }
    {
        temp1 = NULL;
        arg1 = (svn_stream_t **)&temp1;
    }
    if ((argc < 0) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    if (argc > 0) {
        
    }
    {
        result = (svn_error_t *)svn_stream_for_stdout(arg1,arg2);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_stream_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_stream_from_stringbuf(int argc, VALUE *argv, VALUE self) {
    svn_stringbuf_t *arg1 = (svn_stringbuf_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_stream_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    {
        if (NIL_P(argv[0])) {
            arg1 = NULL;
        } else {
            arg1 = svn_stringbuf_ncreate(StringValuePtr(argv[0]),
            RSTRING(argv[0])->len,
            _global_pool);
        }
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_stream_t *)svn_stream_from_stringbuf(arg1,arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_stream_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_stream_compressed(int argc, VALUE *argv, VALUE self) {
    svn_stream_t *arg1 = (svn_stream_t *) 0 ;
    apr_pool_t *arg2 = (apr_pool_t *) 0 ;
    svn_stream_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    {
        arg1 = svn_swig_rb_make_stream(argv[0]);
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_stream_t *)svn_stream_compressed(arg1,arg2);
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_stream_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_stream_read(int argc, VALUE *argv, VALUE self) {
    svn_stream_t *arg1 = (svn_stream_t *) 0 ;
    char *arg2 = (char *) 0 ;
    apr_size_t *arg3 = (apr_size_t *) 0 ;
    svn_error_t *result;
    apr_size_t temp2 ;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    {
        arg1 = svn_swig_rb_make_stream(argv[0]);
    }
    {
        temp2 = NUM2LONG(argv[1]);
        arg2 = malloc(temp2);
        arg3 = (apr_size_t *)&temp2;
    }
    {
        result = (svn_error_t *)svn_stream_read(arg1,arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, *arg3 == 0 ? Qnil : rb_str_new(arg2, *arg3));
        free(arg2);
    }
    return vresult;
}


static VALUE
_wrap_svn_stream_write(int argc, VALUE *argv, VALUE self) {
    svn_stream_t *arg1 = (svn_stream_t *) 0 ;
    char *arg2 = (char *) 0 ;
    apr_size_t *arg3 = (apr_size_t *) 0 ;
    svn_error_t *result;
    apr_size_t temp2 ;
    VALUE vresult = Qnil;
    
    if ((argc < 2) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    {
        arg1 = svn_swig_rb_make_stream(argv[0]);
    }
    {
        arg2 = StringValuePtr(argv[1]);
        temp2 = RSTRING(argv[1])->len;
        arg3 = (apr_size_t *)&temp2;
    }
    {
        result = (svn_error_t *)svn_stream_write(arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, LONG2NUM(*arg3));
    }
    return vresult;
}


static VALUE
_wrap_svn_stream_close(int argc, VALUE *argv, VALUE self) {
    svn_stream_t *arg1 = (svn_stream_t *) 0 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        arg1 = svn_swig_rb_make_stream(argv[0]);
    }
    {
        result = (svn_error_t *)svn_stream_close(arg1);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_stream_readline(int argc, VALUE *argv, VALUE self) {
    svn_stream_t *arg1 = (svn_stream_t *) 0 ;
    svn_stringbuf_t **arg2 = (svn_stringbuf_t **) 0 ;
    char *arg3 = (char *) 0 ;
    svn_boolean_t *arg4 = (svn_boolean_t *) 0 ;
    apr_pool_t *arg5 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_stringbuf_t *temp2 ;
    svn_boolean_t temp4 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);
        _global_pool = arg5;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        arg2 = &temp2;
    }
    {
        arg4 = &temp4;
    }
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    {
        arg1 = svn_swig_rb_make_stream(argv[0]);
    }
    arg3 = StringValuePtr(argv[1]);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_stream_readline(arg1,arg2,(char const *)arg3,arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg2) {
            vresult = output_helper(vresult, rb_str_new((*arg2)->data, (*arg2)->len));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        vresult = output_helper(vresult, *arg4 ? Qtrue : Qfalse);
    }
    {
        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_stream_copy(int argc, VALUE *argv, VALUE self) {
    svn_stream_t *arg1 = (svn_stream_t *) 0 ;
    svn_stream_t *arg2 = (svn_stream_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    {
        arg1 = svn_swig_rb_make_stream(argv[0]);
    }
    {
        arg2 = svn_swig_rb_make_stream(argv[1]);
    }
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_stream_copy(arg1,arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_stringbuf_from_file(int argc, VALUE *argv, VALUE self) {
    svn_stringbuf_t **arg1 = (svn_stringbuf_t **) 0 ;
    char *arg2 = (char *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_stringbuf_t *temp1 ;
    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);
    }
    {
        arg1 = &temp1;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg2 = StringValuePtr(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_stringbuf_from_file(arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new((*arg1)->data, (*arg1)->len));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_stringbuf_from_aprfile(int argc, VALUE *argv, VALUE self) {
    svn_stringbuf_t **arg1 = (svn_stringbuf_t **) 0 ;
    apr_file_t *arg2 = (apr_file_t *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_stringbuf_t *temp1 ;
    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);
    }
    {
        arg1 = &temp1;
    }
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    {
        arg2 = svn_swig_rb_make_file(argv[0], _global_pool);
    }
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_stringbuf_from_aprfile(arg1,arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new((*arg1)->data, (*arg1)->len));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_io_get_dirents2(int argc, VALUE *argv, VALUE self) {
    apr_hash_t **arg1 = (apr_hash_t **) 0 ;
    char *arg2 = (char *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    apr_hash_t *temp1 ;
    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);
    }
    arg1 = &temp1;
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg2 = StringValuePtr(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_io_get_dirents2(arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult,
        svn_swig_rb_apr_hash_to_hash_swig_type
        (*arg1, "svn_dirent_t *"));
    }
    {
        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_io_detect_mimetype(int argc, VALUE *argv, VALUE self) {
    char **arg1 = (char **) 0 ;
    char *arg2 = (char *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    char const *temp1 = NULL ;
    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);
    }
    arg1 = (char **)&temp1;
    if ((argc < 1) || (argc > 2))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    arg2 = StringValuePtr(argv[0]);
    if (argc > 1) {
        
    }
    {
        result = (svn_error_t *)svn_io_detect_mimetype((char const **)arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        if (*arg1) {
            vresult = output_helper(vresult, rb_str_new2(*arg1));
        } else {
            vresult = output_helper(vresult, Qnil);
        }
    }
    {
        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_io_file_move(int argc, VALUE *argv, VALUE self) {
    char *arg1 = (char *) 0 ;
    char *arg2 = (char *) 0 ;
    apr_pool_t *arg3 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    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);
    arg1 = StringValuePtr(argv[0]);
    arg2 = StringValuePtr(argv[1]);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_io_file_move((char const *)arg1,(char const *)arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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 cApr_pool_wrapper_t;

#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_apr_pool_wrapper_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_apr_pool_wrapper_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_apr_pool_wrapper_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_apr_pool_wrapper_t(int argc, VALUE *argv, VALUE self) {
    apr_pool_wrapper_t *arg1 = (apr_pool_wrapper_t *) 0 ;
    struct apr_pool_wrapper_t *result;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_apr_pool_wrapper_t, 1);
    {
        result = (struct apr_pool_wrapper_t *)new_apr_pool_wrapper_t(arg1);
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void delete_apr_pool_wrapper_t(struct apr_pool_wrapper_t *self){
    if (!self->destroyed) {
      apr_pool_wrapper_destroy_children(self);
      apr_pool_wrapper_remove_from_parent(self);
      apr_pool_destroy(self->pool);
    }
    free(self);
  }
static void
free_apr_pool_wrapper_t(struct apr_pool_wrapper_t *arg1) {
    delete_apr_pool_wrapper_t(arg1);
}
static VALUE
_wrap_svn_diff_version(int argc, VALUE *argv, VALUE self) {
    svn_version_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_version_t *)svn_diff_version();
        
        
        
        
    }
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_svn_version_t,0);
    return vresult;
}


swig_class cSvn_diff_fns_t;

static VALUE
_wrap_svn_diff_fns_t_datasource_open_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    svn_error_t *(*arg2)(void *,svn_diff_datasource_e) = (svn_error_t *(*)(void *,svn_diff_datasource_e)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void_svn_diff_datasource_e__p_svn_error_t, 1);
    if (arg1) (arg1)->datasource_open = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_fns_t_datasource_open_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    svn_error_t *(*result)(void *,svn_diff_datasource_e);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    result = (svn_error_t *(*)(void *,svn_diff_datasource_e)) ((arg1)->datasource_open);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void_svn_diff_datasource_e__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_diff_fns_t_datasource_close_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    svn_error_t *(*arg2)(void *,svn_diff_datasource_e) = (svn_error_t *(*)(void *,svn_diff_datasource_e)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void_svn_diff_datasource_e__p_svn_error_t, 1);
    if (arg1) (arg1)->datasource_close = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_fns_t_datasource_close_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    svn_error_t *(*result)(void *,svn_diff_datasource_e);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    result = (svn_error_t *(*)(void *,svn_diff_datasource_e)) ((arg1)->datasource_close);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void_svn_diff_datasource_e__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_diff_fns_t_datasource_get_next_token_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    svn_error_t *(*arg2)(apr_uint32_t *,void **,void *,svn_diff_datasource_e) = (svn_error_t *(*)(apr_uint32_t *,void **,void *,svn_diff_datasource_e)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_apr_uint32_t_p_p_void_p_void_svn_diff_datasource_e__p_svn_error_t, 1);
    if (arg1) (arg1)->datasource_get_next_token = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_fns_t_datasource_get_next_token_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    svn_error_t *(*result)(apr_uint32_t *,void **,void *,svn_diff_datasource_e);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    result = (svn_error_t *(*)(apr_uint32_t *,void **,void *,svn_diff_datasource_e)) ((arg1)->datasource_get_next_token);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_apr_uint32_t_p_p_void_p_void_svn_diff_datasource_e__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_diff_fns_t_token_compare_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    svn_error_t *(*arg2)(void *,void *,void *,int *) = (svn_error_t *(*)(void *,void *,void *,int *)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void_p_void_p_void_p_int__p_svn_error_t, 1);
    if (arg1) (arg1)->token_compare = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_fns_t_token_compare_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    svn_error_t *(*result)(void *,void *,void *,int *);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    result = (svn_error_t *(*)(void *,void *,void *,int *)) ((arg1)->token_compare);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void_p_void_p_void_p_int__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_diff_fns_t_token_discard_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    void (*arg2)(void *,void *) = (void (*)(void *,void *)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void_p_void__void, 1);
    if (arg1) (arg1)->token_discard = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_fns_t_token_discard_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    void (*result)(void *,void *);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    result = (void (*)(void *,void *)) ((arg1)->token_discard);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void_p_void__void,0);
    return vresult;
}


static VALUE
_wrap_svn_diff_fns_t_token_discard_all_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    void (*arg2)(void *) = (void (*)(void *)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void__void, 1);
    if (arg1) (arg1)->token_discard_all = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_fns_t_token_discard_all_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    void (*result)(void *);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    result = (void (*)(void *)) ((arg1)->token_discard_all);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void__void,0);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_diff_fns_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_diff_fns_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_diff_fns_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_diff_fns_t(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_diff_fns_t *)(svn_diff_fns_t *) calloc(1, sizeof(svn_diff_fns_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_diff_fns_t(svn_diff_fns_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_diff_diff(int argc, VALUE *argv, VALUE self) {
    svn_diff_t **arg1 = (svn_diff_t **) 0 ;
    void *arg2 = (void *) 0 ;
    svn_diff_fns_t *arg3 = (svn_diff_fns_t *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_diff_t *temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        temp1 = NULL;
        arg1 = (svn_diff_t **)&temp1;
    }
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, 0, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_svn_diff_fns_t, 1);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_diff_diff(arg1,arg2,(struct svn_diff_fns_t const *)arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_diff_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_diff_diff3(int argc, VALUE *argv, VALUE self) {
    svn_diff_t **arg1 = (svn_diff_t **) 0 ;
    void *arg2 = (void *) 0 ;
    svn_diff_fns_t *arg3 = (svn_diff_fns_t *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_diff_t *temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        temp1 = NULL;
        arg1 = (svn_diff_t **)&temp1;
    }
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, 0, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_svn_diff_fns_t, 1);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_diff_diff3(arg1,arg2,(struct svn_diff_fns_t const *)arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_diff_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_diff_diff4(int argc, VALUE *argv, VALUE self) {
    svn_diff_t **arg1 = (svn_diff_t **) 0 ;
    void *arg2 = (void *) 0 ;
    svn_diff_fns_t *arg3 = (svn_diff_fns_t *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_diff_t *temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        temp1 = NULL;
        arg1 = (svn_diff_t **)&temp1;
    }
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, 0, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_svn_diff_fns_t, 1);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_diff_diff4(arg1,arg2,(struct svn_diff_fns_t const *)arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_diff_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_diff_contains_conflicts(int argc, VALUE *argv, VALUE self) {
    svn_diff_t *arg1 = (svn_diff_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_t, 1);
    {
        result = (svn_boolean_t)svn_diff_contains_conflicts(arg1);
        
        
        
        
    }
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_contains_diffs(int argc, VALUE *argv, VALUE self) {
    svn_diff_t *arg1 = (svn_diff_t *) 0 ;
    svn_boolean_t result;
    VALUE vresult = Qnil;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_t, 1);
    {
        result = (svn_boolean_t)svn_diff_contains_diffs(arg1);
        
        
        
        
    }
    {
        vresult = output_helper(vresult, result ? Qtrue : Qfalse);
    }
    return vresult;
}


swig_class cSvn_diff_output_fns_t;

static VALUE
_wrap_svn_diff_output_fns_t_output_common_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*arg2)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t) = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t, 1);
    if (arg1) (arg1)->output_common = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_output_fns_t_output_common_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*result)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    result = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)) ((arg1)->output_common);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_diff_output_fns_t_output_diff_modified_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*arg2)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t) = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t, 1);
    if (arg1) (arg1)->output_diff_modified = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_output_fns_t_output_diff_modified_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*result)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    result = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)) ((arg1)->output_diff_modified);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_diff_output_fns_t_output_diff_latest_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*arg2)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t) = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t, 1);
    if (arg1) (arg1)->output_diff_latest = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_output_fns_t_output_diff_latest_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*result)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    result = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)) ((arg1)->output_diff_latest);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_diff_output_fns_t_output_diff_common_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*arg2)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t) = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t, 1);
    if (arg1) (arg1)->output_diff_common = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_output_fns_t_output_diff_common_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*result)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    result = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)) ((arg1)->output_diff_common);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t,0);
    return vresult;
}


static VALUE
_wrap_svn_diff_output_fns_t_output_conflict_set(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*arg2)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,svn_diff_t *) = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,svn_diff_t *)) 0 ;
    
    if ((argc < 1) || (argc > 1))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_p_svn_diff_t__p_svn_error_t, 1);
    if (arg1) (arg1)->output_conflict = arg2;
    
    return Qnil;
}


static VALUE
_wrap_svn_diff_output_fns_t_output_conflict_get(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *(*result)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,svn_diff_t *);
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    result = (svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,svn_diff_t *)) ((arg1)->output_conflict);
    
    vresult = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_p_svn_diff_t__p_svn_error_t,0);
    return vresult;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
static VALUE
_wrap_svn_diff_output_fns_t_allocate(VALUE self) {
#else
    static VALUE
    _wrap_svn_diff_output_fns_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
        
        
        VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_svn_diff_output_fns_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
        rb_obj_call_init(vresult, argc, argv);
#endif
        return vresult;
    }
    

static VALUE
_wrap_new_svn_diff_output_fns_t(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *result;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (svn_diff_output_fns_t *)(svn_diff_output_fns_t *) calloc(1, sizeof(svn_diff_output_fns_t));
        DATA_PTR(self) = result;
        
        
        
    }
    return self;
}


static void
free_svn_diff_output_fns_t(svn_diff_output_fns_t *arg1) {
    free((char *) arg1);
}
static VALUE
_wrap_svn_diff_output(int argc, VALUE *argv, VALUE self) {
    svn_diff_t *arg1 = (svn_diff_t *) 0 ;
    void *arg2 = (void *) 0 ;
    svn_diff_output_fns_t *arg3 = (svn_diff_output_fns_t *) 0 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 3) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, 0, 1);
    SWIG_ConvertPtr(argv[2], (void **) &arg3, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    {
        result = (svn_error_t *)svn_diff_output(arg1,arg2,(struct svn_diff_output_fns_t const *)arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_file_diff(int argc, VALUE *argv, VALUE self) {
    svn_diff_t **arg1 = (svn_diff_t **) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    apr_pool_t *arg4 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_diff_t *temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg4);
        _global_pool = arg4;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        temp1 = NULL;
        arg1 = (svn_diff_t **)&temp1;
    }
    if ((argc < 2) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
    arg2 = StringValuePtr(argv[0]);
    arg3 = StringValuePtr(argv[1]);
    if (argc > 2) {
        
    }
    {
        result = (svn_error_t *)svn_diff_file_diff(arg1,(char const *)arg2,(char const *)arg3,arg4);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_diff_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_diff_file_diff3(int argc, VALUE *argv, VALUE self) {
    svn_diff_t **arg1 = (svn_diff_t **) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    apr_pool_t *arg5 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_diff_t *temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg5);
        _global_pool = arg5;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        temp1 = NULL;
        arg1 = (svn_diff_t **)&temp1;
    }
    if ((argc < 3) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    arg2 = StringValuePtr(argv[0]);
    arg3 = StringValuePtr(argv[1]);
    arg4 = StringValuePtr(argv[2]);
    if (argc > 3) {
        
    }
    {
        result = (svn_error_t *)svn_diff_file_diff3(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_diff_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_diff_file_diff4(int argc, VALUE *argv, VALUE self) {
    svn_diff_t **arg1 = (svn_diff_t **) 0 ;
    char *arg2 = (char *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    char *arg5 = (char *) 0 ;
    apr_pool_t *arg6 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    svn_diff_t *temp1 ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg6);
        _global_pool = arg6;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    {
        temp1 = NULL;
        arg1 = (svn_diff_t **)&temp1;
    }
    if ((argc < 4) || (argc > 5))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    arg2 = StringValuePtr(argv[0]);
    arg3 = StringValuePtr(argv[1]);
    arg4 = StringValuePtr(argv[2]);
    arg5 = StringValuePtr(argv[3]);
    if (argc > 4) {
        
    }
    {
        result = (svn_error_t *)svn_diff_file_diff4(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        vresult = output_helper(vresult, SWIG_NewPointerObj(*arg1, SWIGTYPE_p_svn_diff_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_diff_file_output_unified2(int argc, VALUE *argv, VALUE self) {
    svn_stream_t *arg1 = (svn_stream_t *) 0 ;
    svn_diff_t *arg2 = (svn_diff_t *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    char *arg5 = (char *) 0 ;
    char *arg6 = (char *) 0 ;
    char *arg7 = (char *) 0 ;
    apr_pool_t *arg8 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg8);
        _global_pool = arg8;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 7) || (argc > 8))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc);
    {
        arg1 = svn_swig_rb_make_stream(argv[0]);
    }
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_svn_diff_t, 1);
    arg3 = StringValuePtr(argv[2]);
    arg4 = StringValuePtr(argv[3]);
    arg5 = StringValuePtr(argv[4]);
    arg6 = StringValuePtr(argv[5]);
    {
        arg7 = NULL;
        
        if (NIL_P(argv[6])) {
            
        } else if (TYPE(argv[6]) == T_FIXNUM) {
            arg7 = (char *)NUM2INT(argv[6]);
            if (!(arg7 == APR_LOCALE_CHARSET || arg7 == APR_DEFAULT_CHARSET)) {
                arg7 = NULL;
            }
        } else {
            arg7 = StringValuePtr(argv[6]);
        }
        
        if (!arg7) {
            arg7 = (char *)APR_LOCALE_CHARSET;
        }
    }
    if (argc > 7) {
        
    }
    {
        result = (svn_error_t *)svn_diff_file_output_unified2(arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,arg8);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_diff_file_output_unified(int argc, VALUE *argv, VALUE self) {
    svn_stream_t *arg1 = (svn_stream_t *) 0 ;
    svn_diff_t *arg2 = (svn_diff_t *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    char *arg5 = (char *) 0 ;
    char *arg6 = (char *) 0 ;
    apr_pool_t *arg7 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg7);
        _global_pool = arg7;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 6) || (argc > 7))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc);
    {
        arg1 = svn_swig_rb_make_stream(argv[0]);
    }
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_svn_diff_t, 1);
    arg3 = StringValuePtr(argv[2]);
    arg4 = StringValuePtr(argv[3]);
    arg5 = StringValuePtr(argv[4]);
    arg6 = StringValuePtr(argv[5]);
    if (argc > 6) {
        
    }
    {
        result = (svn_error_t *)svn_diff_file_output_unified(arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,arg7);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_diff_file_output_merge(int argc, VALUE *argv, VALUE self) {
    svn_stream_t *arg1 = (svn_stream_t *) 0 ;
    svn_diff_t *arg2 = (svn_diff_t *) 0 ;
    char *arg3 = (char *) 0 ;
    char *arg4 = (char *) 0 ;
    char *arg5 = (char *) 0 ;
    char *arg6 = (char *) 0 ;
    char *arg7 = (char *) 0 ;
    char *arg8 = (char *) 0 ;
    char *arg9 = (char *) 0 ;
    svn_boolean_t arg10 ;
    svn_boolean_t arg11 ;
    apr_pool_t *arg12 = (apr_pool_t *) 0 ;
    svn_error_t *result;
    VALUE _global_svn_swig_rb_pool ;
    apr_pool_t *_global_pool ;
    VALUE vresult = Qnil;
    
    {
        svn_swig_rb_get_pool(argc, argv, self, &_global_svn_swig_rb_pool, &arg12);
        _global_pool = arg12;
        svn_swig_rb_push_pool(_global_svn_swig_rb_pool);
    }
    if ((argc < 11) || (argc > 12))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 11)",argc);
    {
        arg1 = svn_swig_rb_make_stream(argv[0]);
    }
    SWIG_ConvertPtr(argv[1], (void **) &arg2, SWIGTYPE_p_svn_diff_t, 1);
    arg3 = StringValuePtr(argv[2]);
    arg4 = StringValuePtr(argv[3]);
    arg5 = StringValuePtr(argv[4]);
    {
        if (NIL_P(argv[5])) {
            arg6 = NULL;
        } else {
            arg6 = StringValuePtr(argv[5]);
        }
    }
    {
        if (NIL_P(argv[6])) {
            arg7 = NULL;
        } else {
            arg7 = StringValuePtr(argv[6]);
        }
    }
    {
        if (NIL_P(argv[7])) {
            arg8 = NULL;
        } else {
            arg8 = StringValuePtr(argv[7]);
        }
    }
    {
        if (NIL_P(argv[8])) {
            arg9 = NULL;
        } else {
            arg9 = StringValuePtr(argv[8]);
        }
    }
    arg10 = RTEST(argv[9]);
    arg11 = RTEST(argv[10]);
    if (argc > 11) {
        
    }
    {
        result = (svn_error_t *)svn_diff_file_output_merge(arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6,(char const *)arg7,(char const *)arg8,(char const *)arg9,arg10,arg11,arg12);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        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_diff_fns_invoke_datasource_open(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    void *arg2 = (void *) 0 ;
    svn_diff_datasource_e arg3 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 3) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, 0, 1);
    arg3 = (svn_diff_datasource_e) NUM2INT(argv[2]);
    {
        result = (svn_error_t *)svn_diff_fns_invoke_datasource_open(arg1,arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_fns_invoke_datasource_close(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    void *arg2 = (void *) 0 ;
    svn_diff_datasource_e arg3 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 3) || (argc > 3))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, 0, 1);
    arg3 = (svn_diff_datasource_e) NUM2INT(argv[2]);
    {
        result = (svn_error_t *)svn_diff_fns_invoke_datasource_close(arg1,arg2,arg3);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_fns_invoke_datasource_get_next_token(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    apr_uint32_t *arg2 = (apr_uint32_t *) 0 ;
    void **arg3 = (void **) 0 ;
    void *arg4 = (void *) 0 ;
    svn_diff_datasource_e arg5 ;
    svn_error_t *result;
    apr_uint32_t temp2 ;
    VALUE vresult = Qnil;
    
    arg2 = &temp2;
    if ((argc < 4) || (argc > 4))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_p_void, 1);
    SWIG_ConvertPtr(argv[2], (void **) &arg4, 0, 1);
    arg5 = (svn_diff_datasource_e) NUM2INT(argv[3]);
    {
        result = (svn_error_t *)svn_diff_fns_invoke_datasource_get_next_token(arg1,arg2,arg3,arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    {
        VALUE o = UINT2NUM((unsigned long) (*arg2));
        vresult = output_helper(vresult, o);
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_fns_invoke_token_compare(int argc, VALUE *argv, VALUE self) {
    svn_diff_fns_t *arg1 = (svn_diff_fns_t *) 0 ;
    void *arg2 = (void *) 0 ;
    void *arg3 = (void *) 0 ;
    void *arg4 = (void *) 0 ;
    int *arg5 = (int *) 0 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 5) || (argc > 5))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_fns_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, 0, 1);
    SWIG_ConvertPtr(argv[2], (void **) &arg3, 0, 1);
    SWIG_ConvertPtr(argv[3], (void **) &arg4, 0, 1);
    SWIG_ConvertPtr(argv[4], (void **) &arg5, SWIGTYPE_p_int, 1);
    {
        result = (svn_error_t *)svn_diff_fns_invoke_token_compare(arg1,arg2,arg3,arg4,arg5);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_output_fns_invoke_output_common(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    void *arg2 = (void *) 0 ;
    apr_off_t arg3 ;
    apr_off_t arg4 ;
    apr_off_t arg5 ;
    apr_off_t arg6 ;
    apr_off_t arg7 ;
    apr_off_t arg8 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 8) || (argc > 8))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, 0, 1);
    arg3 = (apr_off_t) NUM2LL(argv[2]);
    arg4 = (apr_off_t) NUM2LL(argv[3]);
    arg5 = (apr_off_t) NUM2LL(argv[4]);
    arg6 = (apr_off_t) NUM2LL(argv[5]);
    arg7 = (apr_off_t) NUM2LL(argv[6]);
    arg8 = (apr_off_t) NUM2LL(argv[7]);
    {
        result = (svn_error_t *)svn_diff_output_fns_invoke_output_common(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_output_fns_invoke_output_diff_modified(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    void *arg2 = (void *) 0 ;
    apr_off_t arg3 ;
    apr_off_t arg4 ;
    apr_off_t arg5 ;
    apr_off_t arg6 ;
    apr_off_t arg7 ;
    apr_off_t arg8 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 8) || (argc > 8))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, 0, 1);
    arg3 = (apr_off_t) NUM2LL(argv[2]);
    arg4 = (apr_off_t) NUM2LL(argv[3]);
    arg5 = (apr_off_t) NUM2LL(argv[4]);
    arg6 = (apr_off_t) NUM2LL(argv[5]);
    arg7 = (apr_off_t) NUM2LL(argv[6]);
    arg8 = (apr_off_t) NUM2LL(argv[7]);
    {
        result = (svn_error_t *)svn_diff_output_fns_invoke_output_diff_modified(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_output_fns_invoke_output_diff_latest(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    void *arg2 = (void *) 0 ;
    apr_off_t arg3 ;
    apr_off_t arg4 ;
    apr_off_t arg5 ;
    apr_off_t arg6 ;
    apr_off_t arg7 ;
    apr_off_t arg8 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 8) || (argc > 8))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, 0, 1);
    arg3 = (apr_off_t) NUM2LL(argv[2]);
    arg4 = (apr_off_t) NUM2LL(argv[3]);
    arg5 = (apr_off_t) NUM2LL(argv[4]);
    arg6 = (apr_off_t) NUM2LL(argv[5]);
    arg7 = (apr_off_t) NUM2LL(argv[6]);
    arg8 = (apr_off_t) NUM2LL(argv[7]);
    {
        result = (svn_error_t *)svn_diff_output_fns_invoke_output_diff_latest(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_output_fns_invoke_output_diff_common(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    void *arg2 = (void *) 0 ;
    apr_off_t arg3 ;
    apr_off_t arg4 ;
    apr_off_t arg5 ;
    apr_off_t arg6 ;
    apr_off_t arg7 ;
    apr_off_t arg8 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 8) || (argc > 8))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, 0, 1);
    arg3 = (apr_off_t) NUM2LL(argv[2]);
    arg4 = (apr_off_t) NUM2LL(argv[3]);
    arg5 = (apr_off_t) NUM2LL(argv[4]);
    arg6 = (apr_off_t) NUM2LL(argv[5]);
    arg7 = (apr_off_t) NUM2LL(argv[6]);
    arg8 = (apr_off_t) NUM2LL(argv[7]);
    {
        result = (svn_error_t *)svn_diff_output_fns_invoke_output_diff_common(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_diff_output_fns_invoke_output_conflict(int argc, VALUE *argv, VALUE self) {
    svn_diff_output_fns_t *arg1 = (svn_diff_output_fns_t *) 0 ;
    void *arg2 = (void *) 0 ;
    apr_off_t arg3 ;
    apr_off_t arg4 ;
    apr_off_t arg5 ;
    apr_off_t arg6 ;
    apr_off_t arg7 ;
    apr_off_t arg8 ;
    svn_diff_t *arg9 = (svn_diff_t *) 0 ;
    svn_error_t *result;
    VALUE vresult = Qnil;
    
    if ((argc < 9) || (argc > 9))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc);
    SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_svn_diff_output_fns_t, 1);
    SWIG_ConvertPtr(argv[1], (void **) &arg2, 0, 1);
    arg3 = (apr_off_t) NUM2LL(argv[2]);
    arg4 = (apr_off_t) NUM2LL(argv[3]);
    arg5 = (apr_off_t) NUM2LL(argv[4]);
    arg6 = (apr_off_t) NUM2LL(argv[5]);
    arg7 = (apr_off_t) NUM2LL(argv[6]);
    arg8 = (apr_off_t) NUM2LL(argv[7]);
    SWIG_ConvertPtr(argv[8], (void **) &arg9, SWIGTYPE_p_svn_diff_t, 1);
    {
        result = (svn_error_t *)svn_diff_output_fns_invoke_output_conflict(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
        
        
        
        
    }
    {
        if (result) {
            svn_swig_rb_pop_pool(_global_svn_swig_rb_pool);
            svn_swig_rb_handle_svn_error(result);
        }
        vresult = Qnil;
    }
    return vresult;
}


static VALUE
_wrap_svn_default_charset(int argc, VALUE *argv, VALUE self) {
    VALUE result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (VALUE)svn_default_charset();
        
        
        
        
    }
    vresult = result;
    return vresult;
}


static VALUE
_wrap_svn_locale_charset(int argc, VALUE *argv, VALUE self) {
    VALUE result;
    VALUE vresult = Qnil;
    
    if ((argc < 0) || (argc > 0))
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
    {
        result = (VALUE)svn_locale_charset();
        
        
        
        
    }
    vresult = result;
    return vresult;
}



/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static swig_type_info _swigt__p_apr_allocator_t = {"_p_apr_allocator_t", "apr_allocator_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_array_header_t = {"_p_apr_array_header_t", "apr_array_header_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_file_t = {"_p_apr_file_t", "apr_file_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_getopt_option_t = {"_p_apr_getopt_option_t", "apr_getopt_option_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_getopt_t = {"_p_apr_getopt_t", "apr_getopt_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_hash_t = {"_p_apr_hash_t", "apr_hash_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_int32_t = {"_p_apr_int32_t", "apr_int32_t *|time_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_int64_t = {"_p_apr_int64_t", "apr_int64_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_pool_t = {"_p_apr_pool_t", "apr_pool_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_pool_wrapper_t = {"_p_apr_pool_wrapper_t", "apr_pool_wrapper_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_size_t = {"_p_apr_size_t", "apr_size_t *", 0, 0, 0};
static swig_type_info _swigt__p_apr_uint32_t = {"_p_apr_uint32_t", "apr_uint32_t *", 0, 0, 0};
static swig_type_info _swigt__p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t = {"_p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t", "struct svn_error_t *(*)(apr_getopt_t *,void *,apr_pool_t *)|svn_opt_subcommand_t *", 0, 0, 0};
static swig_type_info _swigt__p_f_p_apr_uint32_t_p_p_void_p_void_svn_diff_datasource_e__p_svn_error_t = {"_p_f_p_apr_uint32_t_p_p_void_p_void_svn_diff_datasource_e__p_svn_error_t", "struct svn_error_t *(*)(apr_uint32_t *,void **,void *,svn_diff_datasource_e)|svn_error_t *(*)(apr_uint32_t *,void **,void *,svn_diff_datasource_e)", 0, 0, 0};
static swig_type_info _swigt__p_f_p_p_void_p_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t = {"_p_f_p_p_void_p_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t", "struct svn_error_t *(*)(void **,void **,void *,apr_hash_t *,char const *,apr_pool_t *)|svn_error_t *(*)(void **,void **,void *,apr_hash_t *,char const *,apr_pool_t *)", 0, 0, 0};
static swig_type_info _swigt__p_f_p_p_void_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t = {"_p_f_p_p_void_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t", "struct svn_error_t *(*)(void **,void *,void *,apr_hash_t *,char const *,apr_pool_t *)|svn_error_t *(*)(void **,void *,void *,apr_hash_t *,char const *,apr_pool_t *)", 0, 0, 0};
static swig_type_info _swigt__p_f_p_q_const__char_p_q_const__char_p_void__int = {"_p_f_p_q_const__char_p_q_const__char_p_void__int", "int (*)(char const *,char const *,void *)|svn_config_enumerator_t", 0, 0, 0};
static swig_type_info _swigt__p_f_p_q_const__char_p_q_const__char_p_void_p_apr_pool_t__int = {"_p_f_p_q_const__char_p_q_const__char_p_void_p_apr_pool_t__int", "int (*)(char const *,char const *,void *,apr_pool_t *)|svn_config_enumerator2_t", 0, 0, 0};
static swig_type_info _swigt__p_f_p_q_const__char_p_void__int = {"_p_f_p_q_const__char_p_void__int", "int (*)(char const *,void *)|svn_config_section_enumerator_t", 0, 0, 0};
static swig_type_info _swigt__p_f_p_q_const__char_p_void_p_apr_pool_t__int = {"_p_f_p_q_const__char_p_void_p_apr_pool_t__int", "int (*)(char const *,void *,apr_pool_t *)|svn_config_section_enumerator2_t", 0, 0, 0};
static swig_type_info _swigt__p_f_p_svn_boolean_t_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t = {"_p_f_p_svn_boolean_t_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t", "struct svn_error_t *(*)(svn_boolean_t *,void *,void *,apr_hash_t *,char const *,apr_pool_t *)|svn_error_t *(*)(svn_boolean_t *,void *,void *,apr_hash_t *,char const *,apr_pool_t *)", 0, 0, 0};
static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, 0};
static swig_type_info _swigt__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t = {"_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t", "struct svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)|svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t)", 0, 0, 0};
static swig_type_info _swigt__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_p_svn_diff_t__p_svn_error_t = {"_p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_p_svn_diff_t__p_svn_error_t", "struct svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,svn_diff_t *)|svn_error_t *(*)(void *,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,apr_off_t,svn_diff_t *)", 0, 0, 0};
static swig_type_info _swigt__p_f_p_void_p_void__void = {"_p_f_p_void_p_void__void", "void (*)(void *,void *)", 0, 0, 0};
static swig_type_info _swigt__p_f_p_void_p_void_p_void_p_int__p_svn_error_t = {"_p_f_p_void_p_void_p_void_p_int__p_svn_error_t", "struct svn_error_t *(*)(void *,void *,void *,int *)|svn_error_t *(*)(void *,void *,void *,int *)", 0, 0, 0};
static swig_type_info _swigt__p_f_p_void_svn_diff_datasource_e__p_svn_error_t = {"_p_f_p_void_svn_diff_datasource_e__p_svn_error_t", "struct svn_error_t *(*)(void *,svn_diff_datasource_e)|svn_error_t *(*)(void *,svn_diff_datasource_e)", 0, 0, 0};
static swig_type_info _swigt__p_f_void__p_svn_version_t = {"_p_f_void__p_svn_version_t", "struct svn_version_t *(*)(void)|svn_version_t *(*)(void)", 0, 0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, 0};
static swig_type_info _swigt__p_long = {"_p_long", "long *|svn_revnum_t *", 0, 0, 0};
static swig_type_info _swigt__p_p_apr_array_header_t = {"_p_p_apr_array_header_t", "apr_array_header_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_apr_file_t = {"_p_p_apr_file_t", "apr_file_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_apr_hash_t = {"_p_p_apr_hash_t", "apr_hash_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, 0};
static swig_type_info _swigt__p_p_svn_auth_baton_t = {"_p_p_svn_auth_baton_t", "struct svn_auth_baton_t **|svn_auth_baton_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_svn_auth_iterstate_t = {"_p_p_svn_auth_iterstate_t", "struct svn_auth_iterstate_t **|svn_auth_iterstate_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_svn_config_t = {"_p_p_svn_config_t", "struct svn_config_t **|svn_config_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_svn_diff_t = {"_p_p_svn_diff_t", "struct svn_diff_t **|svn_diff_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_svn_stream_t = {"_p_p_svn_stream_t", "struct svn_stream_t **|svn_stream_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_svn_string_t = {"_p_p_svn_string_t", "struct svn_string_t **|svn_string_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_svn_stringbuf_t = {"_p_p_svn_stringbuf_t", "struct svn_stringbuf_t **|svn_stringbuf_t **", 0, 0, 0};
static swig_type_info _swigt__p_p_void = {"_p_p_void", "void **", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_baton_t = {"_p_svn_auth_baton_t", "struct svn_auth_baton_t *|svn_auth_baton_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_cred_simple_t = {"_p_svn_auth_cred_simple_t", "struct svn_auth_cred_simple_t *|svn_auth_cred_simple_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_cred_ssl_client_cert_pw_t = {"_p_svn_auth_cred_ssl_client_cert_pw_t", "struct svn_auth_cred_ssl_client_cert_pw_t *|svn_auth_cred_ssl_client_cert_pw_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_cred_ssl_client_cert_t = {"_p_svn_auth_cred_ssl_client_cert_t", "struct svn_auth_cred_ssl_client_cert_t *|svn_auth_cred_ssl_client_cert_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_cred_ssl_server_trust_t = {"_p_svn_auth_cred_ssl_server_trust_t", "struct svn_auth_cred_ssl_server_trust_t *|svn_auth_cred_ssl_server_trust_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_cred_username_t = {"_p_svn_auth_cred_username_t", "struct svn_auth_cred_username_t *|svn_auth_cred_username_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_iterstate_t = {"_p_svn_auth_iterstate_t", "struct svn_auth_iterstate_t *|svn_auth_iterstate_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_provider_object_t = {"_p_svn_auth_provider_object_t", "struct svn_auth_provider_object_t *|svn_auth_provider_object_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_provider_t = {"_p_svn_auth_provider_t", "struct svn_auth_provider_t *|svn_auth_provider_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_auth_ssl_server_cert_info_t = {"_p_svn_auth_ssl_server_cert_info_t", "struct svn_auth_ssl_server_cert_info_t *|svn_auth_ssl_server_cert_info_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_commit_info_t = {"_p_svn_commit_info_t", "struct svn_commit_info_t *|svn_commit_info_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_config_t = {"_p_svn_config_t", "struct svn_config_t *|svn_config_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_diff_datasource_e = {"_p_svn_diff_datasource_e", "enum svn_diff_datasource_e *|svn_diff_datasource_e *", 0, 0, 0};
static swig_type_info _swigt__p_svn_diff_fns_t = {"_p_svn_diff_fns_t", "struct svn_diff_fns_t *|svn_diff_fns_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_diff_output_fns_t = {"_p_svn_diff_output_fns_t", "struct svn_diff_output_fns_t *|svn_diff_output_fns_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_diff_t = {"_p_svn_diff_t", "struct svn_diff_t *|svn_diff_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_dirent_t = {"_p_svn_dirent_t", "struct svn_dirent_t *|svn_dirent_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_errno_t = {"_p_svn_errno_t", "enum svn_errno_t *|svn_errno_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_error_t = {"_p_svn_error_t", "struct svn_error_t *|svn_error_t *", 0, 0, 0};
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, 0};
static swig_type_info _swigt__p_svn_lock_t = {"_p_svn_lock_t", "struct svn_lock_t *|svn_lock_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_log_changed_path_t = {"_p_svn_log_changed_path_t", "struct svn_log_changed_path_t *|svn_log_changed_path_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_node_kind_t = {"_p_svn_node_kind_t", "enum svn_node_kind_t *|svn_node_kind_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_opt_revision_t = {"_p_svn_opt_revision_t", "struct svn_opt_revision_t *|svn_opt_revision_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_opt_revision_value_t = {"_p_svn_opt_revision_value_t", "union svn_opt_revision_value_t *|svn_opt_revision_value_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_opt_subcommand_desc_t = {"_p_svn_opt_subcommand_desc_t", "struct svn_opt_subcommand_desc_t *|svn_opt_subcommand_desc_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_prop_kind = {"_p_svn_prop_kind", "enum svn_prop_kind *|svn_prop_kind_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_prop_t = {"_p_svn_prop_t", "struct svn_prop_t *|svn_prop_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_stream_t = {"_p_svn_stream_t", "struct svn_stream_t *|svn_stream_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_string_t = {"_p_svn_string_t", "struct svn_string_t *|svn_string_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_stringbuf_t = {"_p_svn_stringbuf_t", "struct svn_stringbuf_t *|svn_stringbuf_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_version_checklist_t = {"_p_svn_version_checklist_t", "struct svn_version_checklist_t *|svn_version_checklist_t *", 0, 0, 0};
static swig_type_info _swigt__p_svn_version_t = {"_p_svn_version_t", "struct svn_version_t *|svn_version_t *", 0, 0, 0};
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, 0};
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|VALUE *", 0, 0, 0};
static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, 0};

static swig_type_info *swig_type_initial[] = {
  &_swigt__p_apr_allocator_t,
  &_swigt__p_apr_array_header_t,
  &_swigt__p_apr_file_t,
  &_swigt__p_apr_getopt_option_t,
  &_swigt__p_apr_getopt_t,
  &_swigt__p_apr_hash_t,
  &_swigt__p_apr_int32_t,
  &_swigt__p_apr_int64_t,
  &_swigt__p_apr_pool_t,
  &_swigt__p_apr_pool_wrapper_t,
  &_swigt__p_apr_size_t,
  &_swigt__p_apr_uint32_t,
  &_swigt__p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t,
  &_swigt__p_f_p_apr_uint32_t_p_p_void_p_void_svn_diff_datasource_e__p_svn_error_t,
  &_swigt__p_f_p_p_void_p_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t,
  &_swigt__p_f_p_p_void_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t,
  &_swigt__p_f_p_q_const__char_p_q_const__char_p_void__int,
  &_swigt__p_f_p_q_const__char_p_q_const__char_p_void_p_apr_pool_t__int,
  &_swigt__p_f_p_q_const__char_p_void__int,
  &_swigt__p_f_p_q_const__char_p_void_p_apr_pool_t__int,
  &_swigt__p_f_p_svn_boolean_t_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t,
  &_swigt__p_f_p_void__void,
  &_swigt__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t,
  &_swigt__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_p_svn_diff_t__p_svn_error_t,
  &_swigt__p_f_p_void_p_void__void,
  &_swigt__p_f_p_void_p_void_p_void_p_int__p_svn_error_t,
  &_swigt__p_f_p_void_svn_diff_datasource_e__p_svn_error_t,
  &_swigt__p_f_void__p_svn_version_t,
  &_swigt__p_int,
  &_swigt__p_long,
  &_swigt__p_p_apr_array_header_t,
  &_swigt__p_p_apr_file_t,
  &_swigt__p_p_apr_hash_t,
  &_swigt__p_p_char,
  &_swigt__p_p_svn_auth_baton_t,
  &_swigt__p_p_svn_auth_iterstate_t,
  &_swigt__p_p_svn_config_t,
  &_swigt__p_p_svn_diff_t,
  &_swigt__p_p_svn_stream_t,
  &_swigt__p_p_svn_string_t,
  &_swigt__p_p_svn_stringbuf_t,
  &_swigt__p_p_void,
  &_swigt__p_svn_auth_baton_t,
  &_swigt__p_svn_auth_cred_simple_t,
  &_swigt__p_svn_auth_cred_ssl_client_cert_pw_t,
  &_swigt__p_svn_auth_cred_ssl_client_cert_t,
  &_swigt__p_svn_auth_cred_ssl_server_trust_t,
  &_swigt__p_svn_auth_cred_username_t,
  &_swigt__p_svn_auth_iterstate_t,
  &_swigt__p_svn_auth_provider_object_t,
  &_swigt__p_svn_auth_provider_t,
  &_swigt__p_svn_auth_ssl_server_cert_info_t,
  &_swigt__p_svn_commit_info_t,
  &_swigt__p_svn_config_t,
  &_swigt__p_svn_diff_datasource_e,
  &_swigt__p_svn_diff_fns_t,
  &_swigt__p_svn_diff_output_fns_t,
  &_swigt__p_svn_diff_t,
  &_swigt__p_svn_dirent_t,
  &_swigt__p_svn_errno_t,
  &_swigt__p_svn_error_t,
  &_swigt__p_svn_io_dirent_t,
  &_swigt__p_svn_lock_t,
  &_swigt__p_svn_log_changed_path_t,
  &_swigt__p_svn_node_kind_t,
  &_swigt__p_svn_opt_revision_t,
  &_swigt__p_svn_opt_revision_value_t,
  &_swigt__p_svn_opt_subcommand_desc_t,
  &_swigt__p_svn_prop_kind,
  &_swigt__p_svn_prop_t,
  &_swigt__p_svn_stream_t,
  &_swigt__p_svn_string_t,
  &_swigt__p_svn_stringbuf_t,
  &_swigt__p_svn_version_checklist_t,
  &_swigt__p_svn_version_t,
  &_swigt__p_unsigned_char,
  &_swigt__p_unsigned_long,
  &_swigt__p_void,
};

static swig_cast_info _swigc__p_apr_allocator_t[] = {  {&_swigt__p_apr_allocator_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_array_header_t[] = {  {&_swigt__p_apr_array_header_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_file_t[] = {  {&_swigt__p_apr_file_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_getopt_option_t[] = {  {&_swigt__p_apr_getopt_option_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_getopt_t[] = {  {&_swigt__p_apr_getopt_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_hash_t[] = {  {&_swigt__p_apr_hash_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_int32_t[] = {  {&_swigt__p_apr_int32_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_int64_t[] = {  {&_swigt__p_apr_int64_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_pool_t[] = {  {&_swigt__p_apr_pool_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_pool_wrapper_t[] = {  {&_swigt__p_apr_pool_wrapper_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_size_t[] = {  {&_swigt__p_apr_size_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_apr_uint32_t[] = {  {&_swigt__p_apr_uint32_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t[] = {  {&_swigt__p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_apr_uint32_t_p_p_void_p_void_svn_diff_datasource_e__p_svn_error_t[] = {  {&_swigt__p_f_p_apr_uint32_t_p_p_void_p_void_svn_diff_datasource_e__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_p_void_p_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t[] = {  {&_swigt__p_f_p_p_void_p_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_p_void_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t[] = {  {&_swigt__p_f_p_p_void_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_q_const__char_p_q_const__char_p_void__int[] = {  {&_swigt__p_f_p_q_const__char_p_q_const__char_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_q_const__char_p_q_const__char_p_void_p_apr_pool_t__int[] = {  {&_swigt__p_f_p_q_const__char_p_q_const__char_p_void_p_apr_pool_t__int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_q_const__char_p_void__int[] = {  {&_swigt__p_f_p_q_const__char_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_q_const__char_p_void_p_apr_pool_t__int[] = {  {&_swigt__p_f_p_q_const__char_p_void_p_apr_pool_t__int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_svn_boolean_t_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t[] = {  {&_swigt__p_f_p_svn_boolean_t_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void__void[] = {  {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t[] = {  {&_swigt__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_p_svn_diff_t__p_svn_error_t[] = {  {&_swigt__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_p_svn_diff_t__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void_p_void__void[] = {  {&_swigt__p_f_p_void_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void_p_void_p_void_p_int__p_svn_error_t[] = {  {&_swigt__p_f_p_void_p_void_p_void_p_int__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void_svn_diff_datasource_e__p_svn_error_t[] = {  {&_swigt__p_f_p_void_svn_diff_datasource_e__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_void__p_svn_version_t[] = {  {&_swigt__p_f_void__p_svn_version_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long[] = {  {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_apr_array_header_t[] = {  {&_swigt__p_p_apr_array_header_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_apr_file_t[] = {  {&_swigt__p_p_apr_file_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_apr_hash_t[] = {  {&_swigt__p_p_apr_hash_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_char[] = {  {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_svn_auth_baton_t[] = {  {&_swigt__p_p_svn_auth_baton_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_svn_auth_iterstate_t[] = {  {&_swigt__p_p_svn_auth_iterstate_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_svn_config_t[] = {  {&_swigt__p_p_svn_config_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_svn_diff_t[] = {  {&_swigt__p_p_svn_diff_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_svn_stream_t[] = {  {&_swigt__p_p_svn_stream_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_svn_string_t[] = {  {&_swigt__p_p_svn_string_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_svn_stringbuf_t[] = {  {&_swigt__p_p_svn_stringbuf_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_void[] = {  {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_baton_t[] = {  {&_swigt__p_svn_auth_baton_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_cred_simple_t[] = {  {&_swigt__p_svn_auth_cred_simple_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_cred_ssl_client_cert_pw_t[] = {  {&_swigt__p_svn_auth_cred_ssl_client_cert_pw_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_cred_ssl_client_cert_t[] = {  {&_swigt__p_svn_auth_cred_ssl_client_cert_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_cred_ssl_server_trust_t[] = {  {&_swigt__p_svn_auth_cred_ssl_server_trust_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_cred_username_t[] = {  {&_swigt__p_svn_auth_cred_username_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_iterstate_t[] = {  {&_swigt__p_svn_auth_iterstate_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_provider_object_t[] = {  {&_swigt__p_svn_auth_provider_object_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_provider_t[] = {  {&_swigt__p_svn_auth_provider_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_auth_ssl_server_cert_info_t[] = {  {&_swigt__p_svn_auth_ssl_server_cert_info_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_commit_info_t[] = {  {&_swigt__p_svn_commit_info_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_config_t[] = {  {&_swigt__p_svn_config_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_diff_datasource_e[] = {  {&_swigt__p_svn_diff_datasource_e, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_diff_fns_t[] = {  {&_swigt__p_svn_diff_fns_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_diff_output_fns_t[] = {  {&_swigt__p_svn_diff_output_fns_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_diff_t[] = {  {&_swigt__p_svn_diff_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_dirent_t[] = {  {&_swigt__p_svn_dirent_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_errno_t[] = {  {&_swigt__p_svn_errno_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_error_t[] = {  {&_swigt__p_svn_error_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_io_dirent_t[] = {  {&_swigt__p_svn_io_dirent_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_lock_t[] = {  {&_swigt__p_svn_lock_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_log_changed_path_t[] = {  {&_swigt__p_svn_log_changed_path_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_node_kind_t[] = {  {&_swigt__p_svn_node_kind_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_opt_revision_t[] = {  {&_swigt__p_svn_opt_revision_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_opt_revision_value_t[] = {  {&_swigt__p_svn_opt_revision_value_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_opt_subcommand_desc_t[] = {  {&_swigt__p_svn_opt_subcommand_desc_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_prop_kind[] = {  {&_swigt__p_svn_prop_kind, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_prop_t[] = {  {&_swigt__p_svn_prop_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_stream_t[] = {  {&_swigt__p_svn_stream_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_string_t[] = {  {&_swigt__p_svn_string_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_stringbuf_t[] = {  {&_swigt__p_svn_stringbuf_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_version_checklist_t[] = {  {&_swigt__p_svn_version_checklist_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_svn_version_t[] = {  {&_swigt__p_svn_version_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_char[] = {  {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_long[] = {  {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};

static swig_cast_info *swig_cast_initial[] = {
  _swigc__p_apr_allocator_t,
  _swigc__p_apr_array_header_t,
  _swigc__p_apr_file_t,
  _swigc__p_apr_getopt_option_t,
  _swigc__p_apr_getopt_t,
  _swigc__p_apr_hash_t,
  _swigc__p_apr_int32_t,
  _swigc__p_apr_int64_t,
  _swigc__p_apr_pool_t,
  _swigc__p_apr_pool_wrapper_t,
  _swigc__p_apr_size_t,
  _swigc__p_apr_uint32_t,
  _swigc__p_f_p_apr_getopt_t_p_void_p_apr_pool_t__p_svn_error_t,
  _swigc__p_f_p_apr_uint32_t_p_p_void_p_void_svn_diff_datasource_e__p_svn_error_t,
  _swigc__p_f_p_p_void_p_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t,
  _swigc__p_f_p_p_void_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t,
  _swigc__p_f_p_q_const__char_p_q_const__char_p_void__int,
  _swigc__p_f_p_q_const__char_p_q_const__char_p_void_p_apr_pool_t__int,
  _swigc__p_f_p_q_const__char_p_void__int,
  _swigc__p_f_p_q_const__char_p_void_p_apr_pool_t__int,
  _swigc__p_f_p_svn_boolean_t_p_void_p_void_p_apr_hash_t_p_q_const__char_p_apr_pool_t__p_svn_error_t,
  _swigc__p_f_p_void__void,
  _swigc__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t__p_svn_error_t,
  _swigc__p_f_p_void_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_apr_off_t_p_svn_diff_t__p_svn_error_t,
  _swigc__p_f_p_void_p_void__void,
  _swigc__p_f_p_void_p_void_p_void_p_int__p_svn_error_t,
  _swigc__p_f_p_void_svn_diff_datasource_e__p_svn_error_t,
  _swigc__p_f_void__p_svn_version_t,
  _swigc__p_int,
  _swigc__p_long,
  _swigc__p_p_apr_array_header_t,
  _swigc__p_p_apr_file_t,
  _swigc__p_p_apr_hash_t,
  _swigc__p_p_char,
  _swigc__p_p_svn_auth_baton_t,
  _swigc__p_p_svn_auth_iterstate_t,
  _swigc__p_p_svn_config_t,
  _swigc__p_p_svn_diff_t,
  _swigc__p_p_svn_stream_t,
  _swigc__p_p_svn_string_t,
  _swigc__p_p_svn_stringbuf_t,
  _swigc__p_p_void,
  _swigc__p_svn_auth_baton_t,
  _swigc__p_svn_auth_cred_simple_t,
  _swigc__p_svn_auth_cred_ssl_client_cert_pw_t,
  _swigc__p_svn_auth_cred_ssl_client_cert_t,
  _swigc__p_svn_auth_cred_ssl_server_trust_t,
  _swigc__p_svn_auth_cred_username_t,
  _swigc__p_svn_auth_iterstate_t,
  _swigc__p_svn_auth_provider_object_t,
  _swigc__p_svn_auth_provider_t,
  _swigc__p_svn_auth_ssl_server_cert_info_t,
  _swigc__p_svn_commit_info_t,
  _swigc__p_svn_config_t,
  _swigc__p_svn_diff_datasource_e,
  _swigc__p_svn_diff_fns_t,
  _swigc__p_svn_diff_output_fns_t,
  _swigc__p_svn_diff_t,
  _swigc__p_svn_dirent_t,
  _swigc__p_svn_errno_t,
  _swigc__p_svn_error_t,
  _swigc__p_svn_io_dirent_t,
  _swigc__p_svn_lock_t,
  _swigc__p_svn_log_changed_path_t,
  _swigc__p_svn_node_kind_t,
  _swigc__p_svn_opt_revision_t,
  _swigc__p_svn_opt_revision_value_t,
  _swigc__p_svn_opt_subcommand_desc_t,
  _swigc__p_svn_prop_kind,
  _swigc__p_svn_prop_t,
  _swigc__p_svn_stream_t,
  _swigc__p_svn_string_t,
  _swigc__p_svn_stringbuf_t,
  _swigc__p_svn_version_checklist_t,
  _swigc__p_svn_version_t,
  _swigc__p_unsigned_char,
  _swigc__p_unsigned_long,
  _swigc__p_void,
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */

/*************************************************************************
 * Type initialization:
 * This problem is tough by the requirement that no dynamic 
 * memory is used. Also, since swig_type_info structures store pointers to 
 * swig_cast_info structures and swig_cast_info structures store pointers back
 * to swig_type_info structures, we need some lookup code at initialization. 
 * The idea is that swig generates all the structures that are needed. 
 * The runtime then collects these partially filled structures. 
 * The SWIG_InitializeModule function takes these initial arrays out of 
 * swig_module, and does all the lookup, filling in the swig_module.types
 * array with the correct data and linking the correct swig_cast_info
 * structures together.

 * The generated swig_type_info structures are assigned staticly to an initial 
 * array. We just loop though that array, and handle each type individually.
 * First we lookup if this type has been already loaded, and if so, use the
 * loaded structure instead of the generated one. Then we have to fill in the
 * cast linked list. The cast data is initially stored in something like a
 * two-dimensional array. Each row corresponds to a type (there are the same
 * number of rows as there are in the swig_type_initial array). Each entry in
 * a column is one of the swig_cast_info structures for that type.
 * The cast_initial array is actually an array of arrays, because each row has
 * a variable number of columns. So to actually build the cast linked list,
 * we find the array of casts associated with the type, and loop through it 
 * adding the casts to the list. The one last trick we need to do is making
 * sure the type pointer in the swig_cast_info struct is correct.

 * First off, we lookup the cast->type name to see if it is already loaded. 
 * There are three cases to handle:
 *  1) If the cast->type has already been loaded AND the type we are adding
 *     casting info to has not been loaded (it is in this module), THEN we
 *     replace the cast->type pointer with the type pointer that has already
 *     been loaded.
 *  2) If BOTH types (the one we are adding casting info to, and the 
 *     cast->type) are loaded, THEN the cast info has already been loaded by
 *     the previous module so we just ignore it.
 *  3) Finally, if cast->type has not already been loaded, then we add that
 *     swig_cast_info to the linked list (because the cast->type) pointer will
 *     be correct.
**/

#ifdef __cplusplus
extern "C" {
#endif

SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) {
  swig_type_info *type, *ret;
  swig_cast_info *cast;
  size_t i;
  swig_module_info *module_head;
  static int init_run = 0;

  clientdata = clientdata;

  if (init_run) return;
  init_run = 1;

  /* Initialize the swig_module */
  swig_module.type_initial = swig_type_initial;
  swig_module.cast_initial = swig_cast_initial;

  /* Try and load any already created modules */
  module_head = SWIG_GetModule(clientdata);
  if (module_head) {
    swig_module.next = module_head->next;
    module_head->next = &swig_module;
  } else {
    /* This is the first module loaded */
    swig_module.next = &swig_module;
    SWIG_SetModule(clientdata, &swig_module);
  }
		 
  /* Now work on filling in swig_module.types */
  for (i = 0; i < swig_module.size; ++i) {
    type = 0;

    /* if there is another module already loaded */
    if (swig_module.next != &swig_module) {
      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
    }
    if (type) {
      /* Overwrite clientdata field */
      if (swig_module.type_initial[i]->clientdata) type->clientdata = swig_module.type_initial[i]->clientdata;
    } else {
      type = swig_module.type_initial[i];
    }

    /* Insert casting types */
    cast = swig_module.cast_initial[i];
    while (cast->type) {
    
      /* Don't need to add information already in the list */
      ret = 0;
      if (swig_module.next != &swig_module) {
        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
      }
      if (ret && type == swig_module.type_initial[i]) {
        cast->type = ret;
        ret = 0;
      }
      
      if (!ret) {
        if (type->cast) {
          type->cast->prev = cast;
          cast->next = type->cast;
        }
        type->cast = cast;
      }

      cast++;
    }

    /* Set entry in modules->types array equal to the type */
    swig_module.types[i] = type;
  }
}

/* This function will propagate the clientdata field of type to
* any new swig_type_info structures that have been added into the list
* of equivalent types.  It is like calling
* SWIG_TypeClientData(type, clientdata) a second time.
*/
SWIGRUNTIME void
SWIG_PropagateClientData(void) {
  size_t i;
  swig_cast_info *equiv;
  static int init_run = 0;

  if (init_run) return;
  init_run = 1;

  for (i = 0; i < swig_module.size; i++) {
    if (swig_module.types[i]->clientdata) {
      equiv = swig_module.types[i]->cast;
      while (equiv) {
        if (!equiv->converter) {
          if (equiv->type && !equiv->type->clientdata)
            SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
        }
        equiv = equiv->next;
      }
    }
  }
}

#ifdef __cplusplus
}
#endif


#ifdef __cplusplus
extern "C"
#endif
SWIGEXPORT void Init_core(void) {
    int i;
    
    SWIG_InitRuntime();
    mCore = rb_define_module("Svn");
    mCore = rb_define_module_under(mCore, "Ext");
    mCore = rb_define_module_under(mCore, "Core");
    
    SWIG_InitializeModule(0);
    for (i = 0; i < swig_module.size; i++) {
        SWIG_define_class(swig_module.types[i]);
    }
    
    rb_define_const(mCore,"SVN_ERR_CATEGORY_SIZE", INT2NUM(5000));
    rb_define_const(mCore,"SVN_WARNING", INT2NUM(SVN_WARNING));
    rb_define_const(mCore,"SVN_ERR_BAD_CONTAINING_POOL", INT2NUM(SVN_ERR_BAD_CONTAINING_POOL));
    rb_define_const(mCore,"SVN_ERR_BAD_FILENAME", INT2NUM(SVN_ERR_BAD_FILENAME));
    rb_define_const(mCore,"SVN_ERR_BAD_URL", INT2NUM(SVN_ERR_BAD_URL));
    rb_define_const(mCore,"SVN_ERR_BAD_DATE", INT2NUM(SVN_ERR_BAD_DATE));
    rb_define_const(mCore,"SVN_ERR_BAD_MIME_TYPE", INT2NUM(SVN_ERR_BAD_MIME_TYPE));
    rb_define_const(mCore,"SVN_ERR_BAD_VERSION_FILE_FORMAT", INT2NUM(SVN_ERR_BAD_VERSION_FILE_FORMAT));
    rb_define_const(mCore,"SVN_ERR_XML_ATTRIB_NOT_FOUND", INT2NUM(SVN_ERR_XML_ATTRIB_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_XML_MISSING_ANCESTRY", INT2NUM(SVN_ERR_XML_MISSING_ANCESTRY));
    rb_define_const(mCore,"SVN_ERR_XML_UNKNOWN_ENCODING", INT2NUM(SVN_ERR_XML_UNKNOWN_ENCODING));
    rb_define_const(mCore,"SVN_ERR_XML_MALFORMED", INT2NUM(SVN_ERR_XML_MALFORMED));
    rb_define_const(mCore,"SVN_ERR_XML_UNESCAPABLE_DATA", INT2NUM(SVN_ERR_XML_UNESCAPABLE_DATA));
    rb_define_const(mCore,"SVN_ERR_IO_INCONSISTENT_EOL", INT2NUM(SVN_ERR_IO_INCONSISTENT_EOL));
    rb_define_const(mCore,"SVN_ERR_IO_UNKNOWN_EOL", INT2NUM(SVN_ERR_IO_UNKNOWN_EOL));
    rb_define_const(mCore,"SVN_ERR_IO_CORRUPT_EOL", INT2NUM(SVN_ERR_IO_CORRUPT_EOL));
    rb_define_const(mCore,"SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED", INT2NUM(SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED));
    rb_define_const(mCore,"SVN_ERR_IO_PIPE_FRAME_ERROR", INT2NUM(SVN_ERR_IO_PIPE_FRAME_ERROR));
    rb_define_const(mCore,"SVN_ERR_IO_PIPE_READ_ERROR", INT2NUM(SVN_ERR_IO_PIPE_READ_ERROR));
    rb_define_const(mCore,"SVN_ERR_IO_WRITE_ERROR", INT2NUM(SVN_ERR_IO_WRITE_ERROR));
    rb_define_const(mCore,"SVN_ERR_STREAM_UNEXPECTED_EOF", INT2NUM(SVN_ERR_STREAM_UNEXPECTED_EOF));
    rb_define_const(mCore,"SVN_ERR_STREAM_MALFORMED_DATA", INT2NUM(SVN_ERR_STREAM_MALFORMED_DATA));
    rb_define_const(mCore,"SVN_ERR_STREAM_UNRECOGNIZED_DATA", INT2NUM(SVN_ERR_STREAM_UNRECOGNIZED_DATA));
    rb_define_const(mCore,"SVN_ERR_NODE_UNKNOWN_KIND", INT2NUM(SVN_ERR_NODE_UNKNOWN_KIND));
    rb_define_const(mCore,"SVN_ERR_NODE_UNEXPECTED_KIND", INT2NUM(SVN_ERR_NODE_UNEXPECTED_KIND));
    rb_define_const(mCore,"SVN_ERR_ENTRY_NOT_FOUND", INT2NUM(SVN_ERR_ENTRY_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_ENTRY_EXISTS", INT2NUM(SVN_ERR_ENTRY_EXISTS));
    rb_define_const(mCore,"SVN_ERR_ENTRY_MISSING_REVISION", INT2NUM(SVN_ERR_ENTRY_MISSING_REVISION));
    rb_define_const(mCore,"SVN_ERR_ENTRY_MISSING_URL", INT2NUM(SVN_ERR_ENTRY_MISSING_URL));
    rb_define_const(mCore,"SVN_ERR_ENTRY_ATTRIBUTE_INVALID", INT2NUM(SVN_ERR_ENTRY_ATTRIBUTE_INVALID));
    rb_define_const(mCore,"SVN_ERR_WC_OBSTRUCTED_UPDATE", INT2NUM(SVN_ERR_WC_OBSTRUCTED_UPDATE));
    rb_define_const(mCore,"SVN_ERR_WC_UNWIND_MISMATCH", INT2NUM(SVN_ERR_WC_UNWIND_MISMATCH));
    rb_define_const(mCore,"SVN_ERR_WC_UNWIND_EMPTY", INT2NUM(SVN_ERR_WC_UNWIND_EMPTY));
    rb_define_const(mCore,"SVN_ERR_WC_UNWIND_NOT_EMPTY", INT2NUM(SVN_ERR_WC_UNWIND_NOT_EMPTY));
    rb_define_const(mCore,"SVN_ERR_WC_LOCKED", INT2NUM(SVN_ERR_WC_LOCKED));
    rb_define_const(mCore,"SVN_ERR_WC_NOT_LOCKED", INT2NUM(SVN_ERR_WC_NOT_LOCKED));
    rb_define_const(mCore,"SVN_ERR_WC_INVALID_LOCK", INT2NUM(SVN_ERR_WC_INVALID_LOCK));
    rb_define_const(mCore,"SVN_ERR_WC_NOT_DIRECTORY", INT2NUM(SVN_ERR_WC_NOT_DIRECTORY));
    rb_define_const(mCore,"SVN_ERR_WC_NOT_FILE", INT2NUM(SVN_ERR_WC_NOT_FILE));
    rb_define_const(mCore,"SVN_ERR_WC_BAD_ADM_LOG", INT2NUM(SVN_ERR_WC_BAD_ADM_LOG));
    rb_define_const(mCore,"SVN_ERR_WC_PATH_NOT_FOUND", INT2NUM(SVN_ERR_WC_PATH_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_WC_NOT_UP_TO_DATE", INT2NUM(SVN_ERR_WC_NOT_UP_TO_DATE));
    rb_define_const(mCore,"SVN_ERR_WC_LEFT_LOCAL_MOD", INT2NUM(SVN_ERR_WC_LEFT_LOCAL_MOD));
    rb_define_const(mCore,"SVN_ERR_WC_SCHEDULE_CONFLICT", INT2NUM(SVN_ERR_WC_SCHEDULE_CONFLICT));
    rb_define_const(mCore,"SVN_ERR_WC_PATH_FOUND", INT2NUM(SVN_ERR_WC_PATH_FOUND));
    rb_define_const(mCore,"SVN_ERR_WC_FOUND_CONFLICT", INT2NUM(SVN_ERR_WC_FOUND_CONFLICT));
    rb_define_const(mCore,"SVN_ERR_WC_CORRUPT", INT2NUM(SVN_ERR_WC_CORRUPT));
    rb_define_const(mCore,"SVN_ERR_WC_CORRUPT_TEXT_BASE", INT2NUM(SVN_ERR_WC_CORRUPT_TEXT_BASE));
    rb_define_const(mCore,"SVN_ERR_WC_NODE_KIND_CHANGE", INT2NUM(SVN_ERR_WC_NODE_KIND_CHANGE));
    rb_define_const(mCore,"SVN_ERR_WC_INVALID_OP_ON_CWD", INT2NUM(SVN_ERR_WC_INVALID_OP_ON_CWD));
    rb_define_const(mCore,"SVN_ERR_WC_BAD_ADM_LOG_START", INT2NUM(SVN_ERR_WC_BAD_ADM_LOG_START));
    rb_define_const(mCore,"SVN_ERR_WC_UNSUPPORTED_FORMAT", INT2NUM(SVN_ERR_WC_UNSUPPORTED_FORMAT));
    rb_define_const(mCore,"SVN_ERR_WC_BAD_PATH", INT2NUM(SVN_ERR_WC_BAD_PATH));
    rb_define_const(mCore,"SVN_ERR_WC_INVALID_SCHEDULE", INT2NUM(SVN_ERR_WC_INVALID_SCHEDULE));
    rb_define_const(mCore,"SVN_ERR_WC_INVALID_RELOCATION", INT2NUM(SVN_ERR_WC_INVALID_RELOCATION));
    rb_define_const(mCore,"SVN_ERR_WC_INVALID_SWITCH", INT2NUM(SVN_ERR_WC_INVALID_SWITCH));
    rb_define_const(mCore,"SVN_ERR_FS_GENERAL", INT2NUM(SVN_ERR_FS_GENERAL));
    rb_define_const(mCore,"SVN_ERR_FS_CLEANUP", INT2NUM(SVN_ERR_FS_CLEANUP));
    rb_define_const(mCore,"SVN_ERR_FS_ALREADY_OPEN", INT2NUM(SVN_ERR_FS_ALREADY_OPEN));
    rb_define_const(mCore,"SVN_ERR_FS_NOT_OPEN", INT2NUM(SVN_ERR_FS_NOT_OPEN));
    rb_define_const(mCore,"SVN_ERR_FS_CORRUPT", INT2NUM(SVN_ERR_FS_CORRUPT));
    rb_define_const(mCore,"SVN_ERR_FS_PATH_SYNTAX", INT2NUM(SVN_ERR_FS_PATH_SYNTAX));
    rb_define_const(mCore,"SVN_ERR_FS_NO_SUCH_REVISION", INT2NUM(SVN_ERR_FS_NO_SUCH_REVISION));
    rb_define_const(mCore,"SVN_ERR_FS_NO_SUCH_TRANSACTION", INT2NUM(SVN_ERR_FS_NO_SUCH_TRANSACTION));
    rb_define_const(mCore,"SVN_ERR_FS_NO_SUCH_ENTRY", INT2NUM(SVN_ERR_FS_NO_SUCH_ENTRY));
    rb_define_const(mCore,"SVN_ERR_FS_NO_SUCH_REPRESENTATION", INT2NUM(SVN_ERR_FS_NO_SUCH_REPRESENTATION));
    rb_define_const(mCore,"SVN_ERR_FS_NO_SUCH_STRING", INT2NUM(SVN_ERR_FS_NO_SUCH_STRING));
    rb_define_const(mCore,"SVN_ERR_FS_NO_SUCH_COPY", INT2NUM(SVN_ERR_FS_NO_SUCH_COPY));
    rb_define_const(mCore,"SVN_ERR_FS_TRANSACTION_NOT_MUTABLE", INT2NUM(SVN_ERR_FS_TRANSACTION_NOT_MUTABLE));
    rb_define_const(mCore,"SVN_ERR_FS_NOT_FOUND", INT2NUM(SVN_ERR_FS_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_FS_ID_NOT_FOUND", INT2NUM(SVN_ERR_FS_ID_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_FS_NOT_ID", INT2NUM(SVN_ERR_FS_NOT_ID));
    rb_define_const(mCore,"SVN_ERR_FS_NOT_DIRECTORY", INT2NUM(SVN_ERR_FS_NOT_DIRECTORY));
    rb_define_const(mCore,"SVN_ERR_FS_NOT_FILE", INT2NUM(SVN_ERR_FS_NOT_FILE));
    rb_define_const(mCore,"SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT", INT2NUM(SVN_ERR_FS_NOT_SINGLE_PATH_COMPONENT));
    rb_define_const(mCore,"SVN_ERR_FS_NOT_MUTABLE", INT2NUM(SVN_ERR_FS_NOT_MUTABLE));
    rb_define_const(mCore,"SVN_ERR_FS_ALREADY_EXISTS", INT2NUM(SVN_ERR_FS_ALREADY_EXISTS));
    rb_define_const(mCore,"SVN_ERR_FS_ROOT_DIR", INT2NUM(SVN_ERR_FS_ROOT_DIR));
    rb_define_const(mCore,"SVN_ERR_FS_NOT_TXN_ROOT", INT2NUM(SVN_ERR_FS_NOT_TXN_ROOT));
    rb_define_const(mCore,"SVN_ERR_FS_NOT_REVISION_ROOT", INT2NUM(SVN_ERR_FS_NOT_REVISION_ROOT));
    rb_define_const(mCore,"SVN_ERR_FS_CONFLICT", INT2NUM(SVN_ERR_FS_CONFLICT));
    rb_define_const(mCore,"SVN_ERR_FS_REP_CHANGED", INT2NUM(SVN_ERR_FS_REP_CHANGED));
    rb_define_const(mCore,"SVN_ERR_FS_REP_NOT_MUTABLE", INT2NUM(SVN_ERR_FS_REP_NOT_MUTABLE));
    rb_define_const(mCore,"SVN_ERR_FS_MALFORMED_SKEL", INT2NUM(SVN_ERR_FS_MALFORMED_SKEL));
    rb_define_const(mCore,"SVN_ERR_FS_TXN_OUT_OF_DATE", INT2NUM(SVN_ERR_FS_TXN_OUT_OF_DATE));
    rb_define_const(mCore,"SVN_ERR_FS_BERKELEY_DB", INT2NUM(SVN_ERR_FS_BERKELEY_DB));
    rb_define_const(mCore,"SVN_ERR_FS_BERKELEY_DB_DEADLOCK", INT2NUM(SVN_ERR_FS_BERKELEY_DB_DEADLOCK));
    rb_define_const(mCore,"SVN_ERR_FS_TRANSACTION_DEAD", INT2NUM(SVN_ERR_FS_TRANSACTION_DEAD));
    rb_define_const(mCore,"SVN_ERR_FS_TRANSACTION_NOT_DEAD", INT2NUM(SVN_ERR_FS_TRANSACTION_NOT_DEAD));
    rb_define_const(mCore,"SVN_ERR_FS_UNKNOWN_FS_TYPE", INT2NUM(SVN_ERR_FS_UNKNOWN_FS_TYPE));
    rb_define_const(mCore,"SVN_ERR_FS_NO_USER", INT2NUM(SVN_ERR_FS_NO_USER));
    rb_define_const(mCore,"SVN_ERR_FS_PATH_ALREADY_LOCKED", INT2NUM(SVN_ERR_FS_PATH_ALREADY_LOCKED));
    rb_define_const(mCore,"SVN_ERR_FS_PATH_NOT_LOCKED", INT2NUM(SVN_ERR_FS_PATH_NOT_LOCKED));
    rb_define_const(mCore,"SVN_ERR_FS_BAD_LOCK_TOKEN", INT2NUM(SVN_ERR_FS_BAD_LOCK_TOKEN));
    rb_define_const(mCore,"SVN_ERR_FS_NO_LOCK_TOKEN", INT2NUM(SVN_ERR_FS_NO_LOCK_TOKEN));
    rb_define_const(mCore,"SVN_ERR_FS_LOCK_OWNER_MISMATCH", INT2NUM(SVN_ERR_FS_LOCK_OWNER_MISMATCH));
    rb_define_const(mCore,"SVN_ERR_FS_NO_SUCH_LOCK", INT2NUM(SVN_ERR_FS_NO_SUCH_LOCK));
    rb_define_const(mCore,"SVN_ERR_FS_LOCK_EXPIRED", INT2NUM(SVN_ERR_FS_LOCK_EXPIRED));
    rb_define_const(mCore,"SVN_ERR_FS_OUT_OF_DATE", INT2NUM(SVN_ERR_FS_OUT_OF_DATE));
    rb_define_const(mCore,"SVN_ERR_FS_UNSUPPORTED_FORMAT", INT2NUM(SVN_ERR_FS_UNSUPPORTED_FORMAT));
    rb_define_const(mCore,"SVN_ERR_REPOS_LOCKED", INT2NUM(SVN_ERR_REPOS_LOCKED));
    rb_define_const(mCore,"SVN_ERR_REPOS_HOOK_FAILURE", INT2NUM(SVN_ERR_REPOS_HOOK_FAILURE));
    rb_define_const(mCore,"SVN_ERR_REPOS_BAD_ARGS", INT2NUM(SVN_ERR_REPOS_BAD_ARGS));
    rb_define_const(mCore,"SVN_ERR_REPOS_NO_DATA_FOR_REPORT", INT2NUM(SVN_ERR_REPOS_NO_DATA_FOR_REPORT));
    rb_define_const(mCore,"SVN_ERR_REPOS_BAD_REVISION_REPORT", INT2NUM(SVN_ERR_REPOS_BAD_REVISION_REPORT));
    rb_define_const(mCore,"SVN_ERR_REPOS_UNSUPPORTED_VERSION", INT2NUM(SVN_ERR_REPOS_UNSUPPORTED_VERSION));
    rb_define_const(mCore,"SVN_ERR_REPOS_DISABLED_FEATURE", INT2NUM(SVN_ERR_REPOS_DISABLED_FEATURE));
    rb_define_const(mCore,"SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED", INT2NUM(SVN_ERR_REPOS_POST_COMMIT_HOOK_FAILED));
    rb_define_const(mCore,"SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED", INT2NUM(SVN_ERR_REPOS_POST_LOCK_HOOK_FAILED));
    rb_define_const(mCore,"SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED", INT2NUM(SVN_ERR_REPOS_POST_UNLOCK_HOOK_FAILED));
    rb_define_const(mCore,"SVN_ERR_RA_ILLEGAL_URL", INT2NUM(SVN_ERR_RA_ILLEGAL_URL));
    rb_define_const(mCore,"SVN_ERR_RA_NOT_AUTHORIZED", INT2NUM(SVN_ERR_RA_NOT_AUTHORIZED));
    rb_define_const(mCore,"SVN_ERR_RA_UNKNOWN_AUTH", INT2NUM(SVN_ERR_RA_UNKNOWN_AUTH));
    rb_define_const(mCore,"SVN_ERR_RA_NOT_IMPLEMENTED", INT2NUM(SVN_ERR_RA_NOT_IMPLEMENTED));
    rb_define_const(mCore,"SVN_ERR_RA_OUT_OF_DATE", INT2NUM(SVN_ERR_RA_OUT_OF_DATE));
    rb_define_const(mCore,"SVN_ERR_RA_NO_REPOS_UUID", INT2NUM(SVN_ERR_RA_NO_REPOS_UUID));
    rb_define_const(mCore,"SVN_ERR_RA_UNSUPPORTED_ABI_VERSION", INT2NUM(SVN_ERR_RA_UNSUPPORTED_ABI_VERSION));
    rb_define_const(mCore,"SVN_ERR_RA_NOT_LOCKED", INT2NUM(SVN_ERR_RA_NOT_LOCKED));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_SOCK_INIT", INT2NUM(SVN_ERR_RA_DAV_SOCK_INIT));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_CREATING_REQUEST", INT2NUM(SVN_ERR_RA_DAV_CREATING_REQUEST));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_REQUEST_FAILED", INT2NUM(SVN_ERR_RA_DAV_REQUEST_FAILED));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED", INT2NUM(SVN_ERR_RA_DAV_OPTIONS_REQ_FAILED));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_PROPS_NOT_FOUND", INT2NUM(SVN_ERR_RA_DAV_PROPS_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_ALREADY_EXISTS", INT2NUM(SVN_ERR_RA_DAV_ALREADY_EXISTS));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE", INT2NUM(SVN_ERR_RA_DAV_INVALID_CONFIG_VALUE));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_PATH_NOT_FOUND", INT2NUM(SVN_ERR_RA_DAV_PATH_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_PROPPATCH_FAILED", INT2NUM(SVN_ERR_RA_DAV_PROPPATCH_FAILED));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_MALFORMED_DATA", INT2NUM(SVN_ERR_RA_DAV_MALFORMED_DATA));
    rb_define_const(mCore,"SVN_ERR_RA_DAV_RESPONSE_HEADER_BADNESS", INT2NUM(SVN_ERR_RA_DAV_RESPONSE_HEADER_BADNESS));
    rb_define_const(mCore,"SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND", INT2NUM(SVN_ERR_RA_LOCAL_REPOS_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED", INT2NUM(SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED));
    rb_define_const(mCore,"SVN_ERR_RA_SVN_CMD_ERR", INT2NUM(SVN_ERR_RA_SVN_CMD_ERR));
    rb_define_const(mCore,"SVN_ERR_RA_SVN_UNKNOWN_CMD", INT2NUM(SVN_ERR_RA_SVN_UNKNOWN_CMD));
    rb_define_const(mCore,"SVN_ERR_RA_SVN_CONNECTION_CLOSED", INT2NUM(SVN_ERR_RA_SVN_CONNECTION_CLOSED));
    rb_define_const(mCore,"SVN_ERR_RA_SVN_IO_ERROR", INT2NUM(SVN_ERR_RA_SVN_IO_ERROR));
    rb_define_const(mCore,"SVN_ERR_RA_SVN_MALFORMED_DATA", INT2NUM(SVN_ERR_RA_SVN_MALFORMED_DATA));
    rb_define_const(mCore,"SVN_ERR_RA_SVN_REPOS_NOT_FOUND", INT2NUM(SVN_ERR_RA_SVN_REPOS_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_RA_SVN_BAD_VERSION", INT2NUM(SVN_ERR_RA_SVN_BAD_VERSION));
    rb_define_const(mCore,"SVN_ERR_AUTHN_CREDS_UNAVAILABLE", INT2NUM(SVN_ERR_AUTHN_CREDS_UNAVAILABLE));
    rb_define_const(mCore,"SVN_ERR_AUTHN_NO_PROVIDER", INT2NUM(SVN_ERR_AUTHN_NO_PROVIDER));
    rb_define_const(mCore,"SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED", INT2NUM(SVN_ERR_AUTHN_PROVIDERS_EXHAUSTED));
    rb_define_const(mCore,"SVN_ERR_AUTHN_CREDS_NOT_SAVED", INT2NUM(SVN_ERR_AUTHN_CREDS_NOT_SAVED));
    rb_define_const(mCore,"SVN_ERR_AUTHZ_ROOT_UNREADABLE", INT2NUM(SVN_ERR_AUTHZ_ROOT_UNREADABLE));
    rb_define_const(mCore,"SVN_ERR_AUTHZ_UNREADABLE", INT2NUM(SVN_ERR_AUTHZ_UNREADABLE));
    rb_define_const(mCore,"SVN_ERR_AUTHZ_PARTIALLY_READABLE", INT2NUM(SVN_ERR_AUTHZ_PARTIALLY_READABLE));
    rb_define_const(mCore,"SVN_ERR_AUTHZ_INVALID_CONFIG", INT2NUM(SVN_ERR_AUTHZ_INVALID_CONFIG));
    rb_define_const(mCore,"SVN_ERR_AUTHZ_UNWRITABLE", INT2NUM(SVN_ERR_AUTHZ_UNWRITABLE));
    rb_define_const(mCore,"SVN_ERR_SVNDIFF_INVALID_HEADER", INT2NUM(SVN_ERR_SVNDIFF_INVALID_HEADER));
    rb_define_const(mCore,"SVN_ERR_SVNDIFF_CORRUPT_WINDOW", INT2NUM(SVN_ERR_SVNDIFF_CORRUPT_WINDOW));
    rb_define_const(mCore,"SVN_ERR_SVNDIFF_BACKWARD_VIEW", INT2NUM(SVN_ERR_SVNDIFF_BACKWARD_VIEW));
    rb_define_const(mCore,"SVN_ERR_SVNDIFF_INVALID_OPS", INT2NUM(SVN_ERR_SVNDIFF_INVALID_OPS));
    rb_define_const(mCore,"SVN_ERR_SVNDIFF_UNEXPECTED_END", INT2NUM(SVN_ERR_SVNDIFF_UNEXPECTED_END));
    rb_define_const(mCore,"SVN_ERR_APMOD_MISSING_PATH_TO_FS", INT2NUM(SVN_ERR_APMOD_MISSING_PATH_TO_FS));
    rb_define_const(mCore,"SVN_ERR_APMOD_MALFORMED_URI", INT2NUM(SVN_ERR_APMOD_MALFORMED_URI));
    rb_define_const(mCore,"SVN_ERR_APMOD_ACTIVITY_NOT_FOUND", INT2NUM(SVN_ERR_APMOD_ACTIVITY_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_APMOD_BAD_BASELINE", INT2NUM(SVN_ERR_APMOD_BAD_BASELINE));
    rb_define_const(mCore,"SVN_ERR_APMOD_CONNECTION_ABORTED", INT2NUM(SVN_ERR_APMOD_CONNECTION_ABORTED));
    rb_define_const(mCore,"SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED", INT2NUM(SVN_ERR_CLIENT_VERSIONED_PATH_REQUIRED));
    rb_define_const(mCore,"SVN_ERR_CLIENT_RA_ACCESS_REQUIRED", INT2NUM(SVN_ERR_CLIENT_RA_ACCESS_REQUIRED));
    rb_define_const(mCore,"SVN_ERR_CLIENT_BAD_REVISION", INT2NUM(SVN_ERR_CLIENT_BAD_REVISION));
    rb_define_const(mCore,"SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL", INT2NUM(SVN_ERR_CLIENT_DUPLICATE_COMMIT_URL));
    rb_define_const(mCore,"SVN_ERR_CLIENT_IS_BINARY_FILE", INT2NUM(SVN_ERR_CLIENT_IS_BINARY_FILE));
    rb_define_const(mCore,"SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION", INT2NUM(SVN_ERR_CLIENT_INVALID_EXTERNALS_DESCRIPTION));
    rb_define_const(mCore,"SVN_ERR_CLIENT_MODIFIED", INT2NUM(SVN_ERR_CLIENT_MODIFIED));
    rb_define_const(mCore,"SVN_ERR_CLIENT_IS_DIRECTORY", INT2NUM(SVN_ERR_CLIENT_IS_DIRECTORY));
    rb_define_const(mCore,"SVN_ERR_CLIENT_REVISION_RANGE", INT2NUM(SVN_ERR_CLIENT_REVISION_RANGE));
    rb_define_const(mCore,"SVN_ERR_CLIENT_INVALID_RELOCATION", INT2NUM(SVN_ERR_CLIENT_INVALID_RELOCATION));
    rb_define_const(mCore,"SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE", INT2NUM(SVN_ERR_CLIENT_REVISION_AUTHOR_CONTAINS_NEWLINE));
    rb_define_const(mCore,"SVN_ERR_CLIENT_PROPERTY_NAME", INT2NUM(SVN_ERR_CLIENT_PROPERTY_NAME));
    rb_define_const(mCore,"SVN_ERR_CLIENT_UNRELATED_RESOURCES", INT2NUM(SVN_ERR_CLIENT_UNRELATED_RESOURCES));
    rb_define_const(mCore,"SVN_ERR_CLIENT_MISSING_LOCK_TOKEN", INT2NUM(SVN_ERR_CLIENT_MISSING_LOCK_TOKEN));
    rb_define_const(mCore,"SVN_ERR_BASE", INT2NUM(SVN_ERR_BASE));
    rb_define_const(mCore,"SVN_ERR_PLUGIN_LOAD_FAILURE", INT2NUM(SVN_ERR_PLUGIN_LOAD_FAILURE));
    rb_define_const(mCore,"SVN_ERR_MALFORMED_FILE", INT2NUM(SVN_ERR_MALFORMED_FILE));
    rb_define_const(mCore,"SVN_ERR_INCOMPLETE_DATA", INT2NUM(SVN_ERR_INCOMPLETE_DATA));
    rb_define_const(mCore,"SVN_ERR_INCORRECT_PARAMS", INT2NUM(SVN_ERR_INCORRECT_PARAMS));
    rb_define_const(mCore,"SVN_ERR_UNVERSIONED_RESOURCE", INT2NUM(SVN_ERR_UNVERSIONED_RESOURCE));
    rb_define_const(mCore,"SVN_ERR_TEST_FAILED", INT2NUM(SVN_ERR_TEST_FAILED));
    rb_define_const(mCore,"SVN_ERR_UNSUPPORTED_FEATURE", INT2NUM(SVN_ERR_UNSUPPORTED_FEATURE));
    rb_define_const(mCore,"SVN_ERR_BAD_PROP_KIND", INT2NUM(SVN_ERR_BAD_PROP_KIND));
    rb_define_const(mCore,"SVN_ERR_ILLEGAL_TARGET", INT2NUM(SVN_ERR_ILLEGAL_TARGET));
    rb_define_const(mCore,"SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT", INT2NUM(SVN_ERR_DELTA_MD5_CHECKSUM_ABSENT));
    rb_define_const(mCore,"SVN_ERR_DIR_NOT_EMPTY", INT2NUM(SVN_ERR_DIR_NOT_EMPTY));
    rb_define_const(mCore,"SVN_ERR_EXTERNAL_PROGRAM", INT2NUM(SVN_ERR_EXTERNAL_PROGRAM));
    rb_define_const(mCore,"SVN_ERR_SWIG_PY_EXCEPTION_SET", INT2NUM(SVN_ERR_SWIG_PY_EXCEPTION_SET));
    rb_define_const(mCore,"SVN_ERR_CHECKSUM_MISMATCH", INT2NUM(SVN_ERR_CHECKSUM_MISMATCH));
    rb_define_const(mCore,"SVN_ERR_CANCELLED", INT2NUM(SVN_ERR_CANCELLED));
    rb_define_const(mCore,"SVN_ERR_INVALID_DIFF_OPTION", INT2NUM(SVN_ERR_INVALID_DIFF_OPTION));
    rb_define_const(mCore,"SVN_ERR_PROPERTY_NOT_FOUND", INT2NUM(SVN_ERR_PROPERTY_NOT_FOUND));
    rb_define_const(mCore,"SVN_ERR_NO_AUTH_FILE_PATH", INT2NUM(SVN_ERR_NO_AUTH_FILE_PATH));
    rb_define_const(mCore,"SVN_ERR_VERSION_MISMATCH", INT2NUM(SVN_ERR_VERSION_MISMATCH));
    rb_define_const(mCore,"SVN_ERR_CL_ARG_PARSING_ERROR", INT2NUM(SVN_ERR_CL_ARG_PARSING_ERROR));
    rb_define_const(mCore,"SVN_ERR_CL_INSUFFICIENT_ARGS", INT2NUM(SVN_ERR_CL_INSUFFICIENT_ARGS));
    rb_define_const(mCore,"SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS", INT2NUM(SVN_ERR_CL_MUTUALLY_EXCLUSIVE_ARGS));
    rb_define_const(mCore,"SVN_ERR_CL_ADM_DIR_RESERVED", INT2NUM(SVN_ERR_CL_ADM_DIR_RESERVED));
    rb_define_const(mCore,"SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE", INT2NUM(SVN_ERR_CL_LOG_MESSAGE_IS_VERSIONED_FILE));
    rb_define_const(mCore,"SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME", INT2NUM(SVN_ERR_CL_LOG_MESSAGE_IS_PATHNAME));
    rb_define_const(mCore,"SVN_ERR_CL_COMMIT_IN_ADDED_DIR", INT2NUM(SVN_ERR_CL_COMMIT_IN_ADDED_DIR));
    rb_define_const(mCore,"SVN_ERR_CL_NO_EXTERNAL_EDITOR", INT2NUM(SVN_ERR_CL_NO_EXTERNAL_EDITOR));
    rb_define_const(mCore,"SVN_ERR_CL_BAD_LOG_MESSAGE", INT2NUM(SVN_ERR_CL_BAD_LOG_MESSAGE));
    rb_define_const(mCore,"SVN_ERR_CL_UNNECESSARY_LOG_MESSAGE", INT2NUM(SVN_ERR_CL_UNNECESSARY_LOG_MESSAGE));
    rb_define_const(mCore,"SVN_ERR_LAST", INT2NUM(SVN_ERR_LAST));
    rb_define_module_function(mCore, "svn_time_to_cstring", _wrap_svn_time_to_cstring, -1);
    rb_define_module_function(mCore, "svn_time_from_cstring", _wrap_svn_time_from_cstring, -1);
    rb_define_module_function(mCore, "svn_time_to_human_cstring", _wrap_svn_time_to_human_cstring, -1);
    rb_define_module_function(mCore, "svn_parse_date", _wrap_svn_parse_date, -1);
    rb_define_module_function(mCore, "svn_sleep_for_timestamps", _wrap_svn_sleep_for_timestamps, -1);
    
    cSvn_error_t.klass = rb_define_class_under(mCore, "Svn_error_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_error_t, (void *) &cSvn_error_t);
    rb_define_alloc_func(cSvn_error_t.klass, _wrap_svn_error_t_allocate);
    rb_define_method(cSvn_error_t.klass, "initialize", _wrap_new_svn_error_t, -1);
    rb_define_method(cSvn_error_t.klass, "apr_err=", _wrap_svn_error_t_apr_err_set, -1);
    rb_define_method(cSvn_error_t.klass, "apr_err", _wrap_svn_error_t_apr_err_get, -1);
    rb_define_method(cSvn_error_t.klass, "message", _wrap_svn_error_t_message_get, -1);
    rb_define_method(cSvn_error_t.klass, "child=", _wrap_svn_error_t_child_set, -1);
    rb_define_method(cSvn_error_t.klass, "child", _wrap_svn_error_t_child_get, -1);
    rb_define_method(cSvn_error_t.klass, "pool=", _wrap_svn_error_t_pool_set, -1);
    rb_define_method(cSvn_error_t.klass, "pool", _wrap_svn_error_t_pool_get, -1);
    rb_define_method(cSvn_error_t.klass, "file", _wrap_svn_error_t_file_get, -1);
    rb_define_method(cSvn_error_t.klass, "line=", _wrap_svn_error_t_line_set, -1);
    rb_define_method(cSvn_error_t.klass, "line", _wrap_svn_error_t_line_get, -1);
    cSvn_error_t.mark = 0;
    cSvn_error_t.destroy = (void (*)(void *)) free_svn_error_t;
    rb_define_const(mCore,"Svn_node_none", INT2NUM(svn_node_none));
    rb_define_const(mCore,"Svn_node_file", INT2NUM(svn_node_file));
    rb_define_const(mCore,"Svn_node_dir", INT2NUM(svn_node_dir));
    rb_define_const(mCore,"Svn_node_unknown", INT2NUM(svn_node_unknown));
    rb_define_const(mCore,"SVN_REVNUM_T_FMT", rb_str_new2("ld"));
    rb_define_const(mCore,"TRUE", INT2NUM(1));
    rb_define_const(mCore,"FALSE", INT2NUM(0));
    rb_define_const(mCore,"Svn_nonrecursive", INT2NUM(svn_nonrecursive));
    rb_define_const(mCore,"Svn_recursive", INT2NUM(svn_recursive));
    
    cSvn_dirent_t.klass = rb_define_class_under(mCore, "Svn_dirent_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_dirent_t, (void *) &cSvn_dirent_t);
    rb_define_alloc_func(cSvn_dirent_t.klass, _wrap_svn_dirent_t_allocate);
    rb_define_method(cSvn_dirent_t.klass, "initialize", _wrap_new_svn_dirent_t, -1);
    rb_define_method(cSvn_dirent_t.klass, "kind=", _wrap_svn_dirent_t_kind_set, -1);
    rb_define_method(cSvn_dirent_t.klass, "kind", _wrap_svn_dirent_t_kind_get, -1);
    rb_define_method(cSvn_dirent_t.klass, "size=", _wrap_svn_dirent_t_size_set, -1);
    rb_define_method(cSvn_dirent_t.klass, "size", _wrap_svn_dirent_t_size_get, -1);
    rb_define_method(cSvn_dirent_t.klass, "has_props=", _wrap_svn_dirent_t_has_props_set, -1);
    rb_define_method(cSvn_dirent_t.klass, "has_props", _wrap_svn_dirent_t_has_props_get, -1);
    rb_define_method(cSvn_dirent_t.klass, "created_rev=", _wrap_svn_dirent_t_created_rev_set, -1);
    rb_define_method(cSvn_dirent_t.klass, "created_rev", _wrap_svn_dirent_t_created_rev_get, -1);
    rb_define_method(cSvn_dirent_t.klass, "time=", _wrap_svn_dirent_t_time_set, -1);
    rb_define_method(cSvn_dirent_t.klass, "time", _wrap_svn_dirent_t_time_get, -1);
    rb_define_method(cSvn_dirent_t.klass, "last_author", _wrap_svn_dirent_t_last_author_get, -1);
    cSvn_dirent_t.mark = 0;
    cSvn_dirent_t.destroy = (void (*)(void *)) free_svn_dirent_t;
    rb_define_const(mCore,"SVN_KEYWORD_MAX_LEN", INT2NUM(255));
    rb_define_const(mCore,"SVN_KEYWORD_REVISION_LONG", rb_str_new2("LastChangedRevision"));
    rb_define_const(mCore,"SVN_KEYWORD_REVISION_SHORT", rb_str_new2("Rev"));
    rb_define_const(mCore,"SVN_KEYWORD_REVISION_MEDIUM", rb_str_new2("Revision"));
    rb_define_const(mCore,"SVN_KEYWORD_DATE_LONG", rb_str_new2("LastChangedDate"));
    rb_define_const(mCore,"SVN_KEYWORD_DATE_SHORT", rb_str_new2("Date"));
    rb_define_const(mCore,"SVN_KEYWORD_AUTHOR_LONG", rb_str_new2("LastChangedBy"));
    rb_define_const(mCore,"SVN_KEYWORD_AUTHOR_SHORT", rb_str_new2("Author"));
    rb_define_const(mCore,"SVN_KEYWORD_URL_LONG", rb_str_new2("HeadURL"));
    rb_define_const(mCore,"SVN_KEYWORD_URL_SHORT", rb_str_new2("URL"));
    rb_define_const(mCore,"SVN_KEYWORD_ID", rb_str_new2("Id"));
    
    cSvn_commit_info_t.klass = rb_define_class_under(mCore, "Svn_commit_info_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_commit_info_t, (void *) &cSvn_commit_info_t);
    rb_define_alloc_func(cSvn_commit_info_t.klass, _wrap_svn_commit_info_t_allocate);
    rb_define_method(cSvn_commit_info_t.klass, "initialize", _wrap_new_svn_commit_info_t, -1);
    rb_define_method(cSvn_commit_info_t.klass, "revision=", _wrap_svn_commit_info_t_revision_set, -1);
    rb_define_method(cSvn_commit_info_t.klass, "revision", _wrap_svn_commit_info_t_revision_get, -1);
    rb_define_method(cSvn_commit_info_t.klass, "date=", _wrap_svn_commit_info_t_date_set, -1);
    rb_define_method(cSvn_commit_info_t.klass, "date", _wrap_svn_commit_info_t_date_get, -1);
    rb_define_method(cSvn_commit_info_t.klass, "author=", _wrap_svn_commit_info_t_author_set, -1);
    rb_define_method(cSvn_commit_info_t.klass, "author", _wrap_svn_commit_info_t_author_get, -1);
    rb_define_method(cSvn_commit_info_t.klass, "post_commit_err=", _wrap_svn_commit_info_t_post_commit_err_set, -1);
    rb_define_method(cSvn_commit_info_t.klass, "post_commit_err", _wrap_svn_commit_info_t_post_commit_err_get, -1);
    cSvn_commit_info_t.mark = 0;
    cSvn_commit_info_t.destroy = (void (*)(void *)) free_svn_commit_info_t;
    rb_define_module_function(mCore, "svn_create_commit_info", _wrap_svn_create_commit_info, -1);
    
    cSvn_log_changed_path_t.klass = rb_define_class_under(mCore, "Svn_log_changed_path_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_log_changed_path_t, (void *) &cSvn_log_changed_path_t);
    rb_define_alloc_func(cSvn_log_changed_path_t.klass, _wrap_svn_log_changed_path_t_allocate);
    rb_define_method(cSvn_log_changed_path_t.klass, "initialize", _wrap_new_svn_log_changed_path_t, -1);
    rb_define_method(cSvn_log_changed_path_t.klass, "action=", _wrap_svn_log_changed_path_t_action_set, -1);
    rb_define_method(cSvn_log_changed_path_t.klass, "action", _wrap_svn_log_changed_path_t_action_get, -1);
    rb_define_method(cSvn_log_changed_path_t.klass, "copyfrom_path", _wrap_svn_log_changed_path_t_copyfrom_path_get, -1);
    rb_define_method(cSvn_log_changed_path_t.klass, "copyfrom_rev=", _wrap_svn_log_changed_path_t_copyfrom_rev_set, -1);
    rb_define_method(cSvn_log_changed_path_t.klass, "copyfrom_rev", _wrap_svn_log_changed_path_t_copyfrom_rev_get, -1);
    cSvn_log_changed_path_t.mark = 0;
    cSvn_log_changed_path_t.destroy = (void (*)(void *)) free_svn_log_changed_path_t;
    rb_define_module_function(mCore, "svn_log_changed_path_dup", _wrap_svn_log_changed_path_dup, -1);
    rb_define_const(mCore,"SVN_STREAM_CHUNK_SIZE", INT2NUM(102400));
    rb_define_module_function(mCore, "svn_mime_type_validate", _wrap_svn_mime_type_validate, -1);
    rb_define_module_function(mCore, "svn_mime_type_is_binary", _wrap_svn_mime_type_is_binary, -1);
    
    cSvn_lock_t.klass = rb_define_class_under(mCore, "Svn_lock_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_lock_t, (void *) &cSvn_lock_t);
    rb_define_alloc_func(cSvn_lock_t.klass, _wrap_svn_lock_t_allocate);
    rb_define_method(cSvn_lock_t.klass, "initialize", _wrap_new_svn_lock_t, -1);
    rb_define_method(cSvn_lock_t.klass, "path=", _wrap_svn_lock_t_path_set, -1);
    rb_define_method(cSvn_lock_t.klass, "path", _wrap_svn_lock_t_path_get, -1);
    rb_define_method(cSvn_lock_t.klass, "token=", _wrap_svn_lock_t_token_set, -1);
    rb_define_method(cSvn_lock_t.klass, "token", _wrap_svn_lock_t_token_get, -1);
    rb_define_method(cSvn_lock_t.klass, "owner=", _wrap_svn_lock_t_owner_set, -1);
    rb_define_method(cSvn_lock_t.klass, "owner", _wrap_svn_lock_t_owner_get, -1);
    rb_define_method(cSvn_lock_t.klass, "comment=", _wrap_svn_lock_t_comment_set, -1);
    rb_define_method(cSvn_lock_t.klass, "comment", _wrap_svn_lock_t_comment_get, -1);
    rb_define_method(cSvn_lock_t.klass, "is_dav_comment=", _wrap_svn_lock_t_is_dav_comment_set, -1);
    rb_define_method(cSvn_lock_t.klass, "is_dav_comment", _wrap_svn_lock_t_is_dav_comment_get, -1);
    rb_define_method(cSvn_lock_t.klass, "creation_date=", _wrap_svn_lock_t_creation_date_set, -1);
    rb_define_method(cSvn_lock_t.klass, "creation_date", _wrap_svn_lock_t_creation_date_get, -1);
    rb_define_method(cSvn_lock_t.klass, "expiration_date=", _wrap_svn_lock_t_expiration_date_set, -1);
    rb_define_method(cSvn_lock_t.klass, "expiration_date", _wrap_svn_lock_t_expiration_date_get, -1);
    cSvn_lock_t.mark = 0;
    cSvn_lock_t.destroy = (void (*)(void *)) free_svn_lock_t;
    rb_define_module_function(mCore, "svn_lock_create", _wrap_svn_lock_create, -1);
    rb_define_module_function(mCore, "svn_lock_dup", _wrap_svn_lock_dup, -1);
    rb_define_const(mCore,"SWIG_SVN_INVALID_REVNUM", INT2NUM(-1));
    rb_define_const(mCore,"SWIG_SVN_IGNORED_REVNUM", INT2NUM(-1));
    rb_define_module_function(mCore, "apr_initialize", _wrap_apr_initialize, -1);
    rb_define_module_function(mCore, "apr_terminate", _wrap_apr_terminate, -1);
    rb_define_module_function(mCore, "apr_time_ansi_put", _wrap_apr_time_ansi_put, -1);
    rb_define_module_function(mCore, "apr_pool_destroy", _wrap_apr_pool_destroy, -1);
    rb_define_module_function(mCore, "apr_pool_clear", _wrap_apr_pool_clear, -1);
    rb_define_module_function(mCore, "apr_file_open_stdout", _wrap_apr_file_open_stdout, -1);
    rb_define_module_function(mCore, "apr_file_open_stderr", _wrap_apr_file_open_stderr, -1);
    rb_define_const(mCore,"SVN_ALLOCATOR_RECOMMENDED_MAX_FREE", INT2NUM((4096*1024)));
    rb_define_module_function(mCore, "svn_pool_create", _wrap_svn_pool_create, -1);
    rb_define_const(mCore,"SVN_VER_MAJOR", INT2NUM(1));
    rb_define_const(mCore,"SVN_VER_MINOR", INT2NUM(3));
    rb_define_const(mCore,"SVN_VER_PATCH", INT2NUM(2));
    rb_define_const(mCore,"SVN_VER_MICRO", INT2NUM(2));
    rb_define_const(mCore,"SVN_VER_LIBRARY", INT2NUM(1));
    rb_define_const(mCore,"SVN_VER_TAG", rb_str_new2(" (r19776)"));
    rb_define_const(mCore,"SVN_VER_NUMTAG", rb_str_new2("\0"));
    rb_define_const(mCore,"SVN_VER_REVISION", INT2NUM(19776));
    
    cSvn_version_t.klass = rb_define_class_under(mCore, "Svn_version_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_version_t, (void *) &cSvn_version_t);
    rb_define_alloc_func(cSvn_version_t.klass, _wrap_svn_version_t_allocate);
    rb_define_method(cSvn_version_t.klass, "initialize", _wrap_new_svn_version_t, -1);
    rb_define_method(cSvn_version_t.klass, "major=", _wrap_svn_version_t_major_set, -1);
    rb_define_method(cSvn_version_t.klass, "major", _wrap_svn_version_t_major_get, -1);
    rb_define_method(cSvn_version_t.klass, "minor=", _wrap_svn_version_t_minor_set, -1);
    rb_define_method(cSvn_version_t.klass, "minor", _wrap_svn_version_t_minor_get, -1);
    rb_define_method(cSvn_version_t.klass, "patch=", _wrap_svn_version_t_patch_set, -1);
    rb_define_method(cSvn_version_t.klass, "patch", _wrap_svn_version_t_patch_get, -1);
    rb_define_method(cSvn_version_t.klass, "tag=", _wrap_svn_version_t_tag_set, -1);
    rb_define_method(cSvn_version_t.klass, "tag", _wrap_svn_version_t_tag_get, -1);
    cSvn_version_t.mark = 0;
    cSvn_version_t.destroy = (void (*)(void *)) free_svn_version_t;
    rb_define_module_function(mCore, "svn_ver_compatible", _wrap_svn_ver_compatible, -1);
    rb_define_module_function(mCore, "svn_ver_equal", _wrap_svn_ver_equal, -1);
    
    cSvn_version_checklist_t.klass = rb_define_class_under(mCore, "Svn_version_checklist_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_version_checklist_t, (void *) &cSvn_version_checklist_t);
    rb_define_alloc_func(cSvn_version_checklist_t.klass, _wrap_svn_version_checklist_t_allocate);
    rb_define_method(cSvn_version_checklist_t.klass, "initialize", _wrap_new_svn_version_checklist_t, -1);
    rb_define_method(cSvn_version_checklist_t.klass, "label=", _wrap_svn_version_checklist_t_label_set, -1);
    rb_define_method(cSvn_version_checklist_t.klass, "label", _wrap_svn_version_checklist_t_label_get, -1);
    rb_define_method(cSvn_version_checklist_t.klass, "version_query=", _wrap_svn_version_checklist_t_version_query_set, -1);
    rb_define_method(cSvn_version_checklist_t.klass, "version_query", _wrap_svn_version_checklist_t_version_query_get, -1);
    cSvn_version_checklist_t.mark = 0;
    cSvn_version_checklist_t.destroy = (void (*)(void *)) free_svn_version_checklist_t;
    rb_define_module_function(mCore, "svn_ver_check_list", _wrap_svn_ver_check_list, -1);
    rb_define_module_function(mCore, "svn_subr_version", _wrap_svn_subr_version, -1);
    
    cSvn_prop_t.klass = rb_define_class_under(mCore, "Svn_prop_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_prop_t, (void *) &cSvn_prop_t);
    rb_define_alloc_func(cSvn_prop_t.klass, _wrap_svn_prop_t_allocate);
    rb_define_method(cSvn_prop_t.klass, "initialize", _wrap_new_svn_prop_t, -1);
    rb_define_method(cSvn_prop_t.klass, "name", _wrap_svn_prop_t_name_get, -1);
    rb_define_method(cSvn_prop_t.klass, "value", _wrap_svn_prop_t_value_get, -1);
    cSvn_prop_t.mark = 0;
    cSvn_prop_t.destroy = (void (*)(void *)) free_svn_prop_t;
    rb_define_module_function(mCore, "svn_prop_dup", _wrap_svn_prop_dup, -1);
    rb_define_module_function(mCore, "svn_prop_array_dup", _wrap_svn_prop_array_dup, -1);
    rb_define_const(mCore,"Svn_prop_entry_kind", INT2NUM(svn_prop_entry_kind));
    rb_define_const(mCore,"Svn_prop_wc_kind", INT2NUM(svn_prop_wc_kind));
    rb_define_const(mCore,"Svn_prop_regular_kind", INT2NUM(svn_prop_regular_kind));
    rb_define_module_function(mCore, "svn_property_kind", _wrap_svn_property_kind, -1);
    rb_define_module_function(mCore, "svn_prop_is_svn_prop", _wrap_svn_prop_is_svn_prop, -1);
    rb_define_module_function(mCore, "svn_prop_needs_translation", _wrap_svn_prop_needs_translation, -1);
    rb_define_module_function(mCore, "svn_categorize_props", _wrap_svn_categorize_props, -1);
    rb_define_module_function(mCore, "svn_prop_diffs", _wrap_svn_prop_diffs, -1);
    rb_define_const(mCore,"SVN_PROP_PREFIX", rb_str_new2("svn:"));
    rb_define_const(mCore,"SVN_PROP_MIME_TYPE", rb_str_new2("svn:mime-type"));
    rb_define_const(mCore,"SVN_PROP_IGNORE", rb_str_new2("svn:ignore"));
    rb_define_const(mCore,"SVN_PROP_EOL_STYLE", rb_str_new2("svn:eol-style"));
    rb_define_const(mCore,"SVN_PROP_KEYWORDS", rb_str_new2("svn:keywords"));
    rb_define_const(mCore,"SVN_PROP_EXECUTABLE", rb_str_new2("svn:executable"));
    rb_define_const(mCore,"SVN_PROP_EXECUTABLE_VALUE", rb_str_new2("*"));
    rb_define_const(mCore,"SVN_PROP_NEEDS_LOCK", rb_str_new2("svn:needs-lock"));
    rb_define_const(mCore,"SVN_PROP_NEEDS_LOCK_VALUE", rb_str_new2("*"));
    rb_define_const(mCore,"SVN_PROP_SPECIAL", rb_str_new2("svn:special"));
    rb_define_const(mCore,"SVN_PROP_SPECIAL_VALUE", rb_str_new2("*"));
    rb_define_const(mCore,"SVN_PROP_EXTERNALS", rb_str_new2("svn:externals"));
    rb_define_const(mCore,"SVN_PROP_WC_PREFIX", rb_str_new2("svn:wc:"));
    rb_define_const(mCore,"SVN_PROP_ENTRY_PREFIX", rb_str_new2("svn:entry:"));
    rb_define_const(mCore,"SVN_PROP_ENTRY_COMMITTED_REV", rb_str_new2("svn:entry:committed-rev"));
    rb_define_const(mCore,"SVN_PROP_ENTRY_COMMITTED_DATE", rb_str_new2("svn:entry:committed-date"));
    rb_define_const(mCore,"SVN_PROP_ENTRY_LAST_AUTHOR", rb_str_new2("svn:entry:last-author"));
    rb_define_const(mCore,"SVN_PROP_ENTRY_UUID", rb_str_new2("svn:entry:uuid"));
    rb_define_const(mCore,"SVN_PROP_ENTRY_LOCK_TOKEN", rb_str_new2("svn:entry:lock-token"));
    rb_define_const(mCore,"SVN_PROP_CUSTOM_PREFIX", rb_str_new2("svn:custom:"));
    rb_define_const(mCore,"SVN_PROP_REVISION_AUTHOR", rb_str_new2("svn:author"));
    rb_define_const(mCore,"SVN_PROP_REVISION_LOG", rb_str_new2("svn:log"));
    rb_define_const(mCore,"SVN_PROP_REVISION_DATE", rb_str_new2("svn:date"));
    rb_define_const(mCore,"SVN_PROP_REVISION_ORIG_DATE", rb_str_new2("svn:original-date"));
    rb_define_const(mCore,"SVN_PROP_REVISION_AUTOVERSIONED", rb_str_new2("svn:autoversioned"));
    rb_define_const(mCore,"SVN_OPT_MAX_ALIASES", INT2NUM(3));
    rb_define_const(mCore,"SVN_OPT_MAX_OPTIONS", INT2NUM(50));
    rb_define_const(mCore,"SVN_OPT_FIRST_LONGOPT_ID", INT2NUM(256));
    
    cSvn_opt_subcommand_desc_t.klass = rb_define_class_under(mCore, "Svn_opt_subcommand_desc_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_opt_subcommand_desc_t, (void *) &cSvn_opt_subcommand_desc_t);
    rb_define_alloc_func(cSvn_opt_subcommand_desc_t.klass, _wrap_svn_opt_subcommand_desc_t_allocate);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "initialize", _wrap_new_svn_opt_subcommand_desc_t, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "name=", _wrap_svn_opt_subcommand_desc_t_name_set, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "name", _wrap_svn_opt_subcommand_desc_t_name_get, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "cmd_func=", _wrap_svn_opt_subcommand_desc_t_cmd_func_set, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "cmd_func", _wrap_svn_opt_subcommand_desc_t_cmd_func_get, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "aliases=", _wrap_svn_opt_subcommand_desc_t_aliases_set, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "aliases", _wrap_svn_opt_subcommand_desc_t_aliases_get, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "help=", _wrap_svn_opt_subcommand_desc_t_help_set, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "help", _wrap_svn_opt_subcommand_desc_t_help_get, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "valid_options=", _wrap_svn_opt_subcommand_desc_t_valid_options_set, -1);
    rb_define_method(cSvn_opt_subcommand_desc_t.klass, "valid_options", _wrap_svn_opt_subcommand_desc_t_valid_options_get, -1);
    cSvn_opt_subcommand_desc_t.mark = 0;
    cSvn_opt_subcommand_desc_t.destroy = (void (*)(void *)) free_svn_opt_subcommand_desc_t;
    rb_define_module_function(mCore, "svn_opt_get_canonical_subcommand", _wrap_svn_opt_get_canonical_subcommand, -1);
    rb_define_module_function(mCore, "svn_opt_get_option_from_code", _wrap_svn_opt_get_option_from_code, -1);
    rb_define_module_function(mCore, "svn_opt_subcommand_takes_option", _wrap_svn_opt_subcommand_takes_option, -1);
    rb_define_module_function(mCore, "svn_opt_format_option", _wrap_svn_opt_format_option, -1);
    rb_define_module_function(mCore, "svn_opt_subcommand_help", _wrap_svn_opt_subcommand_help, -1);
    rb_define_const(mCore,"Svn_opt_revision_unspecified", INT2NUM(svn_opt_revision_unspecified));
    rb_define_const(mCore,"Svn_opt_revision_number", INT2NUM(svn_opt_revision_number));
    rb_define_const(mCore,"Svn_opt_revision_date", INT2NUM(svn_opt_revision_date));
    rb_define_const(mCore,"Svn_opt_revision_committed", INT2NUM(svn_opt_revision_committed));
    rb_define_const(mCore,"Svn_opt_revision_previous", INT2NUM(svn_opt_revision_previous));
    rb_define_const(mCore,"Svn_opt_revision_base", INT2NUM(svn_opt_revision_base));
    rb_define_const(mCore,"Svn_opt_revision_working", INT2NUM(svn_opt_revision_working));
    rb_define_const(mCore,"Svn_opt_revision_head", INT2NUM(svn_opt_revision_head));
    
    cSvn_opt_revision_value_t.klass = rb_define_class_under(mCore, "Svn_opt_revision_value_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_opt_revision_value_t, (void *) &cSvn_opt_revision_value_t);
    rb_define_alloc_func(cSvn_opt_revision_value_t.klass, _wrap_svn_opt_revision_value_t_allocate);
    rb_define_method(cSvn_opt_revision_value_t.klass, "initialize", _wrap_new_svn_opt_revision_value_t, -1);
    rb_define_method(cSvn_opt_revision_value_t.klass, "number=", _wrap_svn_opt_revision_value_t_number_set, -1);
    rb_define_method(cSvn_opt_revision_value_t.klass, "number", _wrap_svn_opt_revision_value_t_number_get, -1);
    rb_define_method(cSvn_opt_revision_value_t.klass, "date=", _wrap_svn_opt_revision_value_t_date_set, -1);
    rb_define_method(cSvn_opt_revision_value_t.klass, "date", _wrap_svn_opt_revision_value_t_date_get, -1);
    cSvn_opt_revision_value_t.mark = 0;
    cSvn_opt_revision_value_t.destroy = (void (*)(void *)) free_svn_opt_revision_value_t;
    
    cSvn_opt_revision_t.klass = rb_define_class_under(mCore, "Svn_opt_revision_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_opt_revision_t, (void *) &cSvn_opt_revision_t);
    rb_define_alloc_func(cSvn_opt_revision_t.klass, _wrap_svn_opt_revision_t_allocate);
    rb_define_method(cSvn_opt_revision_t.klass, "initialize", _wrap_new_svn_opt_revision_t, -1);
    rb_define_method(cSvn_opt_revision_t.klass, "kind=", _wrap_svn_opt_revision_t_kind_set, -1);
    rb_define_method(cSvn_opt_revision_t.klass, "kind", _wrap_svn_opt_revision_t_kind_get, -1);
    rb_define_method(cSvn_opt_revision_t.klass, "value=", _wrap_svn_opt_revision_t_value_set, -1);
    rb_define_method(cSvn_opt_revision_t.klass, "value", _wrap_svn_opt_revision_t_value_get, -1);
    cSvn_opt_revision_t.mark = 0;
    cSvn_opt_revision_t.destroy = (void (*)(void *)) free_svn_opt_revision_t;
    rb_define_module_function(mCore, "svn_opt_parse_revision", _wrap_svn_opt_parse_revision, -1);
    rb_define_module_function(mCore, "svn_opt_args_to_target_array2", _wrap_svn_opt_args_to_target_array2, -1);
    rb_define_module_function(mCore, "svn_opt_args_to_target_array", _wrap_svn_opt_args_to_target_array, -1);
    rb_define_module_function(mCore, "svn_opt_push_implicit_dot_target", _wrap_svn_opt_push_implicit_dot_target, -1);
    rb_define_module_function(mCore, "svn_opt_parse_num_args", _wrap_svn_opt_parse_num_args, -1);
    rb_define_module_function(mCore, "svn_opt_parse_all_args", _wrap_svn_opt_parse_all_args, -1);
    rb_define_module_function(mCore, "svn_opt_parse_path", _wrap_svn_opt_parse_path, -1);
    rb_define_module_function(mCore, "svn_opt_print_help", _wrap_svn_opt_print_help, -1);
    
    cSvn_auth_provider_t.klass = rb_define_class_under(mCore, "Svn_auth_provider_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_auth_provider_t, (void *) &cSvn_auth_provider_t);
    rb_define_alloc_func(cSvn_auth_provider_t.klass, _wrap_svn_auth_provider_t_allocate);
    rb_define_method(cSvn_auth_provider_t.klass, "initialize", _wrap_new_svn_auth_provider_t, -1);
    rb_define_method(cSvn_auth_provider_t.klass, "cred_kind=", _wrap_svn_auth_provider_t_cred_kind_set, -1);
    rb_define_method(cSvn_auth_provider_t.klass, "cred_kind", _wrap_svn_auth_provider_t_cred_kind_get, -1);
    rb_define_method(cSvn_auth_provider_t.klass, "first_credentials=", _wrap_svn_auth_provider_t_first_credentials_set, -1);
    rb_define_method(cSvn_auth_provider_t.klass, "first_credentials", _wrap_svn_auth_provider_t_first_credentials_get, -1);
    rb_define_method(cSvn_auth_provider_t.klass, "next_credentials=", _wrap_svn_auth_provider_t_next_credentials_set, -1);
    rb_define_method(cSvn_auth_provider_t.klass, "next_credentials", _wrap_svn_auth_provider_t_next_credentials_get, -1);
    rb_define_method(cSvn_auth_provider_t.klass, "save_credentials=", _wrap_svn_auth_provider_t_save_credentials_set, -1);
    rb_define_method(cSvn_auth_provider_t.klass, "save_credentials", _wrap_svn_auth_provider_t_save_credentials_get, -1);
    cSvn_auth_provider_t.mark = 0;
    cSvn_auth_provider_t.destroy = (void (*)(void *)) free_svn_auth_provider_t;
    
    cSvn_auth_provider_object_t.klass = rb_define_class_under(mCore, "Svn_auth_provider_object_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_auth_provider_object_t, (void *) &cSvn_auth_provider_object_t);
    rb_define_alloc_func(cSvn_auth_provider_object_t.klass, _wrap_svn_auth_provider_object_t_allocate);
    rb_define_method(cSvn_auth_provider_object_t.klass, "initialize", _wrap_new_svn_auth_provider_object_t, -1);
    rb_define_method(cSvn_auth_provider_object_t.klass, "vtable=", _wrap_svn_auth_provider_object_t_vtable_set, -1);
    rb_define_method(cSvn_auth_provider_object_t.klass, "vtable", _wrap_svn_auth_provider_object_t_vtable_get, -1);
    rb_define_method(cSvn_auth_provider_object_t.klass, "provider_baton=", _wrap_svn_auth_provider_object_t_provider_baton_set, -1);
    rb_define_method(cSvn_auth_provider_object_t.klass, "provider_baton", _wrap_svn_auth_provider_object_t_provider_baton_get, -1);
    cSvn_auth_provider_object_t.mark = 0;
    cSvn_auth_provider_object_t.destroy = (void (*)(void *)) free_svn_auth_provider_object_t;
    rb_define_const(mCore,"SVN_AUTH_CRED_SIMPLE", rb_str_new2("svn.simple"));
    
    cSvn_auth_cred_simple_t.klass = rb_define_class_under(mCore, "Svn_auth_cred_simple_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_auth_cred_simple_t, (void *) &cSvn_auth_cred_simple_t);
    rb_define_alloc_func(cSvn_auth_cred_simple_t.klass, _wrap_svn_auth_cred_simple_t_allocate);
    rb_define_method(cSvn_auth_cred_simple_t.klass, "initialize", _wrap_new_svn_auth_cred_simple_t, -1);
    rb_define_method(cSvn_auth_cred_simple_t.klass, "username=", _wrap_svn_auth_cred_simple_t_username_set, -1);
    rb_define_method(cSvn_auth_cred_simple_t.klass, "username", _wrap_svn_auth_cred_simple_t_username_get, -1);
    rb_define_method(cSvn_auth_cred_simple_t.klass, "password=", _wrap_svn_auth_cred_simple_t_password_set, -1);
    rb_define_method(cSvn_auth_cred_simple_t.klass, "password", _wrap_svn_auth_cred_simple_t_password_get, -1);
    rb_define_method(cSvn_auth_cred_simple_t.klass, "may_save=", _wrap_svn_auth_cred_simple_t_may_save_set, -1);
    rb_define_method(cSvn_auth_cred_simple_t.klass, "may_save", _wrap_svn_auth_cred_simple_t_may_save_get, -1);
    cSvn_auth_cred_simple_t.mark = 0;
    cSvn_auth_cred_simple_t.destroy = (void (*)(void *)) free_svn_auth_cred_simple_t;
    rb_define_const(mCore,"SVN_AUTH_CRED_USERNAME", rb_str_new2("svn.username"));
    
    cSvn_auth_cred_username_t.klass = rb_define_class_under(mCore, "Svn_auth_cred_username_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_auth_cred_username_t, (void *) &cSvn_auth_cred_username_t);
    rb_define_alloc_func(cSvn_auth_cred_username_t.klass, _wrap_svn_auth_cred_username_t_allocate);
    rb_define_method(cSvn_auth_cred_username_t.klass, "initialize", _wrap_new_svn_auth_cred_username_t, -1);
    rb_define_method(cSvn_auth_cred_username_t.klass, "username=", _wrap_svn_auth_cred_username_t_username_set, -1);
    rb_define_method(cSvn_auth_cred_username_t.klass, "username", _wrap_svn_auth_cred_username_t_username_get, -1);
    rb_define_method(cSvn_auth_cred_username_t.klass, "may_save=", _wrap_svn_auth_cred_username_t_may_save_set, -1);
    rb_define_method(cSvn_auth_cred_username_t.klass, "may_save", _wrap_svn_auth_cred_username_t_may_save_get, -1);
    cSvn_auth_cred_username_t.mark = 0;
    cSvn_auth_cred_username_t.destroy = (void (*)(void *)) free_svn_auth_cred_username_t;
    rb_define_const(mCore,"SVN_AUTH_CRED_SSL_CLIENT_CERT", rb_str_new2("svn.ssl.client-cert"));
    
    cSvn_auth_cred_ssl_client_cert_t.klass = rb_define_class_under(mCore, "Svn_auth_cred_ssl_client_cert_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_auth_cred_ssl_client_cert_t, (void *) &cSvn_auth_cred_ssl_client_cert_t);
    rb_define_alloc_func(cSvn_auth_cred_ssl_client_cert_t.klass, _wrap_svn_auth_cred_ssl_client_cert_t_allocate);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_t.klass, "initialize", _wrap_new_svn_auth_cred_ssl_client_cert_t, -1);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_t.klass, "cert_file=", _wrap_svn_auth_cred_ssl_client_cert_t_cert_file_set, -1);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_t.klass, "cert_file", _wrap_svn_auth_cred_ssl_client_cert_t_cert_file_get, -1);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_t.klass, "may_save=", _wrap_svn_auth_cred_ssl_client_cert_t_may_save_set, -1);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_t.klass, "may_save", _wrap_svn_auth_cred_ssl_client_cert_t_may_save_get, -1);
    cSvn_auth_cred_ssl_client_cert_t.mark = 0;
    cSvn_auth_cred_ssl_client_cert_t.destroy = (void (*)(void *)) free_svn_auth_cred_ssl_client_cert_t;
    rb_define_const(mCore,"SVN_AUTH_CRED_SSL_CLIENT_CERT_PW", rb_str_new2("svn.ssl.client-passphrase"));
    
    cSvn_auth_cred_ssl_client_cert_pw_t.klass = rb_define_class_under(mCore, "Svn_auth_cred_ssl_client_cert_pw_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_auth_cred_ssl_client_cert_pw_t, (void *) &cSvn_auth_cred_ssl_client_cert_pw_t);
    rb_define_alloc_func(cSvn_auth_cred_ssl_client_cert_pw_t.klass, _wrap_svn_auth_cred_ssl_client_cert_pw_t_allocate);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_pw_t.klass, "initialize", _wrap_new_svn_auth_cred_ssl_client_cert_pw_t, -1);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_pw_t.klass, "password=", _wrap_svn_auth_cred_ssl_client_cert_pw_t_password_set, -1);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_pw_t.klass, "password", _wrap_svn_auth_cred_ssl_client_cert_pw_t_password_get, -1);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_pw_t.klass, "may_save=", _wrap_svn_auth_cred_ssl_client_cert_pw_t_may_save_set, -1);
    rb_define_method(cSvn_auth_cred_ssl_client_cert_pw_t.klass, "may_save", _wrap_svn_auth_cred_ssl_client_cert_pw_t_may_save_get, -1);
    cSvn_auth_cred_ssl_client_cert_pw_t.mark = 0;
    cSvn_auth_cred_ssl_client_cert_pw_t.destroy = (void (*)(void *)) free_svn_auth_cred_ssl_client_cert_pw_t;
    rb_define_const(mCore,"SVN_AUTH_CRED_SSL_SERVER_TRUST", rb_str_new2("svn.ssl.server"));
    
    cSvn_auth_ssl_server_cert_info_t.klass = rb_define_class_under(mCore, "Svn_auth_ssl_server_cert_info_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_auth_ssl_server_cert_info_t, (void *) &cSvn_auth_ssl_server_cert_info_t);
    rb_define_alloc_func(cSvn_auth_ssl_server_cert_info_t.klass, _wrap_svn_auth_ssl_server_cert_info_t_allocate);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "initialize", _wrap_new_svn_auth_ssl_server_cert_info_t, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "hostname=", _wrap_svn_auth_ssl_server_cert_info_t_hostname_set, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "hostname", _wrap_svn_auth_ssl_server_cert_info_t_hostname_get, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "fingerprint=", _wrap_svn_auth_ssl_server_cert_info_t_fingerprint_set, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "fingerprint", _wrap_svn_auth_ssl_server_cert_info_t_fingerprint_get, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "valid_from=", _wrap_svn_auth_ssl_server_cert_info_t_valid_from_set, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "valid_from", _wrap_svn_auth_ssl_server_cert_info_t_valid_from_get, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "valid_until=", _wrap_svn_auth_ssl_server_cert_info_t_valid_until_set, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "valid_until", _wrap_svn_auth_ssl_server_cert_info_t_valid_until_get, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "issuer_dname=", _wrap_svn_auth_ssl_server_cert_info_t_issuer_dname_set, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "issuer_dname", _wrap_svn_auth_ssl_server_cert_info_t_issuer_dname_get, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "ascii_cert=", _wrap_svn_auth_ssl_server_cert_info_t_ascii_cert_set, -1);
    rb_define_method(cSvn_auth_ssl_server_cert_info_t.klass, "ascii_cert", _wrap_svn_auth_ssl_server_cert_info_t_ascii_cert_get, -1);
    cSvn_auth_ssl_server_cert_info_t.mark = 0;
    cSvn_auth_ssl_server_cert_info_t.destroy = (void (*)(void *)) free_svn_auth_ssl_server_cert_info_t;
    rb_define_module_function(mCore, "svn_auth_ssl_server_cert_info_dup", _wrap_svn_auth_ssl_server_cert_info_dup, -1);
    
    cSvn_auth_cred_ssl_server_trust_t.klass = rb_define_class_under(mCore, "Svn_auth_cred_ssl_server_trust_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_auth_cred_ssl_server_trust_t, (void *) &cSvn_auth_cred_ssl_server_trust_t);
    rb_define_alloc_func(cSvn_auth_cred_ssl_server_trust_t.klass, _wrap_svn_auth_cred_ssl_server_trust_t_allocate);
    rb_define_method(cSvn_auth_cred_ssl_server_trust_t.klass, "initialize", _wrap_new_svn_auth_cred_ssl_server_trust_t, -1);
    rb_define_method(cSvn_auth_cred_ssl_server_trust_t.klass, "may_save=", _wrap_svn_auth_cred_ssl_server_trust_t_may_save_set, -1);
    rb_define_method(cSvn_auth_cred_ssl_server_trust_t.klass, "may_save", _wrap_svn_auth_cred_ssl_server_trust_t_may_save_get, -1);
    rb_define_method(cSvn_auth_cred_ssl_server_trust_t.klass, "accepted_failures=", _wrap_svn_auth_cred_ssl_server_trust_t_accepted_failures_set, -1);
    rb_define_method(cSvn_auth_cred_ssl_server_trust_t.klass, "accepted_failures", _wrap_svn_auth_cred_ssl_server_trust_t_accepted_failures_get, -1);
    cSvn_auth_cred_ssl_server_trust_t.mark = 0;
    cSvn_auth_cred_ssl_server_trust_t.destroy = (void (*)(void *)) free_svn_auth_cred_ssl_server_trust_t;
    rb_define_const(mCore,"SVN_AUTH_SSL_NOTYETVALID", INT2NUM(0x00000001));
    rb_define_const(mCore,"SVN_AUTH_SSL_EXPIRED", INT2NUM(0x00000002));
    rb_define_const(mCore,"SVN_AUTH_SSL_CNMISMATCH", INT2NUM(0x00000004));
    rb_define_const(mCore,"SVN_AUTH_SSL_UNKNOWNCA", INT2NUM(0x00000008));
    rb_define_const(mCore,"SVN_AUTH_SSL_OTHER", INT2NUM(0x40000000));
    rb_define_module_function(mCore, "svn_auth_open", _wrap_svn_auth_open, -1);
    rb_define_module_function(mCore, "svn_auth_set_parameter", _wrap_svn_auth_set_parameter, -1);
    rb_define_module_function(mCore, "svn_auth_get_parameter", _wrap_svn_auth_get_parameter, -1);
    rb_define_const(mCore,"SVN_AUTH_PARAM_PREFIX", rb_str_new2("svn:auth:"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_DEFAULT_USERNAME", rb_str_new2("svn:auth:username"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_DEFAULT_PASSWORD", rb_str_new2("svn:auth:password"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_NON_INTERACTIVE", rb_str_new2("svn:auth:non-interactive"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_DONT_STORE_PASSWORDS", rb_str_new2("svn:auth:dont-store-passwords"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_NO_AUTH_CACHE", rb_str_new2("svn:auth:no-auth-cache"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_SSL_SERVER_FAILURES", rb_str_new2("svn:auth:ssl:failures"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_SSL_SERVER_CERT_INFO", rb_str_new2("svn:auth:ssl:cert-info"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_CONFIG", rb_str_new2("svn:auth:config"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_SERVER_GROUP", rb_str_new2("svn:auth:server-group"));
    rb_define_const(mCore,"SVN_AUTH_PARAM_CONFIG_DIR", rb_str_new2("svn:auth:config-dir"));
    rb_define_module_function(mCore, "svn_auth_first_credentials", _wrap_svn_auth_first_credentials, -1);
    rb_define_module_function(mCore, "svn_auth_next_credentials", _wrap_svn_auth_next_credentials, -1);
    rb_define_module_function(mCore, "svn_auth_save_credentials", _wrap_svn_auth_save_credentials, -1);
    rb_define_const(mCore,"SVN_CONFIG_CATEGORY_SERVERS", rb_str_new2("servers"));
    rb_define_const(mCore,"SVN_CONFIG_SECTION_GROUPS", rb_str_new2("groups"));
    rb_define_const(mCore,"SVN_CONFIG_SECTION_GLOBAL", rb_str_new2("global"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_HTTP_PROXY_HOST", rb_str_new2("http-proxy-host"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_HTTP_PROXY_PORT", rb_str_new2("http-proxy-port"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_HTTP_PROXY_USERNAME", rb_str_new2("http-proxy-username"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_HTTP_PROXY_PASSWORD", rb_str_new2("http-proxy-password"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_HTTP_PROXY_EXCEPTIONS", rb_str_new2("http-proxy-exceptions"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_HTTP_TIMEOUT", rb_str_new2("http-timeout"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_HTTP_COMPRESSION", rb_str_new2("http-compression"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_NEON_DEBUG_MASK", rb_str_new2("neon-debug-mask"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_SSL_AUTHORITY_FILES", rb_str_new2("ssl-authority-files"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_SSL_TRUST_DEFAULT_CA", rb_str_new2("ssl-trust-default-ca"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_SSL_CLIENT_CERT_FILE", rb_str_new2("ssl-client-cert-file"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_SSL_CLIENT_CERT_PASSWORD", rb_str_new2("ssl-client-cert-password"));
    rb_define_const(mCore,"SVN_CONFIG_CATEGORY_CONFIG", rb_str_new2("config"));
    rb_define_const(mCore,"SVN_CONFIG_SECTION_AUTH", rb_str_new2("auth"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_STORE_PASSWORDS", rb_str_new2("store-passwords"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_STORE_AUTH_CREDS", rb_str_new2("store-auth-creds"));
    rb_define_const(mCore,"SVN_CONFIG_SECTION_HELPERS", rb_str_new2("helpers"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_EDITOR_CMD", rb_str_new2("editor-cmd"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_DIFF_CMD", rb_str_new2("diff-cmd"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_DIFF3_CMD", rb_str_new2("diff3-cmd"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_DIFF3_HAS_PROGRAM_ARG", rb_str_new2("diff3-has-program-arg"));
    rb_define_const(mCore,"SVN_CONFIG_SECTION_MISCELLANY", rb_str_new2("miscellany"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_GLOBAL_IGNORES", rb_str_new2("global-ignores"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_LOG_ENCODING", rb_str_new2("log-encoding"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_USE_COMMIT_TIMES", rb_str_new2("use-commit-times"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_TEMPLATE_ROOT", rb_str_new2("template-root"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_ENABLE_AUTO_PROPS", rb_str_new2("enable-auto-props"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_NO_UNLOCK", rb_str_new2("no-unlock"));
    rb_define_const(mCore,"SVN_CONFIG_SECTION_TUNNELS", rb_str_new2("tunnels"));
    rb_define_const(mCore,"SVN_CONFIG_SECTION_AUTO_PROPS", rb_str_new2("auto-props"));
    rb_define_const(mCore,"SVN_CONFIG_SECTION_GENERAL", rb_str_new2("general"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_ANON_ACCESS", rb_str_new2("anon-access"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_AUTH_ACCESS", rb_str_new2("auth-access"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_PASSWORD_DB", rb_str_new2("password-db"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_REALM", rb_str_new2("realm"));
    rb_define_const(mCore,"SVN_CONFIG_OPTION_AUTHZ_DB", rb_str_new2("authz-db"));
    rb_define_const(mCore,"SVN_CONFIG_SECTION_USERS", rb_str_new2("users"));
    rb_define_const(mCore,"SVN_CONFIG_DEFAULT_GLOBAL_IGNORES", rb_str_new2("*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store"));
    rb_define_const(mCore,"SVN_CONFIG_TRUE", rb_str_new2("true"));
    rb_define_const(mCore,"SVN_CONFIG_FALSE", rb_str_new2("false"));
    rb_define_module_function(mCore, "svn_config_get_config", _wrap_svn_config_get_config, -1);
    rb_define_module_function(mCore, "svn_config_read", _wrap_svn_config_read, -1);
    rb_define_module_function(mCore, "svn_config_merge", _wrap_svn_config_merge, -1);
    rb_define_module_function(mCore, "svn_config_get", _wrap_svn_config_get, -1);
    rb_define_module_function(mCore, "svn_config_set", _wrap_svn_config_set, -1);
    rb_define_module_function(mCore, "svn_config_get_bool", _wrap_svn_config_get_bool, -1);
    rb_define_module_function(mCore, "svn_config_set_bool", _wrap_svn_config_set_bool, -1);
    rb_define_module_function(mCore, "svn_config_enumerate_sections", _wrap_svn_config_enumerate_sections, -1);
    rb_define_module_function(mCore, "svn_config_enumerate_sections2", _wrap_svn_config_enumerate_sections2, -1);
    rb_define_module_function(mCore, "svn_config_enumerate", _wrap_svn_config_enumerate, -1);
    rb_define_module_function(mCore, "svn_config_enumerate2", _wrap_svn_config_enumerate2, -1);
    rb_define_module_function(mCore, "svn_config_find_group", _wrap_svn_config_find_group, -1);
    rb_define_module_function(mCore, "svn_config_get_server_setting", _wrap_svn_config_get_server_setting, -1);
    rb_define_module_function(mCore, "svn_config_get_server_setting_int", _wrap_svn_config_get_server_setting_int, -1);
    rb_define_module_function(mCore, "svn_config_ensure", _wrap_svn_config_ensure, -1);
    rb_define_const(mCore,"SVN_CONFIG_REALMSTRING_KEY", rb_str_new2("svn:realmstring"));
    rb_define_module_function(mCore, "svn_config_read_auth_data", _wrap_svn_config_read_auth_data, -1);
    rb_define_module_function(mCore, "svn_config_write_auth_data", _wrap_svn_config_write_auth_data, -1);
    rb_define_module_function(mCore, "svn_utf_initialize", _wrap_svn_utf_initialize, -1);
    rb_define_module_function(mCore, "svn_utf_stringbuf_to_utf8", _wrap_svn_utf_stringbuf_to_utf8, -1);
    rb_define_module_function(mCore, "svn_utf_string_to_utf8", _wrap_svn_utf_string_to_utf8, -1);
    rb_define_module_function(mCore, "svn_utf_cstring_to_utf8", _wrap_svn_utf_cstring_to_utf8, -1);
    rb_define_module_function(mCore, "svn_utf_cstring_to_utf8_ex", _wrap_svn_utf_cstring_to_utf8_ex, -1);
    rb_define_module_function(mCore, "svn_utf_stringbuf_from_utf8", _wrap_svn_utf_stringbuf_from_utf8, -1);
    rb_define_module_function(mCore, "svn_utf_string_from_utf8", _wrap_svn_utf_string_from_utf8, -1);
    rb_define_module_function(mCore, "svn_utf_cstring_from_utf8", _wrap_svn_utf_cstring_from_utf8, -1);
    rb_define_module_function(mCore, "svn_utf_cstring_from_utf8_ex", _wrap_svn_utf_cstring_from_utf8_ex, -1);
    rb_define_module_function(mCore, "svn_utf_cstring_from_utf8_fuzzy", _wrap_svn_utf_cstring_from_utf8_fuzzy, -1);
    rb_define_module_function(mCore, "svn_utf_cstring_from_utf8_stringbuf", _wrap_svn_utf_cstring_from_utf8_stringbuf, -1);
    rb_define_module_function(mCore, "svn_utf_cstring_from_utf8_string", _wrap_svn_utf_cstring_from_utf8_string, -1);
    rb_define_module_function(mCore, "svn_nls_init", _wrap_svn_nls_init, -1);
    
    cSvn_io_dirent_t.klass = rb_define_class_under(mCore, "Svn_io_dirent_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_io_dirent_t, (void *) &cSvn_io_dirent_t);
    rb_define_alloc_func(cSvn_io_dirent_t.klass, _wrap_svn_io_dirent_t_allocate);
    rb_define_method(cSvn_io_dirent_t.klass, "initialize", _wrap_new_svn_io_dirent_t, -1);
    rb_define_method(cSvn_io_dirent_t.klass, "kind=", _wrap_svn_io_dirent_t_kind_set, -1);
    rb_define_method(cSvn_io_dirent_t.klass, "kind", _wrap_svn_io_dirent_t_kind_get, -1);
    rb_define_method(cSvn_io_dirent_t.klass, "special=", _wrap_svn_io_dirent_t_special_set, -1);
    rb_define_method(cSvn_io_dirent_t.klass, "special", _wrap_svn_io_dirent_t_special_get, -1);
    cSvn_io_dirent_t.mark = 0;
    cSvn_io_dirent_t.destroy = (void (*)(void *)) free_svn_io_dirent_t;
    rb_define_module_function(mCore, "svn_io_open_unique_file", _wrap_svn_io_open_unique_file, -1);
    rb_define_module_function(mCore, "svn_io_set_file_read_write_carefully", _wrap_svn_io_set_file_read_write_carefully, -1);
    rb_define_module_function(mCore, "svn_io_file_checksum", _wrap_svn_io_file_checksum, -1);
    rb_define_module_function(mCore, "svn_io_files_contents_same_p", _wrap_svn_io_files_contents_same_p, -1);
    rb_define_module_function(mCore, "svn_stream_empty", _wrap_svn_stream_empty, -1);
    rb_define_module_function(mCore, "svn_stream_from_aprfile", _wrap_svn_stream_from_aprfile, -1);
    rb_define_module_function(mCore, "svn_stream_for_stdout", _wrap_svn_stream_for_stdout, -1);
    rb_define_module_function(mCore, "svn_stream_from_stringbuf", _wrap_svn_stream_from_stringbuf, -1);
    rb_define_module_function(mCore, "svn_stream_compressed", _wrap_svn_stream_compressed, -1);
    rb_define_module_function(mCore, "svn_stream_read", _wrap_svn_stream_read, -1);
    rb_define_module_function(mCore, "svn_stream_write", _wrap_svn_stream_write, -1);
    rb_define_module_function(mCore, "svn_stream_close", _wrap_svn_stream_close, -1);
    rb_define_module_function(mCore, "svn_stream_readline", _wrap_svn_stream_readline, -1);
    rb_define_module_function(mCore, "svn_stream_copy", _wrap_svn_stream_copy, -1);
    rb_define_module_function(mCore, "svn_stringbuf_from_file", _wrap_svn_stringbuf_from_file, -1);
    rb_define_module_function(mCore, "svn_stringbuf_from_aprfile", _wrap_svn_stringbuf_from_aprfile, -1);
    rb_define_module_function(mCore, "svn_io_get_dirents2", _wrap_svn_io_get_dirents2, -1);
    rb_define_module_function(mCore, "svn_io_detect_mimetype", _wrap_svn_io_detect_mimetype, -1);
    rb_define_module_function(mCore, "svn_io_file_move", _wrap_svn_io_file_move, -1);
    
    cApr_pool_wrapper_t.klass = rb_define_class_under(mCore, "Apr_pool_wrapper_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_apr_pool_wrapper_t, (void *) &cApr_pool_wrapper_t);
    rb_define_alloc_func(cApr_pool_wrapper_t.klass, _wrap_apr_pool_wrapper_t_allocate);
    rb_define_method(cApr_pool_wrapper_t.klass, "initialize", _wrap_new_apr_pool_wrapper_t, -1);
    cApr_pool_wrapper_t.mark = 0;
    cApr_pool_wrapper_t.destroy = (void (*)(void *)) free_apr_pool_wrapper_t;
    rb_define_module_function(mCore, "svn_diff_version", _wrap_svn_diff_version, -1);
    rb_define_const(mCore,"Svn_diff_datasource_original", INT2NUM(svn_diff_datasource_original));
    rb_define_const(mCore,"Svn_diff_datasource_modified", INT2NUM(svn_diff_datasource_modified));
    rb_define_const(mCore,"Svn_diff_datasource_latest", INT2NUM(svn_diff_datasource_latest));
    rb_define_const(mCore,"Svn_diff_datasource_ancestor", INT2NUM(svn_diff_datasource_ancestor));
    
    cSvn_diff_fns_t.klass = rb_define_class_under(mCore, "Svn_diff_fns_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_diff_fns_t, (void *) &cSvn_diff_fns_t);
    rb_define_alloc_func(cSvn_diff_fns_t.klass, _wrap_svn_diff_fns_t_allocate);
    rb_define_method(cSvn_diff_fns_t.klass, "initialize", _wrap_new_svn_diff_fns_t, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "datasource_open=", _wrap_svn_diff_fns_t_datasource_open_set, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "datasource_open", _wrap_svn_diff_fns_t_datasource_open_get, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "datasource_close=", _wrap_svn_diff_fns_t_datasource_close_set, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "datasource_close", _wrap_svn_diff_fns_t_datasource_close_get, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "datasource_next_token=", _wrap_svn_diff_fns_t_datasource_get_next_token_set, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "datasource_next_token", _wrap_svn_diff_fns_t_datasource_get_next_token_get, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "token_compare=", _wrap_svn_diff_fns_t_token_compare_set, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "token_compare", _wrap_svn_diff_fns_t_token_compare_get, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "token_discard=", _wrap_svn_diff_fns_t_token_discard_set, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "token_discard", _wrap_svn_diff_fns_t_token_discard_get, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "token_discard_all=", _wrap_svn_diff_fns_t_token_discard_all_set, -1);
    rb_define_method(cSvn_diff_fns_t.klass, "token_discard_all", _wrap_svn_diff_fns_t_token_discard_all_get, -1);
    cSvn_diff_fns_t.mark = 0;
    cSvn_diff_fns_t.destroy = (void (*)(void *)) free_svn_diff_fns_t;
    rb_define_module_function(mCore, "svn_diff_diff", _wrap_svn_diff_diff, -1);
    rb_define_module_function(mCore, "svn_diff_diff3", _wrap_svn_diff_diff3, -1);
    rb_define_module_function(mCore, "svn_diff_diff4", _wrap_svn_diff_diff4, -1);
    rb_define_module_function(mCore, "svn_diff_contains_conflicts", _wrap_svn_diff_contains_conflicts, -1);
    rb_define_module_function(mCore, "svn_diff_contains_diffs", _wrap_svn_diff_contains_diffs, -1);
    
    cSvn_diff_output_fns_t.klass = rb_define_class_under(mCore, "Svn_diff_output_fns_t", rb_cObject);
    SWIG_TypeClientData(SWIGTYPE_p_svn_diff_output_fns_t, (void *) &cSvn_diff_output_fns_t);
    rb_define_alloc_func(cSvn_diff_output_fns_t.klass, _wrap_svn_diff_output_fns_t_allocate);
    rb_define_method(cSvn_diff_output_fns_t.klass, "initialize", _wrap_new_svn_diff_output_fns_t, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_common=", _wrap_svn_diff_output_fns_t_output_common_set, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_common", _wrap_svn_diff_output_fns_t_output_common_get, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_diff_modified=", _wrap_svn_diff_output_fns_t_output_diff_modified_set, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_diff_modified", _wrap_svn_diff_output_fns_t_output_diff_modified_get, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_diff_latest=", _wrap_svn_diff_output_fns_t_output_diff_latest_set, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_diff_latest", _wrap_svn_diff_output_fns_t_output_diff_latest_get, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_diff_common=", _wrap_svn_diff_output_fns_t_output_diff_common_set, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_diff_common", _wrap_svn_diff_output_fns_t_output_diff_common_get, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_conflict=", _wrap_svn_diff_output_fns_t_output_conflict_set, -1);
    rb_define_method(cSvn_diff_output_fns_t.klass, "output_conflict", _wrap_svn_diff_output_fns_t_output_conflict_get, -1);
    cSvn_diff_output_fns_t.mark = 0;
    cSvn_diff_output_fns_t.destroy = (void (*)(void *)) free_svn_diff_output_fns_t;
    rb_define_module_function(mCore, "svn_diff_output", _wrap_svn_diff_output, -1);
    rb_define_module_function(mCore, "svn_diff_file_diff", _wrap_svn_diff_file_diff, -1);
    rb_define_module_function(mCore, "svn_diff_file_diff3", _wrap_svn_diff_file_diff3, -1);
    rb_define_module_function(mCore, "svn_diff_file_diff4", _wrap_svn_diff_file_diff4, -1);
    rb_define_module_function(mCore, "svn_diff_file_output_unified2", _wrap_svn_diff_file_output_unified2, -1);
    rb_define_module_function(mCore, "svn_diff_file_output_unified", _wrap_svn_diff_file_output_unified, -1);
    rb_define_module_function(mCore, "svn_diff_file_output_merge", _wrap_svn_diff_file_output_merge, -1);
    rb_define_module_function(mCore, "svn_diff_fns_invoke_datasource_open", _wrap_svn_diff_fns_invoke_datasource_open, -1);
    rb_define_module_function(mCore, "svn_diff_fns_invoke_datasource_close", _wrap_svn_diff_fns_invoke_datasource_close, -1);
    rb_define_module_function(mCore, "svn_diff_fns_invoke_datasource_get_next_token", _wrap_svn_diff_fns_invoke_datasource_get_next_token, -1);
    rb_define_module_function(mCore, "svn_diff_fns_invoke_token_compare", _wrap_svn_diff_fns_invoke_token_compare, -1);
    rb_define_module_function(mCore, "svn_diff_output_fns_invoke_output_common", _wrap_svn_diff_output_fns_invoke_output_common, -1);
    rb_define_module_function(mCore, "svn_diff_output_fns_invoke_output_diff_modified", _wrap_svn_diff_output_fns_invoke_output_diff_modified, -1);
    rb_define_module_function(mCore, "svn_diff_output_fns_invoke_output_diff_latest", _wrap_svn_diff_output_fns_invoke_output_diff_latest, -1);
    rb_define_module_function(mCore, "svn_diff_output_fns_invoke_output_diff_common", _wrap_svn_diff_output_fns_invoke_output_diff_common, -1);
    rb_define_module_function(mCore, "svn_diff_output_fns_invoke_output_conflict", _wrap_svn_diff_output_fns_invoke_output_conflict, -1);
    rb_define_module_function(mCore, "svn_default_charset", _wrap_svn_default_charset, -1);
    rb_define_module_function(mCore, "svn_locale_charset", _wrap_svn_locale_charset, -1);
}

