diff --git a/ext/extconf.rb b/ext/extconf.rb index 4766eb1..71e1201 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -7,7 +7,9 @@ if ENV['SWIG'] puts "running SWIG" cmd = "swig #{INCLUDES} -ruby -autorename rlibmemcached.i" puts cmd - $stdout.write `#{cmd}` + res = `#{cmd}` + raise "SWIG fail!" if res.match(/rlibmemcached.i:\d+: Error:/) + $stdout.write res end $CFLAGS << INCLUDES @@ -32,6 +34,7 @@ find_library(*['memcached', 'memcached_server_add_with_weight', dir_config('libm raise "shared library 'libmemcached' not found" [ + 'libmemcached/visibility.h', 'libmemcached/memcached.h', 'libmemcached/memcached_constants.h', 'libmemcached/memcached_storage.h', diff --git a/ext/rlibmemcached.i b/ext/rlibmemcached.i index 03b320a..48c332b 100644 --- a/ext/rlibmemcached.i +++ b/ext/rlibmemcached.i @@ -1,5 +1,6 @@ %module rlibmemcached %{ +#include #include %} @@ -10,6 +11,7 @@ %warnfilter(SWIGWARN_RUBY_WRONG_NAME) memcached_result_st; %include "typemaps.i" +%include "libmemcached/visibility.h" // Register libmemcached's struct free function to prevent memory leaks %freefunc memcached_st "memcached_free"; @@ -22,6 +24,17 @@ %apply unsigned long long { uint64_t data, uint64_t cas }; // Array of strings map for multiget +%typemap(in) (const char **keys, size_t *key_length, size_t number_of_keys) { + int i; + Check_Type($input, T_ARRAY); + $3 = (unsigned int) RARRAY_LEN($input); + $2 = (size_t *) malloc(($3+1)*sizeof(size_t)); + $1 = (char **) malloc(($3+1)*sizeof(char *)); + for(i = 0; i < $3; i ++) { + $2[i] = RSTRING_LEN(RARRAY_PTR($input)[i]); + $1[i] = StringValuePtr(RARRAY_PTR($input)[i]); + } +} %typemap(in) (char **keys, size_t *key_length, unsigned int number_of_keys) { int i; Check_Type($input, T_ARRAY); @@ -33,7 +46,7 @@ $1[i] = StringValuePtr(RARRAY_PTR($input)[i]); } } -%typemap(freearg) (char **keys, size_t *key_length, unsigned int number_of_keys) { +%typemap(freearg) (char **keys, size_t *key_length, size_t number_of_keys) { free($1); free($2); } @@ -108,8 +121,10 @@ //// SWIG includes, for functions, constants, and structs +%include "libmemcached/visibility.h" %include "libmemcached/memcached.h" %include "libmemcached/memcached_constants.h" +%include "libmemcached/memcached_error.h" %include "libmemcached/memcached_get.h" %include "libmemcached/memcached_storage.h" %include "libmemcached/memcached_result.h" diff --git a/ext/rlibmemcached_wrap.c b/ext/rlibmemcached_wrap.c index cb3c872..489b37d 100644 --- a/ext/rlibmemcached_wrap.c +++ b/ext/rlibmemcached_wrap.c @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.36 + * Version 1.3.31 * * 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 @@ -16,14 +16,14 @@ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template +# if defined(__SUNPRO_CC) +# if (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -51,12 +51,6 @@ # endif #endif -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) @@ -112,12 +106,6 @@ # define _CRT_SECURE_NO_DEPRECATE #endif -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. @@ -125,14 +113,14 @@ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template +# if defined(__SUNPRO_CC) +# if (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -160,12 +148,6 @@ # endif #endif -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) @@ -221,12 +203,6 @@ # define _CRT_SECURE_NO_DEPRECATE #endif -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - /* ----------------------------------------------------------------------------- * swigrun.swg * @@ -236,7 +212,7 @@ /* 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 "4" +#define SWIG_RUNTIME_VERSION "3" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE @@ -271,7 +247,6 @@ /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 -#define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 @@ -412,10 +387,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) { extern "C" { #endif -typedef void *(*swig_converter_func)(void *, int *); +typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); -/* Structure to store information on one type */ +/* 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 */ @@ -460,7 +435,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1, while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } - return (int)((l1 - f1) - (l2 - f2)); + return (l1 - f1) - (l2 - f2); } /* @@ -542,8 +517,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * -SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { - return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); +SWIG_TypeCast(swig_cast_info *ty, void *ptr) { + return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); } /* @@ -816,15 +791,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #include -/* Remove global macros defined in Ruby's win32.h */ -#ifdef write -# undef write -#endif -#ifdef read -# undef read -#endif - - /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */ #ifndef NUM2LL #define NUM2LL(x) NUM2LONG((x)) @@ -853,44 +819,12 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #ifndef RSTRING_PTR # define RSTRING_PTR(x) RSTRING(x)->ptr #endif -#ifndef RSTRING_END -# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x)) -#endif #ifndef RARRAY_LEN # define RARRAY_LEN(x) RARRAY(x)->len #endif #ifndef RARRAY_PTR # define RARRAY_PTR(x) RARRAY(x)->ptr #endif -#ifndef RFLOAT_VALUE -# define RFLOAT_VALUE(x) RFLOAT(x)->value -#endif -#ifndef DOUBLE2NUM -# define DOUBLE2NUM(x) rb_float_new(x) -#endif -#ifndef RHASH_TBL -# define RHASH_TBL(x) (RHASH(x)->tbl) -#endif -#ifndef RHASH_ITER_LEV -# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev) -#endif -#ifndef RHASH_IFNONE -# define RHASH_IFNONE(x) (RHASH(x)->ifnone) -#endif -#ifndef RHASH_SIZE -# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries) -#endif -#ifndef RHASH_EMPTY_P -# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0) -#endif -#ifndef RSTRUCT_LEN -# define RSTRUCT_LEN(x) RSTRUCT(x)->len -#endif -#ifndef RSTRUCT_PTR -# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr -#endif - - /* * Need to be very careful about how these macros are defined, especially @@ -952,7 +886,6 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new") #endif -static VALUE _mSWIG = Qnil; /* ----------------------------------------------------------------------------- * error manipulation @@ -1043,71 +976,7 @@ SWIG_Ruby_ErrorType(int SWIG_code) { } -/* This function is called when a user inputs a wrong argument to - a method. - */ -SWIGINTERN -const char* Ruby_Format_TypeError( const char* msg, - const char* type, - const char* name, - const int argn, - VALUE input ) -{ - char buf[128]; - VALUE str; - VALUE asStr; - if ( msg && *msg ) - { - str = rb_str_new2(msg); - } - else - { - str = rb_str_new(NULL, 0); - } - str = rb_str_cat2( str, "Expected argument " ); - sprintf( buf, "%d of type ", argn-1 ); - str = rb_str_cat2( str, buf ); - str = rb_str_cat2( str, type ); - str = rb_str_cat2( str, ", but got " ); - str = rb_str_cat2( str, rb_obj_classname(input) ); - str = rb_str_cat2( str, " " ); - asStr = rb_inspect(input); - if ( RSTRING_LEN(asStr) > 30 ) - { - str = rb_str_cat( str, StringValuePtr(asStr), 30 ); - str = rb_str_cat2( str, "..." ); - } - else - { - str = rb_str_append( str, asStr ); - } - - if ( name ) - { - str = rb_str_cat2( str, "\n\tin SWIG method '" ); - str = rb_str_cat2( str, name ); - str = rb_str_cat2( str, "'" ); - } - - return StringValuePtr( str ); -} - -/* This function is called when an overloaded method fails */ -SWIGINTERN -void Ruby_Format_OverloadedError( - const int argc, - const int maxargs, - const char* method, - const char* prototypes - ) -{ - const char* msg = "Wrong # of arguments"; - if ( argc <= maxargs ) msg = "Wrong arguments"; - rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n" - "Possible C/C++ prototypes are:\n%s", - msg, method, prototypes); -} /* ----------------------------------------------------------------------------- * See the LICENSE file for information on copyright, usage and redistribution @@ -1125,54 +994,26 @@ void Ruby_Format_OverloadedError( extern "C" { #endif -/* Ruby 1.8 actually assumes the first case. */ -#if SIZEOF_VOIDP == SIZEOF_LONG -# define SWIG2NUM(v) LONG2NUM((unsigned long)v) -# define NUM2SWIG(x) (unsigned long)NUM2LONG(x) -#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG -# define SWIG2NUM(v) LL2NUM((unsigned long long)v) -# define NUM2SWIG(x) (unsigned long long)NUM2LL(x) -#else -# error sizeof(void*) is not the same as long or long long -#endif - /* Global Ruby hash table to store Trackings from C/C++ - structs to Ruby Objects. -*/ -static VALUE swig_ruby_trackings = Qnil; - -/* Global variable that stores a reference to the ruby - hash table delete function. */ -static ID swig_ruby_hash_delete; + structs to Ruby Objects. */ +static VALUE swig_ruby_trackings; + +/* Global variable that stores a reference to the ruby + hash table delete function. */ +static ID swig_ruby_hash_delete = 0; /* Setup a Ruby hash table to store Trackings */ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) { /* Create a ruby hash table to store Trackings from C++ - objects to Ruby objects. */ - - /* Try to see if some other .so has already created a - tracking hash table, which we keep hidden in an instance var - in the SWIG module. - This is done to allow multiple DSOs to share the same - tracking table. - */ - ID trackings_id = rb_intern( "@__trackings__" ); - VALUE verbose = rb_gv_get("VERBOSE"); - rb_gv_set("VERBOSE", Qfalse); - swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id ); - rb_gv_set("VERBOSE", verbose); - - /* No, it hasn't. Create one ourselves */ - if ( swig_ruby_trackings == Qnil ) - { - swig_ruby_trackings = rb_hash_new(); - rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings ); - } - - /* Now store a reference to the hash table delete function - so that we only have to look it up once.*/ - swig_ruby_hash_delete = rb_intern("delete"); + objects to Ruby objects. Also make sure to tell + the garabage collector about the hash table. */ + swig_ruby_trackings = rb_hash_new(); + rb_gc_register_address(&swig_ruby_trackings); + + /* Now store a reference to the hash table delete function + so that we only have to look it up once.*/ + swig_ruby_hash_delete = rb_intern("delete"); } /* Get a Ruby number to reference a pointer */ @@ -1182,7 +1023,8 @@ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) { a Ruby number object. */ /* Convert the pointer to a Ruby number */ - return SWIG2NUM(ptr); + unsigned long value = (unsigned long) ptr; + return LONG2NUM(value); } /* Get a Ruby number to reference an object */ @@ -1192,7 +1034,8 @@ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) { a Ruby number object. */ /* Convert the Object to a Ruby number */ - return SWIG2NUM(object); + unsigned long value = (unsigned long) object; + return LONG2NUM(value); } /* Get a Ruby object from a previously stored reference */ @@ -1200,8 +1043,9 @@ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) { /* The provided Ruby number object is a reference to the Ruby object we want.*/ - /* Convert the Ruby number to a Ruby object */ - return NUM2SWIG(reference); + /* First convert the Ruby number to a C number */ + unsigned long value = NUM2LONG(reference); + return (VALUE) value; } /* Add a Tracking from a C/C++ struct to a Ruby object */ @@ -1293,15 +1137,6 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { return target; } -/* For ruby1.8.4 and earlier. */ -#ifndef RUBY_INIT_STACK - RUBY_EXTERN void Init_stack(VALUE* addr); -# define RUBY_INIT_STACK \ - VALUE variable_in_this_stack_frame; \ - Init_stack(&variable_in_this_stack_frame); -#endif - - #ifdef __cplusplus } #endif @@ -1366,7 +1201,6 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value) #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty) -#include "assert.h" /* ----------------------------------------------------------------------------- * pointers/data manipulation @@ -1374,6 +1208,9 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) { #ifdef __cplusplus extern "C" { +#if 0 +} /* cc-mode */ +#endif #endif typedef struct { @@ -1385,44 +1222,10 @@ typedef struct { } swig_class; -/* Global pointer used to keep some internal SWIG stuff */ +static VALUE _mSWIG = Qnil; static VALUE _cSWIG_Pointer = Qnil; static VALUE swig_runtime_data_type_pointer = Qnil; -/* Global IDs used to keep some internal SWIG stuff */ -static ID swig_arity_id = 0; -static ID swig_call_id = 0; - -/* - If your swig extension is to be run within an embedded ruby and has - director callbacks, you should set -DRUBY_EMBEDDED during compilation. - This will reset ruby's stack frame on each entry point from the main - program the first time a virtual director function is invoked (in a - non-recursive way). - If this is not done, you run the risk of Ruby trashing the stack. -*/ - -#ifdef RUBY_EMBEDDED - -# define SWIG_INIT_STACK \ - if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \ - ++swig_virtual_calls; -# define SWIG_RELEASE_STACK --swig_virtual_calls; -# define Ruby_DirectorTypeMismatchException(x) \ - rb_raise( rb_eTypeError, x ); return c_result; - - static unsigned int swig_virtual_calls = 0; - -#else /* normal non-embedded extension */ - -# define SWIG_INIT_STACK -# define SWIG_RELEASE_STACK -# define Ruby_DirectorTypeMismatchException(x) \ - throw Swig::DirectorTypeMismatchException( x ); - -#endif /* RUBY_EMBEDDED */ - - SWIGRUNTIME VALUE getExceptionClass(void) { static int init = 0; @@ -1454,8 +1257,6 @@ SWIG_Ruby_InitRuntime(void) { if (_mSWIG == Qnil) { _mSWIG = rb_define_module("SWIG"); - swig_call_id = rb_intern("call"); - swig_arity_id = rb_intern("arity"); } } @@ -1479,7 +1280,7 @@ SWIGRUNTIME VALUE SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) { int own = flags & SWIG_POINTER_OWN; - int track; + char *klass_name; swig_class *sklass; VALUE klass; @@ -1492,15 +1293,14 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) sklass = (swig_class *) type->clientdata; /* Are we tracking this class and have we already returned this Ruby object? */ - track = sklass->trackObjects; - if (track) { + if (sklass->trackObjects) { obj = SWIG_RubyInstanceFor(ptr); /* Check the object's type and make sure it has the correct type. It might not in cases where methods do things like downcast methods. */ if (obj != Qnil) { - VALUE value = rb_iv_get(obj, "@__swigtype__"); + VALUE value = rb_iv_get(obj, "__swigtype__"); char* type_name = RSTRING_PTR(value); if (strcmp(type->name, type_name) == 0) { @@ -1510,13 +1310,10 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) } /* Create a new Ruby object */ - obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), - ( own ? VOIDFUNC(sklass->destroy) : - (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 ) - ), ptr); + obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), (own ? VOIDFUNC(sklass->destroy) : 0), ptr); /* If tracking is on for this class then track this object. */ - if (track) { + if (sklass->trackObjects) { SWIG_RubyAddTracking(ptr, obj); } } else { @@ -1526,7 +1323,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags) free((void *) klass_name); obj = Data_Wrap_Struct(klass, 0, 0, ptr); } - rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name)); + rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name)); return obj; } @@ -1538,7 +1335,7 @@ 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)); + rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name)); return obj; } @@ -1546,7 +1343,7 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type) SWIGRUNTIMEINLINE char * SWIG_Ruby_MangleStr(VALUE obj) { - VALUE stype = rb_iv_get(obj, "@__swigtype__"); + VALUE stype = rb_iv_get(obj, "__swigtype__"); return StringValuePtr(stype); } @@ -1628,11 +1425,8 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, tc = SWIG_TypeCheck(c, ty); if (!tc) { return SWIG_ERROR; - } else { - int newmemory = 0; - *ptr = SWIG_TypeCast(tc, vptr, &newmemory); - assert(!newmemory); /* newmemory handling not yet implemented */ } + *ptr = SWIG_TypeCast(tc, vptr); } else { *ptr = vptr; } @@ -1713,42 +1507,10 @@ SWIG_Ruby_SetModule(swig_module_info *pointer) rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer); } -/* This function can be used to check whether a proc or method or similarly - callable function has been passed. Usually used in a %typecheck, like: - - %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) { - $result = SWIG_Ruby_isCallable( $input ); - } - */ -SWIGINTERN -int SWIG_Ruby_isCallable( VALUE proc ) -{ - if ( rb_respond_to( proc, swig_call_id ) == Qtrue ) - return 1; - return 0; -} - -/* This function can be used to check the arity (number of arguments) - a proc or method can take. Usually used in a %typecheck. - Valid arities will be that equal to minimal or those < 0 - which indicate a variable number of parameters at the end. - */ -SWIGINTERN -int SWIG_Ruby_arity( VALUE proc, int minimal ) -{ - if ( rb_respond_to( proc, swig_arity_id ) == Qtrue ) - { - VALUE num = rb_funcall( proc, swig_arity_id, 0 ); - int arity = NUM2INT(num); - if ( arity < 0 && (arity+1) < -minimal ) return 1; - if ( arity == minimal ) return 1; - return 1; - } - return 0; -} - - #ifdef __cplusplus +#if 0 +{ /* cc-mode */ +#endif } #endif @@ -1768,34 +1530,35 @@ int SWIG_Ruby_arity( VALUE proc, int minimal ) #define SWIGTYPE_p_memcached_analysis_st swig_types[3] #define SWIGTYPE_p_memcached_behavior swig_types[4] #define SWIGTYPE_p_memcached_callback swig_types[5] -#define SWIGTYPE_p_memcached_cleanup_func swig_types[6] -#define SWIGTYPE_p_memcached_clone_func swig_types[7] -#define SWIGTYPE_p_memcached_connection swig_types[8] -#define SWIGTYPE_p_memcached_continuum_item_st swig_types[9] -#define SWIGTYPE_p_memcached_dump_func swig_types[10] -#define SWIGTYPE_p_memcached_execute_function swig_types[11] -#define SWIGTYPE_p_memcached_free_function swig_types[12] -#define SWIGTYPE_p_memcached_hash swig_types[13] -#define SWIGTYPE_p_memcached_malloc_function swig_types[14] -#define SWIGTYPE_p_memcached_realloc_function swig_types[15] -#define SWIGTYPE_p_memcached_result_st swig_types[16] -#define SWIGTYPE_p_memcached_return swig_types[17] -#define SWIGTYPE_p_memcached_server_distribution swig_types[18] -#define SWIGTYPE_p_memcached_server_function swig_types[19] -#define SWIGTYPE_p_memcached_server_st swig_types[20] -#define SWIGTYPE_p_memcached_st swig_types[21] -#define SWIGTYPE_p_memcached_stat_st swig_types[22] -#define SWIGTYPE_p_memcached_string_st swig_types[23] -#define SWIGTYPE_p_memcached_trigger_delete_key swig_types[24] -#define SWIGTYPE_p_memcached_trigger_key swig_types[25] -#define SWIGTYPE_p_p_char swig_types[26] -#define SWIGTYPE_p_size_t swig_types[27] -#define SWIGTYPE_p_time_t swig_types[28] -#define SWIGTYPE_p_uint32_t swig_types[29] -#define SWIGTYPE_p_uint64_t swig_types[30] -#define SWIGTYPE_p_void swig_types[31] -static swig_type_info *swig_types[33]; -static swig_module_info swig_module = {swig_types, 32, 0, 0, 0, 0}; +#define SWIGTYPE_p_memcached_calloc_function swig_types[6] +#define SWIGTYPE_p_memcached_cleanup_func swig_types[7] +#define SWIGTYPE_p_memcached_clone_func swig_types[8] +#define SWIGTYPE_p_memcached_connection swig_types[9] +#define SWIGTYPE_p_memcached_continuum_item_st swig_types[10] +#define SWIGTYPE_p_memcached_dump_func swig_types[11] +#define SWIGTYPE_p_memcached_execute_function swig_types[12] +#define SWIGTYPE_p_memcached_free_function swig_types[13] +#define SWIGTYPE_p_memcached_hash swig_types[14] +#define SWIGTYPE_p_memcached_malloc_function swig_types[15] +#define SWIGTYPE_p_memcached_realloc_function swig_types[16] +#define SWIGTYPE_p_memcached_result_st swig_types[17] +#define SWIGTYPE_p_memcached_return swig_types[18] +#define SWIGTYPE_p_memcached_server_distribution swig_types[19] +#define SWIGTYPE_p_memcached_server_function swig_types[20] +#define SWIGTYPE_p_memcached_server_st swig_types[21] +#define SWIGTYPE_p_memcached_st swig_types[22] +#define SWIGTYPE_p_memcached_stat_st swig_types[23] +#define SWIGTYPE_p_memcached_string_st swig_types[24] +#define SWIGTYPE_p_memcached_trigger_delete_key swig_types[25] +#define SWIGTYPE_p_memcached_trigger_key swig_types[26] +#define SWIGTYPE_p_p_char swig_types[27] +#define SWIGTYPE_p_size_t swig_types[28] +#define SWIGTYPE_p_time_t swig_types[29] +#define SWIGTYPE_p_uint32_t swig_types[30] +#define SWIGTYPE_p_uint64_t swig_types[31] +#define SWIGTYPE_p_void swig_types[32] +static swig_type_info *swig_types[34]; +static swig_module_info swig_module = {swig_types, 33, 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) @@ -1806,11 +1569,7 @@ static swig_module_info swig_module = {swig_types, 32, 0, 0, 0, 0}; static VALUE mRlibmemcached; -#define SWIG_RUBY_THREAD_BEGIN_BLOCK -#define SWIG_RUBY_THREAD_END_BLOCK - - -#define SWIGVERSION 0x010336 +#define SWIGVERSION 0x010331 #define SWIG_VERSION SWIGVERSION @@ -1818,6 +1577,7 @@ static VALUE mRlibmemcached; #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) +#include #include @@ -1843,12 +1603,14 @@ struct timeval rb_time_timeval(VALUE); #include -#if !defined(SWIG_NO_LLONG_MAX) -# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) -# define LLONG_MAX __LONG_LONG_MAX__ -# define LLONG_MIN (-LLONG_MAX - 1LL) -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) -# endif +#ifndef LLONG_MIN +# define LLONG_MIN LONG_LONG_MIN +#endif +#ifndef LLONG_MAX +# define LLONG_MAX LONG_LONG_MAX +#endif +#ifndef ULLONG_MAX +# define ULLONG_MAX ULONG_LONG_MAX #endif @@ -1906,7 +1668,7 @@ SWIG_ruby_failed(void) } -/*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/ +/*@SWIG:%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args) { VALUE obj = args[0]; @@ -1942,11 +1704,11 @@ SWIGINTERN int SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) { if (TYPE(obj) == T_STRING) { - #if defined(StringValuePtr) - char *cstr = StringValuePtr(obj); - #else + + + char *cstr = STR2CSTR(obj); - #endif + size_t size = RSTRING_LEN(obj) + 1; if (cptr) { if (alloc) { @@ -2000,7 +1762,7 @@ SWIG_AsCharArray(VALUE obj, char *val, size_t size) } -/*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/ +/*@SWIG:%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args) { VALUE obj = args[0]; @@ -2059,7 +1821,7 @@ SWIG_From_unsigned_SS_short (unsigned short value) } -/*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/ +/*@SWIG:%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args) { VALUE obj = args[0]; @@ -2181,7 +1943,7 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val) } -/*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/ +/*@SWIG:%ruby_aux_method@*/ SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args) { VALUE obj = args[0]; @@ -2267,167 +2029,6 @@ VALUE memcached_generate_hash_rvalue(const char *key, size_t key_length,memcache return UINT2NUM(memcached_generate_hash_value(key, key_length, hash_algorithm)); }; -swig_class cMemcachedContinuumItemSt; - -SWIGINTERN VALUE -_wrap_MemcachedContinuumItemSt_index_set(int argc, VALUE *argv, VALUE self) { - struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - - if ((argc < 1) || (argc > 1)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; - } - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_continuum_item_st *","index", 1, self )); - } - arg1 = (struct memcached_continuum_item_st *)(argp1); - { - res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","index", 2, argv[0] )); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","index", 2, argv[0])); - } else { - arg2 = *((uint32_t *)(argp2)); - } - } - if (arg1) (arg1)->index = arg2; - return Qnil; -fail: - return Qnil; -} - - -SWIGINTERN VALUE -_wrap_MemcachedContinuumItemSt_index_get(int argc, VALUE *argv, VALUE self) { - struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint32_t result; - VALUE vresult = Qnil; - - if ((argc < 0) || (argc > 0)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; - } - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_continuum_item_st *","index", 1, self )); - } - arg1 = (struct memcached_continuum_item_st *)(argp1); - result = ((arg1)->index); - { - vresult = UINT2NUM(result); - } - return vresult; -fail: - return Qnil; -} - - -SWIGINTERN VALUE -_wrap_MemcachedContinuumItemSt_value_set(int argc, VALUE *argv, VALUE self) { - struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ; - uint32_t arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - void *argp2 ; - int res2 = 0 ; - - if ((argc < 1) || (argc > 1)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; - } - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_continuum_item_st *","value", 1, self )); - } - arg1 = (struct memcached_continuum_item_st *)(argp1); - { - res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); - if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","value", 2, argv[0] )); - } - if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","value", 2, argv[0])); - } else { - arg2 = *((uint32_t *)(argp2)); - } - } - if (arg1) (arg1)->value = arg2; - return Qnil; -fail: - return Qnil; -} - - -SWIGINTERN VALUE -_wrap_MemcachedContinuumItemSt_value_get(int argc, VALUE *argv, VALUE self) { - struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - uint32_t result; - VALUE vresult = Qnil; - - if ((argc < 0) || (argc > 0)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; - } - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_continuum_item_st *","value", 1, self )); - } - arg1 = (struct memcached_continuum_item_st *)(argp1); - result = ((arg1)->value); - { - vresult = UINT2NUM(result); - } - return vresult; -fail: - return Qnil; -} - - -#ifdef HAVE_RB_DEFINE_ALLOC_FUNC -SWIGINTERN VALUE -_wrap_MemcachedContinuumItemSt_allocate(VALUE self) { -#else - SWIGINTERN VALUE - _wrap_MemcachedContinuumItemSt_allocate(int argc, VALUE *argv, VALUE self) { -#endif - - - VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_continuum_item_st); -#ifndef HAVE_RB_DEFINE_ALLOC_FUNC - rb_obj_call_init(vresult, argc, argv); -#endif - return vresult; - } - - -SWIGINTERN VALUE -_wrap_new_MemcachedContinuumItemSt(int argc, VALUE *argv, VALUE self) { - struct memcached_continuum_item_st *result = 0 ; - - if ((argc < 0) || (argc > 0)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; - } - result = (struct memcached_continuum_item_st *)calloc(1, sizeof(struct memcached_continuum_item_st)); - DATA_PTR(self) = result; - return self; -fail: - return Qnil; -} - - -SWIGINTERN void -free_memcached_continuum_item_st(struct memcached_continuum_item_st *arg1) { - free((char *) arg1); -} - swig_class cMemcachedAnalysisSt; SWIGINTERN VALUE @@ -2444,21 +2045,22 @@ _wrap_MemcachedAnalysisSt_average_item_size_set(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","average_item_size", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "average_item_size" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","average_item_size", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "average_item_size" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","average_item_size", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "average_item_size" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->average_item_size = arg2; + return Qnil; fail: return Qnil; @@ -2468,9 +2070,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedAnalysisSt_average_item_size_get(int argc, VALUE *argv, VALUE self) { struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -2478,7 +2080,7 @@ _wrap_MemcachedAnalysisSt_average_item_size_get(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","average_item_size", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "average_item_size" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); result = ((arg1)->average_item_size); @@ -2505,21 +2107,22 @@ _wrap_MemcachedAnalysisSt_longest_uptime_set(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","longest_uptime", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "longest_uptime" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","longest_uptime", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "longest_uptime" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","longest_uptime", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "longest_uptime" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->longest_uptime = arg2; + return Qnil; fail: return Qnil; @@ -2529,9 +2132,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedAnalysisSt_longest_uptime_get(int argc, VALUE *argv, VALUE self) { struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -2539,7 +2142,7 @@ _wrap_MemcachedAnalysisSt_longest_uptime_get(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","longest_uptime", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "longest_uptime" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); result = ((arg1)->longest_uptime); @@ -2566,21 +2169,22 @@ _wrap_MemcachedAnalysisSt_least_free_server_set(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_free_server", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "least_free_server" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","least_free_server", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "least_free_server" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","least_free_server", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "least_free_server" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->least_free_server = arg2; + return Qnil; fail: return Qnil; @@ -2590,9 +2194,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedAnalysisSt_least_free_server_get(int argc, VALUE *argv, VALUE self) { struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -2600,7 +2204,7 @@ _wrap_MemcachedAnalysisSt_least_free_server_get(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_free_server", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "least_free_server" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); result = ((arg1)->least_free_server); @@ -2627,21 +2231,22 @@ _wrap_MemcachedAnalysisSt_most_consumed_server_set(int argc, VALUE *argv, VALUE } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_consumed_server", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "most_consumed_server" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","most_consumed_server", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "most_consumed_server" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","most_consumed_server", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "most_consumed_server" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->most_consumed_server = arg2; + return Qnil; fail: return Qnil; @@ -2651,9 +2256,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedAnalysisSt_most_consumed_server_get(int argc, VALUE *argv, VALUE self) { struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -2661,7 +2266,7 @@ _wrap_MemcachedAnalysisSt_most_consumed_server_get(int argc, VALUE *argv, VALUE } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_consumed_server", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "most_consumed_server" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); result = ((arg1)->most_consumed_server); @@ -2688,21 +2293,22 @@ _wrap_MemcachedAnalysisSt_oldest_server_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","oldest_server", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "oldest_server" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","oldest_server", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "oldest_server" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","oldest_server", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "oldest_server" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->oldest_server = arg2; + return Qnil; fail: return Qnil; @@ -2712,9 +2318,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedAnalysisSt_oldest_server_get(int argc, VALUE *argv, VALUE self) { struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -2722,7 +2328,7 @@ _wrap_MemcachedAnalysisSt_oldest_server_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","oldest_server", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "oldest_server" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); result = ((arg1)->oldest_server); @@ -2749,15 +2355,16 @@ _wrap_MemcachedAnalysisSt_pool_hit_ratio_set(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","pool_hit_ratio", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pool_hit_ratio" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); ecode2 = SWIG_AsVal_double(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","pool_hit_ratio", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pool_hit_ratio" "', argument " "2"" of type '" "double""'"); } arg2 = (double)(val2); if (arg1) (arg1)->pool_hit_ratio = arg2; + return Qnil; fail: return Qnil; @@ -2767,9 +2374,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedAnalysisSt_pool_hit_ratio_get(int argc, VALUE *argv, VALUE self) { struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ; + double result; void *argp1 = 0 ; int res1 = 0 ; - double result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -2777,7 +2384,7 @@ _wrap_MemcachedAnalysisSt_pool_hit_ratio_get(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","pool_hit_ratio", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pool_hit_ratio" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); result = (double) ((arg1)->pool_hit_ratio); @@ -2802,21 +2409,22 @@ _wrap_MemcachedAnalysisSt_most_used_bytes_set(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_used_bytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "most_used_bytes" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","most_used_bytes", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "most_used_bytes" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","most_used_bytes", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "most_used_bytes" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->most_used_bytes = arg2; + return Qnil; fail: return Qnil; @@ -2826,9 +2434,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedAnalysisSt_most_used_bytes_get(int argc, VALUE *argv, VALUE self) { struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -2836,7 +2444,7 @@ _wrap_MemcachedAnalysisSt_most_used_bytes_get(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_used_bytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "most_used_bytes" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); result = ((arg1)->most_used_bytes); @@ -2863,21 +2471,22 @@ _wrap_MemcachedAnalysisSt_least_remaining_bytes_set(int argc, VALUE *argv, VALUE } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_remaining_bytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "least_remaining_bytes" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","least_remaining_bytes", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "least_remaining_bytes" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","least_remaining_bytes", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "least_remaining_bytes" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->least_remaining_bytes = arg2; + return Qnil; fail: return Qnil; @@ -2887,9 +2496,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedAnalysisSt_least_remaining_bytes_get(int argc, VALUE *argv, VALUE self) { struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -2897,7 +2506,7 @@ _wrap_MemcachedAnalysisSt_least_remaining_bytes_get(int argc, VALUE *argv, VALUE } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_remaining_bytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "least_remaining_bytes" "', argument " "1"" of type '" "struct memcached_analysis_st *""'"); } arg1 = (struct memcached_analysis_st *)(argp1); result = ((arg1)->least_remaining_bytes); @@ -2934,8 +2543,8 @@ _wrap_new_MemcachedAnalysisSt(int argc, VALUE *argv, VALUE self) { if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } - result = (struct memcached_analysis_st *)calloc(1, sizeof(struct memcached_analysis_st)); - DATA_PTR(self) = result; + result = (struct memcached_analysis_st *)(struct memcached_analysis_st *) calloc(1, sizeof(struct memcached_analysis_st));DATA_PTR(self) = result; + return self; fail: return Qnil; @@ -2963,21 +2572,22 @@ _wrap_MemcachedStatSt_connection_structures_set(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","connection_structures", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connection_structures" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","connection_structures", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "connection_structures" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","connection_structures", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "connection_structures" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->connection_structures = arg2; + return Qnil; fail: return Qnil; @@ -2987,9 +2597,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_connection_structures_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -2997,7 +2607,7 @@ _wrap_MemcachedStatSt_connection_structures_get(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","connection_structures", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connection_structures" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->connection_structures); @@ -3024,21 +2634,22 @@ _wrap_MemcachedStatSt_curr_connections_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_connections", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "curr_connections" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","curr_connections", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "curr_connections" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","curr_connections", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "curr_connections" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->curr_connections = arg2; + return Qnil; fail: return Qnil; @@ -3048,9 +2659,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_curr_connections_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3058,7 +2669,7 @@ _wrap_MemcachedStatSt_curr_connections_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_connections", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "curr_connections" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->curr_connections); @@ -3085,21 +2696,22 @@ _wrap_MemcachedStatSt_curr_items_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_items", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "curr_items" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","curr_items", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "curr_items" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","curr_items", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "curr_items" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->curr_items = arg2; + return Qnil; fail: return Qnil; @@ -3109,9 +2721,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_curr_items_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3119,7 +2731,7 @@ _wrap_MemcachedStatSt_curr_items_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_items", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "curr_items" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->curr_items); @@ -3146,21 +2758,22 @@ _wrap_MemcachedStatSt_pid_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pid", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pid" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","pid", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pid" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","pid", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "pid" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->pid = arg2; + return Qnil; fail: return Qnil; @@ -3170,9 +2783,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_pid_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3180,7 +2793,7 @@ _wrap_MemcachedStatSt_pid_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pid", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pid" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->pid); @@ -3207,21 +2820,22 @@ _wrap_MemcachedStatSt_pointer_size_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pointer_size", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointer_size" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","pointer_size", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointer_size" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","pointer_size", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "pointer_size" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->pointer_size = arg2; + return Qnil; fail: return Qnil; @@ -3231,9 +2845,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_pointer_size_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3241,7 +2855,7 @@ _wrap_MemcachedStatSt_pointer_size_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pointer_size", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointer_size" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->pointer_size); @@ -3268,21 +2882,22 @@ _wrap_MemcachedStatSt_rusage_system_microseconds_set(int argc, VALUE *argv, VALU } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_microseconds", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_system_microseconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_system_microseconds", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rusage_system_microseconds" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_system_microseconds", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rusage_system_microseconds" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->rusage_system_microseconds = arg2; + return Qnil; fail: return Qnil; @@ -3292,9 +2907,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_rusage_system_microseconds_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3302,7 +2917,7 @@ _wrap_MemcachedStatSt_rusage_system_microseconds_get(int argc, VALUE *argv, VALU } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_microseconds", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_system_microseconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->rusage_system_microseconds); @@ -3329,21 +2944,22 @@ _wrap_MemcachedStatSt_rusage_system_seconds_set(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_seconds", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_system_seconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_system_seconds", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rusage_system_seconds" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_system_seconds", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rusage_system_seconds" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->rusage_system_seconds = arg2; + return Qnil; fail: return Qnil; @@ -3353,9 +2969,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_rusage_system_seconds_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3363,7 +2979,7 @@ _wrap_MemcachedStatSt_rusage_system_seconds_get(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_seconds", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_system_seconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->rusage_system_seconds); @@ -3390,21 +3006,22 @@ _wrap_MemcachedStatSt_rusage_user_microseconds_set(int argc, VALUE *argv, VALUE } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_microseconds", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_user_microseconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_user_microseconds", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rusage_user_microseconds" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_user_microseconds", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rusage_user_microseconds" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->rusage_user_microseconds = arg2; + return Qnil; fail: return Qnil; @@ -3414,9 +3031,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_rusage_user_microseconds_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3424,7 +3041,7 @@ _wrap_MemcachedStatSt_rusage_user_microseconds_get(int argc, VALUE *argv, VALUE } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_microseconds", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_user_microseconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->rusage_user_microseconds); @@ -3451,21 +3068,22 @@ _wrap_MemcachedStatSt_rusage_user_seconds_set(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_seconds", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_user_seconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_user_seconds", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rusage_user_seconds" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_user_seconds", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rusage_user_seconds" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->rusage_user_seconds = arg2; + return Qnil; fail: return Qnil; @@ -3475,9 +3093,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_rusage_user_seconds_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3485,7 +3103,7 @@ _wrap_MemcachedStatSt_rusage_user_seconds_get(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_seconds", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_user_seconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->rusage_user_seconds); @@ -3512,21 +3130,22 @@ _wrap_MemcachedStatSt_threads_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","threads", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "threads" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","threads", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "threads" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","threads", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "threads" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->threads = arg2; + return Qnil; fail: return Qnil; @@ -3536,9 +3155,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_threads_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3546,7 +3165,7 @@ _wrap_MemcachedStatSt_threads_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","threads", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "threads" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->threads); @@ -3573,21 +3192,22 @@ _wrap_MemcachedStatSt_time_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","time", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "time" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","time", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "time" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","time", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "time" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->time = arg2; + return Qnil; fail: return Qnil; @@ -3597,9 +3217,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_time_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3607,7 +3227,7 @@ _wrap_MemcachedStatSt_time_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","time", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "time" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->time); @@ -3634,21 +3254,22 @@ _wrap_MemcachedStatSt_total_connections_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_connections", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "total_connections" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","total_connections", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "total_connections" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","total_connections", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "total_connections" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->total_connections = arg2; + return Qnil; fail: return Qnil; @@ -3658,9 +3279,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_total_connections_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3668,7 +3289,7 @@ _wrap_MemcachedStatSt_total_connections_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_connections", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "total_connections" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->total_connections); @@ -3695,21 +3316,22 @@ _wrap_MemcachedStatSt_total_items_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_items", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "total_items" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","total_items", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "total_items" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","total_items", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "total_items" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->total_items = arg2; + return Qnil; fail: return Qnil; @@ -3719,9 +3341,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_total_items_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3729,7 +3351,7 @@ _wrap_MemcachedStatSt_total_items_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_items", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "total_items" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->total_items); @@ -3756,21 +3378,22 @@ _wrap_MemcachedStatSt_uptime_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","uptime", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uptime" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","uptime", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "uptime" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","uptime", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "uptime" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->uptime = arg2; + return Qnil; fail: return Qnil; @@ -3780,9 +3403,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_uptime_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3790,7 +3413,7 @@ _wrap_MemcachedStatSt_uptime_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","uptime", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uptime" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->uptime); @@ -3817,21 +3440,22 @@ _wrap_MemcachedStatSt_bytes_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","bytes", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bytes" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","bytes", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "bytes" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->bytes = arg2; + return Qnil; fail: return Qnil; @@ -3841,9 +3465,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_bytes_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3851,7 +3475,7 @@ _wrap_MemcachedStatSt_bytes_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->bytes); @@ -3878,21 +3502,22 @@ _wrap_MemcachedStatSt_bytes_read_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_read", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes_read" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","bytes_read", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bytes_read" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","bytes_read", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "bytes_read" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->bytes_read = arg2; + return Qnil; fail: return Qnil; @@ -3902,9 +3527,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_bytes_read_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3912,7 +3537,7 @@ _wrap_MemcachedStatSt_bytes_read_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_read", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes_read" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->bytes_read); @@ -3939,21 +3564,22 @@ _wrap_MemcachedStatSt_bytes_written_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_written", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes_written" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","bytes_written", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bytes_written" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","bytes_written", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "bytes_written" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->bytes_written = arg2; + return Qnil; fail: return Qnil; @@ -3963,9 +3589,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_bytes_written_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -3973,7 +3599,7 @@ _wrap_MemcachedStatSt_bytes_written_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_written", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes_written" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->bytes_written); @@ -4000,21 +3626,22 @@ _wrap_MemcachedStatSt_cmd_get_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_get", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_get" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","cmd_get", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmd_get" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","cmd_get", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmd_get" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->cmd_get = arg2; + return Qnil; fail: return Qnil; @@ -4024,9 +3651,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_cmd_get_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4034,7 +3661,7 @@ _wrap_MemcachedStatSt_cmd_get_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_get", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_get" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->cmd_get); @@ -4061,21 +3688,22 @@ _wrap_MemcachedStatSt_cmd_set_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_set", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_set" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","cmd_set", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmd_set" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","cmd_set", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmd_set" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->cmd_set = arg2; + return Qnil; fail: return Qnil; @@ -4085,9 +3713,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_cmd_set_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4095,7 +3723,7 @@ _wrap_MemcachedStatSt_cmd_set_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_set", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_set" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->cmd_set); @@ -4122,21 +3750,22 @@ _wrap_MemcachedStatSt_evictions_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","evictions", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "evictions" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","evictions", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "evictions" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","evictions", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "evictions" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->evictions = arg2; + return Qnil; fail: return Qnil; @@ -4146,9 +3775,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_evictions_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4156,7 +3785,7 @@ _wrap_MemcachedStatSt_evictions_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","evictions", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "evictions" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->evictions); @@ -4183,21 +3812,22 @@ _wrap_MemcachedStatSt_get_hits_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_hits", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_hits" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","get_hits", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "get_hits" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","get_hits", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_hits" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->get_hits = arg2; + return Qnil; fail: return Qnil; @@ -4207,9 +3837,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_get_hits_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4217,7 +3847,7 @@ _wrap_MemcachedStatSt_get_hits_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_hits", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_hits" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->get_hits); @@ -4244,21 +3874,22 @@ _wrap_MemcachedStatSt_get_misses_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_misses", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_misses" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","get_misses", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "get_misses" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","get_misses", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_misses" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->get_misses = arg2; + return Qnil; fail: return Qnil; @@ -4268,9 +3899,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_get_misses_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4278,7 +3909,7 @@ _wrap_MemcachedStatSt_get_misses_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_misses", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_misses" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->get_misses); @@ -4305,21 +3936,22 @@ _wrap_MemcachedStatSt_limit_maxbytes_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","limit_maxbytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "limit_maxbytes" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","limit_maxbytes", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "limit_maxbytes" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","limit_maxbytes", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "limit_maxbytes" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->limit_maxbytes = arg2; + return Qnil; fail: return Qnil; @@ -4329,9 +3961,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_limit_maxbytes_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4339,7 +3971,7 @@ _wrap_MemcachedStatSt_limit_maxbytes_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","limit_maxbytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "limit_maxbytes" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = ((arg1)->limit_maxbytes); @@ -4366,12 +3998,12 @@ _wrap_MemcachedStatSt_version_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","version", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "version" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 24); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [24]","version", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "version" "', argument " "2"" of type '" "char [24]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->version,arg2,24*sizeof(char)); @@ -4385,9 +4017,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedStatSt_version_get(int argc, VALUE *argv, VALUE self) { struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4395,7 +4027,7 @@ _wrap_MemcachedStatSt_version_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","version", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "version" "', argument " "1"" of type '" "struct memcached_stat_st *""'"); } arg1 = (struct memcached_stat_st *)(argp1); result = (char *)(char *) ((arg1)->version); @@ -4436,8 +4068,8 @@ _wrap_new_MemcachedStatSt(int argc, VALUE *argv, VALUE self) { if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } - result = (struct memcached_stat_st *)calloc(1, sizeof(struct memcached_stat_st)); - DATA_PTR(self) = result; + result = (struct memcached_stat_st *)(struct memcached_stat_st *) calloc(1, sizeof(struct memcached_stat_st));DATA_PTR(self) = result; + return self; fail: return Qnil; @@ -4465,15 +4097,16 @@ _wrap_MemcachedSt_purging_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","purging", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "purging" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","purging", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "purging" "', argument " "2"" of type '" "uint8_t""'"); } arg2 = (uint8_t)(val2); if (arg1) (arg1)->purging = arg2; + return Qnil; fail: return Qnil; @@ -4483,9 +4116,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_purging_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint8_t result; void *argp1 = 0 ; int res1 = 0 ; - uint8_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4493,7 +4126,7 @@ _wrap_MemcachedSt_purging_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","purging", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "purging" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->purging); @@ -4518,15 +4151,16 @@ _wrap_MemcachedSt_is_allocated_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","is_allocated", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_allocated", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "is_allocated" "', argument " "2"" of type '" "bool""'"); } arg2 = (bool)(val2); if (arg1) (arg1)->is_allocated = arg2; + return Qnil; fail: return Qnil; @@ -4536,9 +4170,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_is_allocated_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + bool result; void *argp1 = 0 ; int res1 = 0 ; - bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4546,7 +4180,7 @@ _wrap_MemcachedSt_is_allocated_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","is_allocated", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = (bool) ((arg1)->is_allocated); @@ -4571,15 +4205,16 @@ _wrap_MemcachedSt_distribution_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "distribution" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","distribution", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "distribution" "', argument " "2"" of type '" "uint8_t""'"); } arg2 = (uint8_t)(val2); if (arg1) (arg1)->distribution = arg2; + return Qnil; fail: return Qnil; @@ -4589,9 +4224,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_distribution_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint8_t result; void *argp1 = 0 ; int res1 = 0 ; - uint8_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4599,7 +4234,7 @@ _wrap_MemcachedSt_distribution_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "distribution" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->distribution); @@ -4610,24 +4245,6 @@ fail: } - -/* - Document-method: Rlibmemcached::MemcachedSt.hash - - call-seq: - hash -> uint8_t - -Hashing function for class. -*/ - -/* - Document-method: Rlibmemcached::MemcachedSt.hash= - - call-seq: - hash=(x) -> uint8_t - -Hashing function for class. -*/ SWIGINTERN VALUE _wrap_MemcachedSt_hash_set(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; @@ -4642,15 +4259,16 @@ _wrap_MemcachedSt_hash_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hash" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","hash", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "hash" "', argument " "2"" of type '" "uint8_t""'"); } arg2 = (uint8_t)(val2); if (arg1) (arg1)->hash = arg2; + return Qnil; fail: return Qnil; @@ -4660,9 +4278,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_hash_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint8_t result; void *argp1 = 0 ; int res1 = 0 ; - uint8_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4670,7 +4288,7 @@ _wrap_MemcachedSt_hash_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hash" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->hash); @@ -4695,21 +4313,22 @@ _wrap_MemcachedSt_continuum_points_counter_set(int argc, VALUE *argv, VALUE self } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_points_counter", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "continuum_points_counter" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","continuum_points_counter", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "continuum_points_counter" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","continuum_points_counter", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "continuum_points_counter" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->continuum_points_counter = arg2; + return Qnil; fail: return Qnil; @@ -4719,9 +4338,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_continuum_points_counter_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4729,7 +4348,7 @@ _wrap_MemcachedSt_continuum_points_counter_get(int argc, VALUE *argv, VALUE self } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_points_counter", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "continuum_points_counter" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->continuum_points_counter); @@ -4756,15 +4375,16 @@ _wrap_MemcachedSt_hosts_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hosts", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hosts" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_server_st, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","hosts", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hosts" "', argument " "2"" of type '" "memcached_server_st *""'"); } arg2 = (memcached_server_st *)(argp2); if (arg1) (arg1)->hosts = arg2; + return Qnil; fail: return Qnil; @@ -4774,9 +4394,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_hosts_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_server_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - memcached_server_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4784,7 +4404,7 @@ _wrap_MemcachedSt_hosts_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hosts", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hosts" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = (memcached_server_st *) ((arg1)->hosts); @@ -4809,21 +4429,22 @@ _wrap_MemcachedSt_snd_timeout_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","snd_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "snd_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","snd_timeout", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "snd_timeout" "', argument " "2"" of type '" "int32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","snd_timeout", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "snd_timeout" "', argument " "2"" of type '" "int32_t""'"); } else { arg2 = *((int32_t *)(argp2)); } } if (arg1) (arg1)->snd_timeout = arg2; + return Qnil; fail: return Qnil; @@ -4833,9 +4454,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_snd_timeout_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + int32_t result; void *argp1 = 0 ; int res1 = 0 ; - int32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4843,7 +4464,7 @@ _wrap_MemcachedSt_snd_timeout_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","snd_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "snd_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->snd_timeout); @@ -4868,21 +4489,22 @@ _wrap_MemcachedSt_rcv_timeout_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","rcv_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rcv_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","rcv_timeout", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rcv_timeout" "', argument " "2"" of type '" "int32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","rcv_timeout", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rcv_timeout" "', argument " "2"" of type '" "int32_t""'"); } else { arg2 = *((int32_t *)(argp2)); } } if (arg1) (arg1)->rcv_timeout = arg2; + return Qnil; fail: return Qnil; @@ -4892,9 +4514,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_rcv_timeout_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + int32_t result; void *argp1 = 0 ; int res1 = 0 ; - int32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4902,7 +4524,7 @@ _wrap_MemcachedSt_rcv_timeout_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","rcv_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rcv_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->rcv_timeout); @@ -4927,21 +4549,22 @@ _wrap_MemcachedSt_server_failure_limit_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","server_failure_limit", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_failure_limit" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","server_failure_limit", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "server_failure_limit" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","server_failure_limit", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "server_failure_limit" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->server_failure_limit = arg2; + return Qnil; fail: return Qnil; @@ -4951,9 +4574,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_server_failure_limit_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -4961,7 +4584,7 @@ _wrap_MemcachedSt_server_failure_limit_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","server_failure_limit", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_failure_limit" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->server_failure_limit); @@ -4988,21 +4611,22 @@ _wrap_MemcachedSt_io_msg_watermark_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_msg_watermark", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "io_msg_watermark" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_msg_watermark", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "io_msg_watermark" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_msg_watermark", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "io_msg_watermark" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->io_msg_watermark = arg2; + return Qnil; fail: return Qnil; @@ -5012,9 +4636,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_io_msg_watermark_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5022,7 +4646,7 @@ _wrap_MemcachedSt_io_msg_watermark_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_msg_watermark", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "io_msg_watermark" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->io_msg_watermark); @@ -5049,21 +4673,22 @@ _wrap_MemcachedSt_io_bytes_watermark_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_bytes_watermark", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "io_bytes_watermark" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_bytes_watermark", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "io_bytes_watermark" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_bytes_watermark", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "io_bytes_watermark" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->io_bytes_watermark = arg2; + return Qnil; fail: return Qnil; @@ -5073,9 +4698,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_io_bytes_watermark_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5083,7 +4708,7 @@ _wrap_MemcachedSt_io_bytes_watermark_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_bytes_watermark", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "io_bytes_watermark" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->io_bytes_watermark); @@ -5110,21 +4735,22 @@ _wrap_MemcachedSt_io_key_prefetch_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_key_prefetch", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "io_key_prefetch" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_key_prefetch", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "io_key_prefetch" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_key_prefetch", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "io_key_prefetch" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->io_key_prefetch = arg2; + return Qnil; fail: return Qnil; @@ -5134,9 +4760,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_io_key_prefetch_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5144,7 +4770,7 @@ _wrap_MemcachedSt_io_key_prefetch_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_key_prefetch", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "io_key_prefetch" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->io_key_prefetch); @@ -5171,21 +4797,22 @@ _wrap_MemcachedSt_number_of_hosts_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_hosts", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "number_of_hosts" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","number_of_hosts", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "number_of_hosts" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","number_of_hosts", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "number_of_hosts" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->number_of_hosts = arg2; + return Qnil; fail: return Qnil; @@ -5195,9 +4822,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_number_of_hosts_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5205,7 +4832,7 @@ _wrap_MemcachedSt_number_of_hosts_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_hosts", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "number_of_hosts" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->number_of_hosts); @@ -5232,21 +4859,22 @@ _wrap_MemcachedSt_cursor_server_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cursor_server", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cursor_server" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","cursor_server", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cursor_server" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","cursor_server", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cursor_server" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->cursor_server = arg2; + return Qnil; fail: return Qnil; @@ -5256,9 +4884,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_cursor_server_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5266,7 +4894,7 @@ _wrap_MemcachedSt_cursor_server_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cursor_server", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cursor_server" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->cursor_server); @@ -5293,15 +4921,16 @@ _wrap_MemcachedSt_cached_errno_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cached_errno", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_errno" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","cached_errno", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cached_errno" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); if (arg1) (arg1)->cached_errno = arg2; + return Qnil; fail: return Qnil; @@ -5311,9 +4940,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_cached_errno_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + int result; void *argp1 = 0 ; int res1 = 0 ; - int result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5321,7 +4950,7 @@ _wrap_MemcachedSt_cached_errno_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cached_errno", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_errno" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = (int) ((arg1)->cached_errno); @@ -5346,15 +4975,16 @@ _wrap_MemcachedSt_flags_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","flags", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","flags", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "flags" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = (uint32_t)(val2); if (arg1) (arg1)->flags = arg2; + return Qnil; fail: return Qnil; @@ -5364,9 +4994,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_flags_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5374,7 +5004,7 @@ _wrap_MemcachedSt_flags_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","flags", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->flags); @@ -5399,21 +5029,22 @@ _wrap_MemcachedSt_poll_timeout_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "poll_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","poll_timeout", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "poll_timeout" "', argument " "2"" of type '" "int32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","poll_timeout", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "poll_timeout" "', argument " "2"" of type '" "int32_t""'"); } else { arg2 = *((int32_t *)(argp2)); } } if (arg1) (arg1)->poll_timeout = arg2; + return Qnil; fail: return Qnil; @@ -5423,9 +5054,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_poll_timeout_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + int32_t result; void *argp1 = 0 ; int res1 = 0 ; - int32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5433,7 +5064,7 @@ _wrap_MemcachedSt_poll_timeout_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "poll_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->poll_timeout); @@ -5458,21 +5089,22 @@ _wrap_MemcachedSt_connect_timeout_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","connect_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connect_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","connect_timeout", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "connect_timeout" "', argument " "2"" of type '" "int32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","connect_timeout", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "connect_timeout" "', argument " "2"" of type '" "int32_t""'"); } else { arg2 = *((int32_t *)(argp2)); } } if (arg1) (arg1)->connect_timeout = arg2; + return Qnil; fail: return Qnil; @@ -5482,9 +5114,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_connect_timeout_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + int32_t result; void *argp1 = 0 ; int res1 = 0 ; - int32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5492,7 +5124,7 @@ _wrap_MemcachedSt_connect_timeout_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","connect_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connect_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->connect_timeout); @@ -5517,21 +5149,22 @@ _wrap_MemcachedSt_retry_timeout_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","retry_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "retry_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","retry_timeout", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "retry_timeout" "', argument " "2"" of type '" "int32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","retry_timeout", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "retry_timeout" "', argument " "2"" of type '" "int32_t""'"); } else { arg2 = *((int32_t *)(argp2)); } } if (arg1) (arg1)->retry_timeout = arg2; + return Qnil; fail: return Qnil; @@ -5541,9 +5174,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_retry_timeout_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + int32_t result; void *argp1 = 0 ; int res1 = 0 ; - int32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5551,7 +5184,7 @@ _wrap_MemcachedSt_retry_timeout_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","retry_timeout", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "retry_timeout" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->retry_timeout); @@ -5576,21 +5209,22 @@ _wrap_MemcachedSt_continuum_count_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_count", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "continuum_count" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","continuum_count", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "continuum_count" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","continuum_count", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "continuum_count" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->continuum_count = arg2; + return Qnil; fail: return Qnil; @@ -5600,9 +5234,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_continuum_count_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5610,7 +5244,7 @@ _wrap_MemcachedSt_continuum_count_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_count", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "continuum_count" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->continuum_count); @@ -5637,15 +5271,16 @@ _wrap_MemcachedSt_send_size_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","send_size", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "send_size" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","send_size", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "send_size" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); if (arg1) (arg1)->send_size = arg2; + return Qnil; fail: return Qnil; @@ -5655,9 +5290,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_send_size_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + int result; void *argp1 = 0 ; int res1 = 0 ; - int result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5665,7 +5300,7 @@ _wrap_MemcachedSt_send_size_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","send_size", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "send_size" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = (int) ((arg1)->send_size); @@ -5690,15 +5325,16 @@ _wrap_MemcachedSt_recv_size_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","recv_size", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "recv_size" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","recv_size", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "recv_size" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); if (arg1) (arg1)->recv_size = arg2; + return Qnil; fail: return Qnil; @@ -5708,9 +5344,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_recv_size_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + int result; void *argp1 = 0 ; int res1 = 0 ; - int result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5718,7 +5354,7 @@ _wrap_MemcachedSt_recv_size_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","recv_size", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "recv_size" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = (int) ((arg1)->recv_size); @@ -5742,14 +5378,15 @@ _wrap_MemcachedSt_user_data_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","user_data", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "user_data" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","user_data", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "user_data" "', argument " "2"" of type '" "void *""'"); } if (arg1) (arg1)->user_data = arg2; + return Qnil; fail: return Qnil; @@ -5759,9 +5396,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_user_data_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + void *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - void *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5769,7 +5406,7 @@ _wrap_MemcachedSt_user_data_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","user_data", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "user_data" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = (void *) ((arg1)->user_data); @@ -5792,7 +5429,7 @@ _wrap_MemcachedSt_next_distribution_rebuild_set(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","next_distribution_rebuild", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_distribution_rebuild" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { @@ -5802,6 +5439,7 @@ _wrap_MemcachedSt_next_distribution_rebuild_set(int argc, VALUE *argv, VALUE sel arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0)); } if (arg1) (arg1)->next_distribution_rebuild = arg2; + return Qnil; fail: return Qnil; @@ -5811,9 +5449,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_next_distribution_rebuild_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + time_t result; void *argp1 = 0 ; int res1 = 0 ; - time_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5821,7 +5459,7 @@ _wrap_MemcachedSt_next_distribution_rebuild_get(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","next_distribution_rebuild", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_distribution_rebuild" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->next_distribution_rebuild); @@ -5848,15 +5486,16 @@ _wrap_MemcachedSt_prefix_key_length_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key_length", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "prefix_key_length" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","prefix_key_length", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "prefix_key_length" "', argument " "2"" of type '" "size_t""'"); } arg2 = (size_t)(val2); if (arg1) (arg1)->prefix_key_length = arg2; + return Qnil; fail: return Qnil; @@ -5866,9 +5505,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_prefix_key_length_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + size_t result; void *argp1 = 0 ; int res1 = 0 ; - size_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5876,7 +5515,7 @@ _wrap_MemcachedSt_prefix_key_length_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key_length", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "prefix_key_length" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->prefix_key_length); @@ -5901,15 +5540,16 @@ _wrap_MemcachedSt_hash_continuum_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash_continuum", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hash_continuum" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_hash","hash_continuum", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "hash_continuum" "', argument " "2"" of type '" "memcached_hash""'"); } arg2 = (memcached_hash)(val2); if (arg1) (arg1)->hash_continuum = arg2; + return Qnil; fail: return Qnil; @@ -5919,9 +5559,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_hash_continuum_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_hash result; void *argp1 = 0 ; int res1 = 0 ; - memcached_hash result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5929,7 +5569,7 @@ _wrap_MemcachedSt_hash_continuum_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash_continuum", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hash_continuum" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = (memcached_hash) ((arg1)->hash_continuum); @@ -5954,21 +5594,22 @@ _wrap_MemcachedSt_result_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","result", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "result" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_result_st, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st","result", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "result" "', argument " "2"" of type '" "memcached_result_st""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_result_st","result", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "result" "', argument " "2"" of type '" "memcached_result_st""'"); } else { arg2 = *((memcached_result_st *)(argp2)); } } if (arg1) (arg1)->result = arg2; + return Qnil; fail: return Qnil; @@ -5978,9 +5619,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_result_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_result_st result; void *argp1 = 0 ; int res1 = 0 ; - memcached_result_st result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -5988,7 +5629,7 @@ _wrap_MemcachedSt_result_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","result", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "result" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->result); @@ -6013,15 +5654,16 @@ _wrap_MemcachedSt_continuum_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "continuum" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_continuum_item_st, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_continuum_item_st *","continuum", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "continuum" "', argument " "2"" of type '" "memcached_continuum_item_st *""'"); } arg2 = (memcached_continuum_item_st *)(argp2); if (arg1) (arg1)->continuum = arg2; + return Qnil; fail: return Qnil; @@ -6031,9 +5673,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_continuum_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_continuum_item_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - memcached_continuum_item_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -6041,7 +5683,7 @@ _wrap_MemcachedSt_continuum_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "continuum" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = (memcached_continuum_item_st *) ((arg1)->continuum); @@ -6066,21 +5708,22 @@ _wrap_MemcachedSt_on_clone_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_clone", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "on_clone" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_clone_func, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_clone_func","on_clone", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "on_clone" "', argument " "2"" of type '" "memcached_clone_func""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_clone_func","on_clone", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "on_clone" "', argument " "2"" of type '" "memcached_clone_func""'"); } else { arg2 = *((memcached_clone_func *)(argp2)); } } if (arg1) (arg1)->on_clone = arg2; + return Qnil; fail: return Qnil; @@ -6090,9 +5733,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_on_clone_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_clone_func result; void *argp1 = 0 ; int res1 = 0 ; - memcached_clone_func result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -6100,7 +5743,7 @@ _wrap_MemcachedSt_on_clone_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_clone", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "on_clone" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->on_clone); @@ -6125,21 +5768,22 @@ _wrap_MemcachedSt_on_cleanup_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_cleanup", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "on_cleanup" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_cleanup_func, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_cleanup_func","on_cleanup", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "on_cleanup" "', argument " "2"" of type '" "memcached_cleanup_func""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_cleanup_func","on_cleanup", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "on_cleanup" "', argument " "2"" of type '" "memcached_cleanup_func""'"); } else { arg2 = *((memcached_cleanup_func *)(argp2)); } } if (arg1) (arg1)->on_cleanup = arg2; + return Qnil; fail: return Qnil; @@ -6149,9 +5793,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_on_cleanup_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_cleanup_func result; void *argp1 = 0 ; int res1 = 0 ; - memcached_cleanup_func result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -6159,7 +5803,7 @@ _wrap_MemcachedSt_on_cleanup_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_cleanup", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "on_cleanup" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->on_cleanup); @@ -6184,21 +5828,22 @@ _wrap_MemcachedSt_call_free_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_free", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_free" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_free_function, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_free_function","call_free", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "call_free" "', argument " "2"" of type '" "memcached_free_function""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_free_function","call_free", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "call_free" "', argument " "2"" of type '" "memcached_free_function""'"); } else { arg2 = *((memcached_free_function *)(argp2)); } } if (arg1) (arg1)->call_free = arg2; + return Qnil; fail: return Qnil; @@ -6208,9 +5853,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_call_free_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_free_function result; void *argp1 = 0 ; int res1 = 0 ; - memcached_free_function result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -6218,7 +5863,7 @@ _wrap_MemcachedSt_call_free_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_free", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_free" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->call_free); @@ -6243,21 +5888,22 @@ _wrap_MemcachedSt_call_malloc_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_malloc", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_malloc" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_malloc_function, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_malloc_function","call_malloc", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "call_malloc" "', argument " "2"" of type '" "memcached_malloc_function""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_malloc_function","call_malloc", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "call_malloc" "', argument " "2"" of type '" "memcached_malloc_function""'"); } else { arg2 = *((memcached_malloc_function *)(argp2)); } } if (arg1) (arg1)->call_malloc = arg2; + return Qnil; fail: return Qnil; @@ -6267,9 +5913,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_call_malloc_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_malloc_function result; void *argp1 = 0 ; int res1 = 0 ; - memcached_malloc_function result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -6277,7 +5923,7 @@ _wrap_MemcachedSt_call_malloc_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_malloc", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_malloc" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->call_malloc); @@ -6302,21 +5948,22 @@ _wrap_MemcachedSt_call_realloc_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_realloc", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_realloc" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_realloc_function, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_realloc_function","call_realloc", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "call_realloc" "', argument " "2"" of type '" "memcached_realloc_function""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_realloc_function","call_realloc", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "call_realloc" "', argument " "2"" of type '" "memcached_realloc_function""'"); } else { arg2 = *((memcached_realloc_function *)(argp2)); } } if (arg1) (arg1)->call_realloc = arg2; + return Qnil; fail: return Qnil; @@ -6326,9 +5973,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_call_realloc_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_realloc_function result; void *argp1 = 0 ; int res1 = 0 ; - memcached_realloc_function result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -6336,7 +5983,7 @@ _wrap_MemcachedSt_call_realloc_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_realloc", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_realloc" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->call_realloc); @@ -6347,6 +5994,66 @@ fail: } +SWIGINTERN VALUE +_wrap_MemcachedSt_call_calloc_set(int argc, VALUE *argv, VALUE self) { + struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_calloc_function arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_calloc" "', argument " "1"" of type '" "struct memcached_st *""'"); + } + arg1 = (struct memcached_st *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_calloc_function, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "call_calloc" "', argument " "2"" of type '" "memcached_calloc_function""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "call_calloc" "', argument " "2"" of type '" "memcached_calloc_function""'"); + } else { + arg2 = *((memcached_calloc_function *)(argp2)); + } + } + if (arg1) (arg1)->call_calloc = arg2; + + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_MemcachedSt_call_calloc_get(int argc, VALUE *argv, VALUE self) { + struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_calloc_function result; + void *argp1 = 0 ; + int res1 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_calloc" "', argument " "1"" of type '" "struct memcached_st *""'"); + } + arg1 = (struct memcached_st *)(argp1); + result = ((arg1)->call_calloc); + vresult = SWIG_NewPointerObj((memcached_calloc_function *)memcpy((memcached_calloc_function *)malloc(sizeof(memcached_calloc_function)),&result,sizeof(memcached_calloc_function)), SWIGTYPE_p_memcached_calloc_function, SWIG_POINTER_OWN | 0 ); + return vresult; +fail: + return Qnil; +} + + SWIGINTERN VALUE _wrap_MemcachedSt_get_key_failure_set(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; @@ -6361,21 +6068,22 @@ _wrap_MemcachedSt_get_key_failure_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","get_key_failure", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_key_failure" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_trigger_key, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_trigger_key","get_key_failure", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "get_key_failure" "', argument " "2"" of type '" "memcached_trigger_key""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_trigger_key","get_key_failure", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_key_failure" "', argument " "2"" of type '" "memcached_trigger_key""'"); } else { arg2 = *((memcached_trigger_key *)(argp2)); } } if (arg1) (arg1)->get_key_failure = arg2; + return Qnil; fail: return Qnil; @@ -6385,9 +6093,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_get_key_failure_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_trigger_key result; void *argp1 = 0 ; int res1 = 0 ; - memcached_trigger_key result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -6395,7 +6103,7 @@ _wrap_MemcachedSt_get_key_failure_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","get_key_failure", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_key_failure" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->get_key_failure); @@ -6420,21 +6128,22 @@ _wrap_MemcachedSt_delete_trigger_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","delete_trigger", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_trigger" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_trigger_delete_key, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_trigger_delete_key","delete_trigger", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "delete_trigger" "', argument " "2"" of type '" "memcached_trigger_delete_key""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_trigger_delete_key","delete_trigger", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "delete_trigger" "', argument " "2"" of type '" "memcached_trigger_delete_key""'"); } else { arg2 = *((memcached_trigger_delete_key *)(argp2)); } } if (arg1) (arg1)->delete_trigger = arg2; + return Qnil; fail: return Qnil; @@ -6444,9 +6153,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_delete_trigger_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + memcached_trigger_delete_key result; void *argp1 = 0 ; int res1 = 0 ; - memcached_trigger_delete_key result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -6454,7 +6163,7 @@ _wrap_MemcachedSt_delete_trigger_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","delete_trigger", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_trigger" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = ((arg1)->delete_trigger); @@ -6479,12 +6188,12 @@ _wrap_MemcachedSt_prefix_key_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "prefix_key" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, MEMCACHED_PREFIX_KEY_MAX_SIZE); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [MEMCACHED_PREFIX_KEY_MAX_SIZE]","prefix_key", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "prefix_key" "', argument " "2"" of type '" "char [MEMCACHED_PREFIX_KEY_MAX_SIZE]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->prefix_key,arg2,MEMCACHED_PREFIX_KEY_MAX_SIZE*sizeof(char)); @@ -6498,9 +6207,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedSt_prefix_key_get(int argc, VALUE *argv, VALUE self) { struct memcached_st *arg1 = (struct memcached_st *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -6508,7 +6217,7 @@ _wrap_MemcachedSt_prefix_key_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "prefix_key" "', argument " "1"" of type '" "struct memcached_st *""'"); } arg1 = (struct memcached_st *)(argp1); result = (char *)(char *) ((arg1)->prefix_key); @@ -6525,6 +6234,68 @@ fail: } +SWIGINTERN VALUE +_wrap_MemcachedSt_number_of_replicas_set(int argc, VALUE *argv, VALUE self) { + struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "number_of_replicas" "', argument " "1"" of type '" "struct memcached_st *""'"); + } + arg1 = (struct memcached_st *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "number_of_replicas" "', argument " "2"" of type '" "uint32_t""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "number_of_replicas" "', argument " "2"" of type '" "uint32_t""'"); + } else { + arg2 = *((uint32_t *)(argp2)); + } + } + if (arg1) (arg1)->number_of_replicas = arg2; + + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_MemcachedSt_number_of_replicas_get(int argc, VALUE *argv, VALUE self) { + struct memcached_st *arg1 = (struct memcached_st *) 0 ; + uint32_t result; + void *argp1 = 0 ; + int res1 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "number_of_replicas" "', argument " "1"" of type '" "struct memcached_st *""'"); + } + arg1 = (struct memcached_st *)(argp1); + result = ((arg1)->number_of_replicas); + { + vresult = UINT2NUM(result); + } + return vresult; +fail: + return Qnil; +} + + #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MemcachedSt_allocate(VALUE self) { @@ -6549,14 +6320,43 @@ _wrap_new_MemcachedSt(int argc, VALUE *argv, VALUE self) { if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } - result = (struct memcached_st *)calloc(1, sizeof(struct memcached_st)); - DATA_PTR(self) = result; + result = (struct memcached_st *)(struct memcached_st *) calloc(1, sizeof(struct memcached_st));DATA_PTR(self) = result; + return self; fail: return Qnil; } +SWIGINTERN void +free_memcached_st(struct memcached_st *arg1) { + free((char *) arg1); +} + +SWIGINTERN VALUE +_wrap_memcached_version(int argc, VALUE *argv, VALUE self) { + memcached_st *arg1 = (memcached_st *) 0 ; + memcached_return result; + void *argp1 = 0 ; + int res1 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_version" "', argument " "1"" of type '" "memcached_st *""'"); + } + arg1 = (memcached_st *)(argp1); + result = (memcached_return)memcached_version(arg1); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + SWIGINTERN VALUE _wrap_memcached_lib_version(int argc, VALUE *argv, VALUE self) { char *result = 0 ; @@ -6576,9 +6376,9 @@ fail: SWIGINTERN VALUE _wrap_memcached_create(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; + memcached_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - memcached_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { @@ -6586,7 +6386,7 @@ _wrap_memcached_create(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_create", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_create" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); result = (memcached_st *)memcached_create(arg1); @@ -6608,7 +6408,7 @@ _wrap_memcached_free(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_free", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_free" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); memcached_free(arg1); @@ -6622,11 +6422,11 @@ SWIGINTERN VALUE _wrap_memcached_clone(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_st *arg2 = (memcached_st *) 0 ; + memcached_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - memcached_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -6634,12 +6434,12 @@ _wrap_memcached_clone(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_clone", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_clone" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st *","memcached_clone", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_clone" "', argument " "2"" of type '" "memcached_st *""'"); } arg2 = (memcached_st *)(argp2); result = (memcached_st *)memcached_clone(arg1,arg2); @@ -6656,9 +6456,9 @@ _wrap_memcached_delete(int argc, VALUE *argv, VALUE self) { char *arg2 = (char *) 0 ; size_t arg3 ; time_t arg4 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { @@ -6666,7 +6466,7 @@ _wrap_memcached_delete(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_delete", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_delete" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -6694,13 +6494,13 @@ _wrap_memcached_increment(int argc, VALUE *argv, VALUE self) { size_t arg3 ; uint32_t arg4 ; uint64_t *arg5 = (uint64_t *) 0 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val4 ; int ecode4 = 0 ; uint64_t temp5 ; int res5 = SWIG_TMPOBJ ; - memcached_return result; VALUE vresult = Qnil; arg5 = &temp5; @@ -6709,7 +6509,7 @@ _wrap_memcached_increment(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_increment", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_increment" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -6718,7 +6518,7 @@ _wrap_memcached_increment(int argc, VALUE *argv, VALUE self) { } ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_increment", 4, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_increment" "', argument " "4"" of type '" "uint32_t""'"); } arg4 = (uint32_t)(val4); result = (memcached_return)memcached_increment(arg1,(char const *)arg2,arg3,arg4,arg5); @@ -6742,13 +6542,13 @@ _wrap_memcached_decrement(int argc, VALUE *argv, VALUE self) { size_t arg3 ; uint32_t arg4 ; uint64_t *arg5 = (uint64_t *) 0 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val4 ; int ecode4 = 0 ; uint64_t temp5 ; int res5 = SWIG_TMPOBJ ; - memcached_return result; VALUE vresult = Qnil; arg5 = &temp5; @@ -6757,7 +6557,7 @@ _wrap_memcached_decrement(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_decrement", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_decrement" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -6766,7 +6566,7 @@ _wrap_memcached_decrement(int argc, VALUE *argv, VALUE self) { } ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_decrement", 4, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_decrement" "', argument " "4"" of type '" "uint32_t""'"); } arg4 = (uint32_t)(val4); result = (memcached_return)memcached_decrement(arg1,(char const *)arg2,arg3,arg4,arg5); @@ -6792,6 +6592,7 @@ _wrap_memcached_increment_with_initial(int argc, VALUE *argv, VALUE self) { uint64_t arg5 ; time_t arg6 ; uint64_t *arg7 = (uint64_t *) 0 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; void *argp4 ; @@ -6800,7 +6601,6 @@ _wrap_memcached_increment_with_initial(int argc, VALUE *argv, VALUE self) { int res5 = 0 ; uint64_t temp7 ; int res7 = SWIG_TMPOBJ ; - memcached_return result; VALUE vresult = Qnil; arg7 = &temp7; @@ -6809,7 +6609,7 @@ _wrap_memcached_increment_with_initial(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_increment_with_initial", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_increment_with_initial" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -6819,10 +6619,10 @@ _wrap_memcached_increment_with_initial(int argc, VALUE *argv, VALUE self) { { res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint64_t","memcached_increment_with_initial", 4, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "memcached_increment_with_initial" "', argument " "4"" of type '" "uint64_t""'"); } if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_increment_with_initial", 4, argv[2])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "memcached_increment_with_initial" "', argument " "4"" of type '" "uint64_t""'"); } else { arg4 = *((uint64_t *)(argp4)); } @@ -6830,10 +6630,10 @@ _wrap_memcached_increment_with_initial(int argc, VALUE *argv, VALUE self) { { res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "uint64_t","memcached_increment_with_initial", 5, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "memcached_increment_with_initial" "', argument " "5"" of type '" "uint64_t""'"); } if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_increment_with_initial", 5, argv[3])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "memcached_increment_with_initial" "', argument " "5"" of type '" "uint64_t""'"); } else { arg5 = *((uint64_t *)(argp5)); } @@ -6867,6 +6667,7 @@ _wrap_memcached_decrement_with_initial(int argc, VALUE *argv, VALUE self) { uint64_t arg5 ; time_t arg6 ; uint64_t *arg7 = (uint64_t *) 0 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; void *argp4 ; @@ -6875,7 +6676,6 @@ _wrap_memcached_decrement_with_initial(int argc, VALUE *argv, VALUE self) { int res5 = 0 ; uint64_t temp7 ; int res7 = SWIG_TMPOBJ ; - memcached_return result; VALUE vresult = Qnil; arg7 = &temp7; @@ -6884,7 +6684,7 @@ _wrap_memcached_decrement_with_initial(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_decrement_with_initial", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_decrement_with_initial" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -6894,10 +6694,10 @@ _wrap_memcached_decrement_with_initial(int argc, VALUE *argv, VALUE self) { { res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint64_t","memcached_decrement_with_initial", 4, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "memcached_decrement_with_initial" "', argument " "4"" of type '" "uint64_t""'"); } if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_decrement_with_initial", 4, argv[2])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "memcached_decrement_with_initial" "', argument " "4"" of type '" "uint64_t""'"); } else { arg4 = *((uint64_t *)(argp4)); } @@ -6905,10 +6705,10 @@ _wrap_memcached_decrement_with_initial(int argc, VALUE *argv, VALUE self) { { res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res5)) { - SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "uint64_t","memcached_decrement_with_initial", 5, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "memcached_decrement_with_initial" "', argument " "5"" of type '" "uint64_t""'"); } if (!argp5) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_decrement_with_initial", 5, argv[3])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "memcached_decrement_with_initial" "', argument " "5"" of type '" "uint64_t""'"); } else { arg5 = *((uint64_t *)(argp5)); } @@ -6947,12 +6747,12 @@ _wrap_memcached_stat_free(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_free", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_free" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_free", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_free" "', argument " "2"" of type '" "memcached_stat_st *""'"); } arg2 = (memcached_stat_st *)(argp2); memcached_stat_free(arg1,arg2); @@ -6967,6 +6767,7 @@ _wrap_memcached_stat(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; char *arg2 = (char *) 0 ; memcached_return *arg3 = (memcached_return *) 0 ; + memcached_stat_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -6974,7 +6775,6 @@ _wrap_memcached_stat(int argc, VALUE *argv, VALUE self) { int alloc2 = 0 ; memcached_return temp3 ; int res3 = SWIG_TMPOBJ ; - memcached_stat_st *result = 0 ; VALUE vresult = Qnil; arg3 = &temp3; @@ -6983,12 +6783,12 @@ _wrap_memcached_stat(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_stat", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); result = (memcached_stat_st *)memcached_stat(arg1,arg2,arg3); @@ -7013,6 +6813,7 @@ _wrap_memcached_stat_servername(int argc, VALUE *argv, VALUE self) { char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; unsigned int arg4 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -7023,7 +6824,6 @@ _wrap_memcached_stat_servername(int argc, VALUE *argv, VALUE self) { int alloc3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { @@ -7031,22 +6831,22 @@ _wrap_memcached_stat_servername(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_servername", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_servername" "', argument " "1"" of type '" "memcached_stat_st *""'"); } arg1 = (memcached_stat_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_stat_servername", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_servername" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","memcached_stat_servername", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_stat_servername" "', argument " "3"" of type '" "char *""'"); } arg3 = (char *)(buf3); ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_stat_servername", 4, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_stat_servername" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = (unsigned int)(val4); result = (memcached_return)memcached_stat_servername(arg1,arg2,arg3,arg4); @@ -7065,9 +6865,9 @@ SWIGINTERN VALUE _wrap_memcached_flush(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; time_t arg2 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -7075,7 +6875,7 @@ _wrap_memcached_flush(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_flush", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_flush" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -7096,11 +6896,11 @@ SWIGINTERN VALUE _wrap_memcached_verbosity(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; unsigned int arg2 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -7108,12 +6908,12 @@ _wrap_memcached_verbosity(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_verbosity", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_verbosity" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","memcached_verbosity", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_verbosity" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); result = (memcached_return)memcached_verbosity(arg1,arg2); @@ -7135,7 +6935,7 @@ _wrap_memcached_quit(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_quit", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_quit" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); memcached_quit(arg1); @@ -7149,11 +6949,11 @@ SWIGINTERN VALUE _wrap_memcached_strerror(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_return arg2 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -7161,12 +6961,12 @@ _wrap_memcached_strerror(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_strerror", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_strerror" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_return","memcached_strerror", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_strerror" "', argument " "2"" of type '" "memcached_return""'"); } arg2 = (memcached_return)(val2); result = (char *)memcached_strerror(arg1,arg2); @@ -7182,13 +6982,13 @@ _wrap_memcached_behavior_set(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_behavior arg2 ; uint64_t arg3 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; unsigned long long val3 ; int ecode3 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { @@ -7196,17 +6996,17 @@ _wrap_memcached_behavior_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_set", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_behavior_set" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_behavior","memcached_behavior_set", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_behavior_set" "', argument " "2"" of type '" "memcached_behavior""'"); } arg2 = (memcached_behavior)(val2); ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","memcached_behavior_set", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_behavior_set" "', argument " "3"" of type '" "uint64_t""'"); } arg3 = (uint64_t)(val3); result = (memcached_return)memcached_behavior_set(arg1,arg2,arg3); @@ -7221,11 +7021,11 @@ SWIGINTERN VALUE _wrap_memcached_behavior_get(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_behavior arg2 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -7233,12 +7033,12 @@ _wrap_memcached_behavior_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_get", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_behavior_get" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_behavior","memcached_behavior_get", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_behavior_get" "', argument " "2"" of type '" "memcached_behavior""'"); } arg2 = (memcached_behavior)(val2); result = memcached_behavior_get(arg1,arg2); @@ -7256,9 +7056,9 @@ _wrap_memcached_generate_hash_value(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; size_t arg2 ; memcached_hash arg3 ; + uint32_t result; int val3 ; int ecode3 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -7270,7 +7070,7 @@ _wrap_memcached_generate_hash_value(int argc, VALUE *argv, VALUE self) { } ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "memcached_hash","memcached_generate_hash_value", 3, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_generate_hash_value" "', argument " "3"" of type '" "memcached_hash""'"); } arg3 = (memcached_hash)(val3); result = memcached_generate_hash_value((char const *)arg1,arg2,arg3); @@ -7288,9 +7088,9 @@ _wrap_memcached_generate_hash(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -7298,7 +7098,7 @@ _wrap_memcached_generate_hash(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_generate_hash", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_generate_hash" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -7318,9 +7118,9 @@ fail: SWIGINTERN VALUE _wrap_memcached_flush_buffers(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { @@ -7328,7 +7128,7 @@ _wrap_memcached_flush_buffers(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_flush_buffers", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_flush_buffers" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); result = (memcached_return)memcached_flush_buffers(arg1); @@ -7344,6 +7144,7 @@ _wrap_memcached_server_add_udp(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; char *arg2 = (char *) 0 ; unsigned int arg3 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -7351,7 +7152,6 @@ _wrap_memcached_server_add_udp(int argc, VALUE *argv, VALUE self) { int alloc2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { @@ -7359,17 +7159,17 @@ _wrap_memcached_server_add_udp(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_udp", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_add_udp" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_udp", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_add_udp" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add_udp", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_add_udp" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = (unsigned int)(val3); result = (memcached_return)memcached_server_add_udp(arg1,(char const *)arg2,arg3); @@ -7386,12 +7186,12 @@ SWIGINTERN VALUE _wrap_memcached_server_add_unix_socket(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; char *arg2 = (char *) 0 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -7399,12 +7199,12 @@ _wrap_memcached_server_add_unix_socket(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_unix_socket", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_add_unix_socket" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_unix_socket", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_add_unix_socket" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (memcached_return)memcached_server_add_unix_socket(arg1,(char const *)arg2); @@ -7422,6 +7222,7 @@ _wrap_memcached_server_add(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; char *arg2 = (char *) 0 ; unsigned int arg3 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -7429,7 +7230,6 @@ _wrap_memcached_server_add(int argc, VALUE *argv, VALUE self) { int alloc2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { @@ -7437,17 +7237,17 @@ _wrap_memcached_server_add(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_add" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_add" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_add" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = (unsigned int)(val3); result = (memcached_return)memcached_server_add(arg1,(char const *)arg2,arg3); @@ -7466,6 +7266,7 @@ _wrap_memcached_server_add_udp_with_weight(int argc, VALUE *argv, VALUE self) { char *arg2 = (char *) 0 ; unsigned int arg3 ; uint32_t arg4 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -7475,7 +7276,6 @@ _wrap_memcached_server_add_udp_with_weight(int argc, VALUE *argv, VALUE self) { int ecode3 = 0 ; unsigned long val4 ; int ecode4 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { @@ -7483,22 +7283,22 @@ _wrap_memcached_server_add_udp_with_weight(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_udp_with_weight", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_add_udp_with_weight" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_udp_with_weight", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_add_udp_with_weight" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add_udp_with_weight", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_add_udp_with_weight" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = (unsigned int)(val3); ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_add_udp_with_weight", 4, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_server_add_udp_with_weight" "', argument " "4"" of type '" "uint32_t""'"); } arg4 = (uint32_t)(val4); result = (memcached_return)memcached_server_add_udp_with_weight(arg1,(char const *)arg2,arg3,arg4); @@ -7516,6 +7316,7 @@ _wrap_memcached_server_add_unix_socket_with_weight(int argc, VALUE *argv, VALUE memcached_st *arg1 = (memcached_st *) 0 ; char *arg2 = (char *) 0 ; uint32_t arg3 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -7523,7 +7324,6 @@ _wrap_memcached_server_add_unix_socket_with_weight(int argc, VALUE *argv, VALUE int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { @@ -7531,17 +7331,17 @@ _wrap_memcached_server_add_unix_socket_with_weight(int argc, VALUE *argv, VALUE } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_unix_socket_with_weight", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_add_unix_socket_with_weight" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_unix_socket_with_weight", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_add_unix_socket_with_weight" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","memcached_server_add_unix_socket_with_weight", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_add_unix_socket_with_weight" "', argument " "3"" of type '" "uint32_t""'"); } arg3 = (uint32_t)(val3); result = (memcached_return)memcached_server_add_unix_socket_with_weight(arg1,(char const *)arg2,arg3); @@ -7560,6 +7360,7 @@ _wrap_memcached_server_add_with_weight(int argc, VALUE *argv, VALUE self) { char *arg2 = (char *) 0 ; unsigned int arg3 ; uint32_t arg4 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -7569,7 +7370,6 @@ _wrap_memcached_server_add_with_weight(int argc, VALUE *argv, VALUE self) { int ecode3 = 0 ; unsigned long val4 ; int ecode4 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { @@ -7577,22 +7377,22 @@ _wrap_memcached_server_add_with_weight(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_with_weight", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_add_with_weight" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_with_weight", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_add_with_weight" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add_with_weight", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_add_with_weight" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = (unsigned int)(val3); ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_add_with_weight", 4, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_server_add_with_weight" "', argument " "4"" of type '" "uint32_t""'"); } arg4 = (uint32_t)(val4); result = (memcached_return)memcached_server_add_with_weight(arg1,(char const *)arg2,arg3,arg4); @@ -7616,7 +7416,7 @@ _wrap_memcached_server_list_free(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_free", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_list_free" "', argument " "1"" of type '" "memcached_server_st *""'"); } arg1 = (memcached_server_st *)(argp1); memcached_server_list_free(arg1); @@ -7630,11 +7430,11 @@ SWIGINTERN VALUE _wrap_memcached_server_push(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_server_st *arg2 = (memcached_server_st *) 0 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -7642,12 +7442,12 @@ _wrap_memcached_server_push(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_push", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_push" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_push", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_push" "', argument " "2"" of type '" "memcached_server_st *""'"); } arg2 = (memcached_server_st *)(argp2); result = (memcached_return)memcached_server_push(arg1,arg2); @@ -7664,6 +7464,7 @@ _wrap_memcached_server_list_append(int argc, VALUE *argv, VALUE self) { char *arg2 = (char *) 0 ; unsigned int arg3 ; memcached_return *arg4 = (memcached_return *) 0 ; + memcached_server_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -7673,7 +7474,6 @@ _wrap_memcached_server_list_append(int argc, VALUE *argv, VALUE self) { int ecode3 = 0 ; memcached_return temp4 ; int res4 = SWIG_TMPOBJ ; - memcached_server_st *result = 0 ; VALUE vresult = Qnil; arg4 = &temp4; @@ -7682,17 +7482,17 @@ _wrap_memcached_server_list_append(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_append", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_list_append" "', argument " "1"" of type '" "memcached_server_st *""'"); } arg1 = (memcached_server_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_list_append", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_list_append" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_list_append", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_list_append" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = (unsigned int)(val3); result = (memcached_server_st *)memcached_server_list_append(arg1,(char const *)arg2,arg3,arg4); @@ -7718,6 +7518,7 @@ _wrap_memcached_server_list_append_with_weight(int argc, VALUE *argv, VALUE self unsigned int arg3 ; uint32_t arg4 ; memcached_return *arg5 = (memcached_return *) 0 ; + memcached_server_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -7729,7 +7530,6 @@ _wrap_memcached_server_list_append_with_weight(int argc, VALUE *argv, VALUE self int ecode4 = 0 ; memcached_return temp5 ; int res5 = SWIG_TMPOBJ ; - memcached_server_st *result = 0 ; VALUE vresult = Qnil; arg5 = &temp5; @@ -7738,22 +7538,22 @@ _wrap_memcached_server_list_append_with_weight(int argc, VALUE *argv, VALUE self } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_append_with_weight", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_list_append_with_weight" "', argument " "1"" of type '" "memcached_server_st *""'"); } arg1 = (memcached_server_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_list_append_with_weight", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_list_append_with_weight" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_list_append_with_weight", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_list_append_with_weight" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = (unsigned int)(val3); ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_list_append_with_weight", 4, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_server_list_append_with_weight" "', argument " "4"" of type '" "uint32_t""'"); } arg4 = (uint32_t)(val4); result = (memcached_server_st *)memcached_server_list_append_with_weight(arg1,(char const *)arg2,arg3,arg4,arg5); @@ -7775,9 +7575,9 @@ fail: SWIGINTERN VALUE _wrap_memcached_server_list_count(int argc, VALUE *argv, VALUE self) { memcached_server_st *arg1 = (memcached_server_st *) 0 ; + unsigned int result; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { @@ -7785,7 +7585,7 @@ _wrap_memcached_server_list_count(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_count", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_list_count" "', argument " "1"" of type '" "memcached_server_st *""'"); } arg1 = (memcached_server_st *)(argp1); result = (unsigned int)memcached_server_list_count(arg1); @@ -7799,10 +7599,10 @@ fail: SWIGINTERN VALUE _wrap_memcached_servers_parse(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; + memcached_server_st *result = 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; - memcached_server_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { @@ -7810,7 +7610,7 @@ _wrap_memcached_servers_parse(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","memcached_servers_parse", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_servers_parse" "', argument " "1"" of type '" "char const *""'"); } arg1 = (char *)(buf1); result = (memcached_server_st *)memcached_servers_parse((char const *)arg1); @@ -7829,6 +7629,7 @@ _wrap_memcached_stat_get_value(int argc, VALUE *argv, VALUE self) { memcached_stat_st *arg2 = (memcached_stat_st *) 0 ; char *arg3 = (char *) 0 ; memcached_return *arg4 = (memcached_return *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -7838,7 +7639,6 @@ _wrap_memcached_stat_get_value(int argc, VALUE *argv, VALUE self) { int alloc3 = 0 ; memcached_return temp4 ; int res4 = SWIG_TMPOBJ ; - char *result = 0 ; VALUE vresult = Qnil; arg4 = &temp4; @@ -7847,17 +7647,17 @@ _wrap_memcached_stat_get_value(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_get_value", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_get_value" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_value", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_get_value" "', argument " "2"" of type '" "memcached_stat_st *""'"); } arg2 = (memcached_stat_st *)(argp2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","memcached_stat_get_value", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_stat_get_value" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (char *)memcached_stat_get_value(arg1,arg2,(char const *)arg3,arg4); @@ -7881,13 +7681,13 @@ _wrap_memcached_stat_get_keys(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_stat_st *arg2 = (memcached_stat_st *) 0 ; memcached_return *arg3 = (memcached_return *) 0 ; + char **result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; memcached_return temp3 ; int res3 = SWIG_TMPOBJ ; - char **result = 0 ; VALUE vresult = Qnil; arg3 = &temp3; @@ -7896,12 +7696,12 @@ _wrap_memcached_stat_get_keys(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_get_keys", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_get_keys" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_keys", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_get_keys" "', argument " "2"" of type '" "memcached_stat_st *""'"); } arg2 = (memcached_stat_st *)(argp2); result = (char **)memcached_stat_get_keys(arg1,arg2,arg3); @@ -7936,9 +7736,9 @@ _wrap_memcached_delete_by_key(int argc, VALUE *argv, VALUE self) { char *arg4 = (char *) 0 ; size_t arg5 ; time_t arg6 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { @@ -7946,7 +7746,7 @@ _wrap_memcached_delete_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_delete_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_delete_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -7973,6 +7773,7 @@ _wrap_memcached_fetch_execute(int argc, VALUE *argv, VALUE self) { memcached_execute_function *arg2 = (memcached_execute_function *) 0 ; void *arg3 = (void *) 0 ; unsigned int arg4 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -7980,7 +7781,6 @@ _wrap_memcached_fetch_execute(int argc, VALUE *argv, VALUE self) { int res3 ; unsigned int val4 ; int ecode4 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { @@ -7988,21 +7788,21 @@ _wrap_memcached_fetch_execute(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_execute", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_fetch_execute" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_execute_function, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_execute_function *","memcached_fetch_execute", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_fetch_execute" "', argument " "2"" of type '" "memcached_execute_function *""'"); } arg2 = (memcached_execute_function *)(argp2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_fetch_execute", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_fetch_execute" "', argument " "3"" of type '" "void *""'"); } ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_fetch_execute", 4, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_fetch_execute" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = (unsigned int)(val4); result = (memcached_return)memcached_fetch_execute(arg1,arg2,arg3,arg4); @@ -8018,11 +7818,11 @@ _wrap_memcached_callback_set(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_callback arg2 ; void *arg3 = (void *) 0 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { @@ -8030,12 +7830,12 @@ _wrap_memcached_callback_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_callback_set", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_callback_set" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_callback","memcached_callback_set", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_callback_set" "', argument " "2"" of type '" "memcached_callback""'"); } arg2 = (memcached_callback)(val2); { @@ -8054,13 +7854,13 @@ _wrap_memcached_callback_get(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_callback arg2 ; memcached_return *arg3 = (memcached_return *) 0 ; + void *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; memcached_return temp3 ; int res3 = SWIG_TMPOBJ ; - void *result = 0 ; VALUE vresult = Qnil; arg3 = &temp3; @@ -8069,12 +7869,12 @@ _wrap_memcached_callback_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_callback_get", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_callback_get" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_callback","memcached_callback_get", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_callback_get" "', argument " "2"" of type '" "memcached_callback""'"); } arg2 = (memcached_callback)(val2); result = (void *)memcached_callback_get(arg1,arg2,arg3); @@ -8097,6 +7897,7 @@ _wrap_memcached_dump(int argc, VALUE *argv, VALUE self) { memcached_dump_func *arg2 = (memcached_dump_func *) 0 ; void *arg3 = (void *) 0 ; uint32_t arg4 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -8104,7 +7905,6 @@ _wrap_memcached_dump(int argc, VALUE *argv, VALUE self) { int res3 ; void *argp4 ; int res4 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { @@ -8112,25 +7912,25 @@ _wrap_memcached_dump(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_dump", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_dump" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_dump_func, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_dump_func *","memcached_dump", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_dump" "', argument " "2"" of type '" "memcached_dump_func *""'"); } arg2 = (memcached_dump_func *)(argp2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_dump", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_dump" "', argument " "3"" of type '" "void *""'"); } { res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint32_t","memcached_dump", 4, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "memcached_dump" "', argument " "4"" of type '" "uint32_t""'"); } if (!argp4) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","memcached_dump", 4, argv[3])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "memcached_dump" "', argument " "4"" of type '" "uint32_t""'"); } else { arg4 = *((uint32_t *)(argp4)); } @@ -8143,6 +7943,295 @@ fail: } +SWIGINTERN VALUE +_wrap_memcached_set_memory_allocators(int argc, VALUE *argv, VALUE self) { + memcached_st *arg1 = (memcached_st *) 0 ; + memcached_malloc_function arg2 ; + memcached_free_function arg3 ; + memcached_realloc_function arg4 ; + memcached_calloc_function arg5 ; + memcached_return result; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 ; + int res2 = 0 ; + void *argp3 ; + int res3 = 0 ; + void *argp4 ; + int res4 = 0 ; + void *argp5 ; + int res5 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 5) || (argc > 5)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_set_memory_allocators" "', argument " "1"" of type '" "memcached_st *""'"); + } + arg1 = (memcached_st *)(argp1); + { + res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_memcached_malloc_function, 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_set_memory_allocators" "', argument " "2"" of type '" "memcached_malloc_function""'"); + } + if (!argp2) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "memcached_set_memory_allocators" "', argument " "2"" of type '" "memcached_malloc_function""'"); + } else { + arg2 = *((memcached_malloc_function *)(argp2)); + } + } + { + res3 = SWIG_ConvertPtr(argv[2], &argp3, SWIGTYPE_p_memcached_free_function, 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_set_memory_allocators" "', argument " "3"" of type '" "memcached_free_function""'"); + } + if (!argp3) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "memcached_set_memory_allocators" "', argument " "3"" of type '" "memcached_free_function""'"); + } else { + arg3 = *((memcached_free_function *)(argp3)); + } + } + { + res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_memcached_realloc_function, 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "memcached_set_memory_allocators" "', argument " "4"" of type '" "memcached_realloc_function""'"); + } + if (!argp4) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "memcached_set_memory_allocators" "', argument " "4"" of type '" "memcached_realloc_function""'"); + } else { + arg4 = *((memcached_realloc_function *)(argp4)); + } + } + { + res5 = SWIG_ConvertPtr(argv[4], &argp5, SWIGTYPE_p_memcached_calloc_function, 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "memcached_set_memory_allocators" "', argument " "5"" of type '" "memcached_calloc_function""'"); + } + if (!argp5) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "memcached_set_memory_allocators" "', argument " "5"" of type '" "memcached_calloc_function""'"); + } else { + arg5 = *((memcached_calloc_function *)(argp5)); + } + } + result = (memcached_return)memcached_set_memory_allocators(arg1,arg2,arg3,arg4,arg5); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_memcached_get_memory_allocators(int argc, VALUE *argv, VALUE self) { + memcached_st *arg1 = (memcached_st *) 0 ; + memcached_malloc_function *arg2 = (memcached_malloc_function *) 0 ; + memcached_free_function *arg3 = (memcached_free_function *) 0 ; + memcached_realloc_function *arg4 = (memcached_realloc_function *) 0 ; + memcached_calloc_function *arg5 = (memcached_calloc_function *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + void *argp3 = 0 ; + int res3 = 0 ; + void *argp4 = 0 ; + int res4 = 0 ; + void *argp5 = 0 ; + int res5 = 0 ; + + if ((argc < 5) || (argc > 5)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_get_memory_allocators" "', argument " "1"" of type '" "memcached_st *""'"); + } + arg1 = (memcached_st *)(argp1); + res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_malloc_function, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_get_memory_allocators" "', argument " "2"" of type '" "memcached_malloc_function *""'"); + } + arg2 = (memcached_malloc_function *)(argp2); + res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_memcached_free_function, 0 | 0 ); + if (!SWIG_IsOK(res3)) { + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_get_memory_allocators" "', argument " "3"" of type '" "memcached_free_function *""'"); + } + arg3 = (memcached_free_function *)(argp3); + res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_memcached_realloc_function, 0 | 0 ); + if (!SWIG_IsOK(res4)) { + SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "memcached_get_memory_allocators" "', argument " "4"" of type '" "memcached_realloc_function *""'"); + } + arg4 = (memcached_realloc_function *)(argp4); + res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_memcached_calloc_function, 0 | 0 ); + if (!SWIG_IsOK(res5)) { + SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "memcached_get_memory_allocators" "', argument " "5"" of type '" "memcached_calloc_function *""'"); + } + arg5 = (memcached_calloc_function *)(argp5); + memcached_get_memory_allocators(arg1,arg2,arg3,arg4,arg5); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_memcached_get_user_data(int argc, VALUE *argv, VALUE self) { + memcached_st *arg1 = (memcached_st *) 0 ; + void *result = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_get_user_data" "', argument " "1"" of type '" "memcached_st *""'"); + } + arg1 = (memcached_st *)(argp1); + result = (void *)memcached_get_user_data(arg1); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_memcached_set_user_data(int argc, VALUE *argv, VALUE self) { + memcached_st *arg1 = (memcached_st *) 0 ; + void *arg2 = (void *) 0 ; + void *result = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_set_user_data" "', argument " "1"" of type '" "memcached_st *""'"); + } + arg1 = (memcached_st *)(argp1); + { + arg2 = STR2CSTR(argv[1]); + } + result = (void *)memcached_set_user_data(arg1,arg2); + vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_run_distribution(int argc, VALUE *argv, VALUE self) { + memcached_st *arg1 = (memcached_st *) 0 ; + memcached_return result; + void *argp1 = 0 ; + int res1 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "run_distribution" "', argument " "1"" of type '" "memcached_st *""'"); + } + arg1 = (memcached_st *)(argp1); + result = (memcached_return)run_distribution(arg1); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_memcached_set_last_error(int argc, VALUE *argv, VALUE self) { + memcached_server_st *arg1 = (memcached_server_st *) 0 ; + char *arg2 = (char *) 0 ; + bool result; + void *argp1 = 0 ; + int res1 = 0 ; + int res2 ; + char *buf2 = 0 ; + int alloc2 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 2) || (argc > 2)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_set_last_error" "', argument " "1"" of type '" "memcached_server_st *""'"); + } + arg1 = (memcached_server_st *)(argp1); + res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_set_last_error" "', argument " "2"" of type '" "char *""'"); + } + arg2 = (char *)(buf2); + result = (bool)memcached_set_last_error(arg1,arg2); + vresult = SWIG_From_bool((bool)(result)); + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return vresult; +fail: + if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_memcached_clear_last_error(int argc, VALUE *argv, VALUE self) { + memcached_server_st *arg1 = (memcached_server_st *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_clear_last_error" "', argument " "1"" of type '" "memcached_server_st *""'"); + } + arg1 = (memcached_server_st *)(argp1); + memcached_clear_last_error(arg1); + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_memcached_get_last_error(int argc, VALUE *argv, VALUE self) { + memcached_server_st *arg1 = (memcached_server_st *) 0 ; + char *result = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_get_last_error" "', argument " "1"" of type '" "memcached_server_st *""'"); + } + arg1 = (memcached_server_st *)(argp1); + result = (char *)memcached_get_last_error(arg1); + vresult = SWIG_FromCharPtr((const char *)result); + return vresult; +fail: + return Qnil; +} + + SWIGINTERN VALUE _wrap_memcached_get(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; @@ -8151,6 +8240,7 @@ _wrap_memcached_get(int argc, VALUE *argv, VALUE self) { size_t *arg4 = (size_t *) 0 ; uint32_t *arg5 = (uint32_t *) 0 ; memcached_return *arg6 = (memcached_return *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t temp4 ; @@ -8159,7 +8249,6 @@ _wrap_memcached_get(int argc, VALUE *argv, VALUE self) { int res5 = SWIG_TMPOBJ ; memcached_return temp6 ; int res6 = SWIG_TMPOBJ ; - char *result = 0 ; VALUE vresult = Qnil; arg4 = &temp4; @@ -8170,7 +8259,7 @@ _wrap_memcached_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_get" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8209,9 +8298,9 @@ _wrap_memcached_mget(int argc, VALUE *argv, VALUE self) { char **arg2 = (char **) 0 ; size_t *arg3 = (size_t *) 0 ; unsigned int arg4 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -8219,7 +8308,7 @@ _wrap_memcached_mget(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_mget" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8235,16 +8324,8 @@ _wrap_memcached_mget(int argc, VALUE *argv, VALUE self) { } result = (memcached_return)memcached_mget(arg1,arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); - { - free(arg2); - free(arg3); - } return vresult; fail: - { - free(arg2); - free(arg3); - } return Qnil; } @@ -8259,6 +8340,7 @@ _wrap_memcached_get_by_key(int argc, VALUE *argv, VALUE self) { size_t *arg6 = (size_t *) 0 ; uint32_t *arg7 = (uint32_t *) 0 ; memcached_return *arg8 = (memcached_return *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t temp6 ; @@ -8267,7 +8349,6 @@ _wrap_memcached_get_by_key(int argc, VALUE *argv, VALUE self) { int res7 = SWIG_TMPOBJ ; memcached_return temp8 ; int res8 = SWIG_TMPOBJ ; - char *result = 0 ; VALUE vresult = Qnil; arg6 = &temp6; @@ -8278,7 +8359,7 @@ _wrap_memcached_get_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_get_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8319,6 +8400,7 @@ _wrap_memcached_mget_by_key(int argc, VALUE *argv, VALUE self) { char **arg4 = (char **) 0 ; size_t *arg5 = (size_t *) 0 ; unsigned int arg6 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -8326,7 +8408,6 @@ _wrap_memcached_mget_by_key(int argc, VALUE *argv, VALUE self) { int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { @@ -8334,17 +8415,17 @@ _wrap_memcached_mget_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_mget_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_mget_by_key", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_mget_by_key" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_mget_by_key", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_mget_by_key" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); { @@ -8361,17 +8442,9 @@ _wrap_memcached_mget_by_key(int argc, VALUE *argv, VALUE self) { result = (memcached_return)memcached_mget_by_key(arg1,(char const *)arg2,arg3,arg4,arg5,arg6); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); - { - free(arg4); - free(arg5); - } return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); - { - free(arg4); - free(arg5); - } return Qnil; } @@ -8384,6 +8457,7 @@ _wrap_memcached_fetch(int argc, VALUE *argv, VALUE self) { size_t *arg4 = (size_t *) 0 ; uint32_t *arg5 = (uint32_t *) 0 ; memcached_return *arg6 = (memcached_return *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t temp4 ; @@ -8392,7 +8466,6 @@ _wrap_memcached_fetch(int argc, VALUE *argv, VALUE self) { int res5 = SWIG_TMPOBJ ; memcached_return temp6 ; int res6 = SWIG_TMPOBJ ; - char *result = 0 ; VALUE vresult = Qnil; { @@ -8409,7 +8482,7 @@ _wrap_memcached_fetch(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_fetch" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); result = (char *)memcached_fetch(arg1,arg2,arg3,arg4,arg5,arg6); @@ -8447,13 +8520,13 @@ _wrap_memcached_fetch_result(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_result_st *arg2 = (memcached_result_st *) 0 ; memcached_return *arg3 = (memcached_return *) 0 ; + memcached_result_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; memcached_return temp3 ; int res3 = SWIG_TMPOBJ ; - memcached_result_st *result = 0 ; VALUE vresult = Qnil; arg3 = &temp3; @@ -8462,12 +8535,12 @@ _wrap_memcached_fetch_result(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_result", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_fetch_result" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_fetch_result", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_fetch_result" "', argument " "2"" of type '" "memcached_result_st *""'"); } arg2 = (memcached_result_st *)(argp2); result = (memcached_result_st *)memcached_fetch_result(arg1,arg2,arg3); @@ -8493,11 +8566,11 @@ _wrap_memcached_set(int argc, VALUE *argv, VALUE self) { size_t arg5 ; time_t arg6 ; uint32_t arg7 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val7 ; int ecode7 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -8505,7 +8578,7 @@ _wrap_memcached_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_set" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8524,7 +8597,7 @@ _wrap_memcached_set(int argc, VALUE *argv, VALUE self) { } ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_set", 7, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_set" "', argument " "7"" of type '" "uint32_t""'"); } arg7 = (uint32_t)(val7); result = (memcached_return)memcached_set(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7); @@ -8544,11 +8617,11 @@ _wrap_memcached_add(int argc, VALUE *argv, VALUE self) { size_t arg5 ; time_t arg6 ; uint32_t arg7 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val7 ; int ecode7 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -8556,7 +8629,7 @@ _wrap_memcached_add(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_add", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_add" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8575,7 +8648,7 @@ _wrap_memcached_add(int argc, VALUE *argv, VALUE self) { } ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_add", 7, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_add" "', argument " "7"" of type '" "uint32_t""'"); } arg7 = (uint32_t)(val7); result = (memcached_return)memcached_add(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7); @@ -8595,11 +8668,11 @@ _wrap_memcached_replace(int argc, VALUE *argv, VALUE self) { size_t arg5 ; time_t arg6 ; uint32_t arg7 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val7 ; int ecode7 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -8607,7 +8680,7 @@ _wrap_memcached_replace(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_replace", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_replace" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8626,7 +8699,7 @@ _wrap_memcached_replace(int argc, VALUE *argv, VALUE self) { } ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_replace", 7, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_replace" "', argument " "7"" of type '" "uint32_t""'"); } arg7 = (uint32_t)(val7); result = (memcached_return)memcached_replace(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7); @@ -8646,11 +8719,11 @@ _wrap_memcached_append(int argc, VALUE *argv, VALUE self) { size_t arg5 ; time_t arg6 ; uint32_t arg7 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val7 ; int ecode7 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -8658,7 +8731,7 @@ _wrap_memcached_append(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_append", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_append" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8677,7 +8750,7 @@ _wrap_memcached_append(int argc, VALUE *argv, VALUE self) { } ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_append", 7, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_append" "', argument " "7"" of type '" "uint32_t""'"); } arg7 = (uint32_t)(val7); result = (memcached_return)memcached_append(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7); @@ -8697,11 +8770,11 @@ _wrap_memcached_prepend(int argc, VALUE *argv, VALUE self) { size_t arg5 ; time_t arg6 ; uint32_t arg7 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val7 ; int ecode7 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -8709,7 +8782,7 @@ _wrap_memcached_prepend(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_prepend", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_prepend" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8728,7 +8801,7 @@ _wrap_memcached_prepend(int argc, VALUE *argv, VALUE self) { } ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_prepend", 7, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_prepend" "', argument " "7"" of type '" "uint32_t""'"); } arg7 = (uint32_t)(val7); result = (memcached_return)memcached_prepend(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7); @@ -8749,13 +8822,13 @@ _wrap_memcached_cas(int argc, VALUE *argv, VALUE self) { time_t arg6 ; uint32_t arg7 ; uint64_t arg8 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val7 ; int ecode7 = 0 ; unsigned long long val8 ; int ecode8 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 6) || (argc > 6)) { @@ -8763,7 +8836,7 @@ _wrap_memcached_cas(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_cas", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_cas" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8782,12 +8855,12 @@ _wrap_memcached_cas(int argc, VALUE *argv, VALUE self) { } ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7); if (!SWIG_IsOK(ecode7)) { - SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_cas", 7, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_cas" "', argument " "7"" of type '" "uint32_t""'"); } arg7 = (uint32_t)(val7); ecode8 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], &val8); if (!SWIG_IsOK(ecode8)) { - SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "uint64_t","memcached_cas", 8, argv[5] )); + SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "memcached_cas" "', argument " "8"" of type '" "uint64_t""'"); } arg8 = (uint64_t)(val8); result = (memcached_return)memcached_cas(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7,arg8); @@ -8809,11 +8882,11 @@ _wrap_memcached_set_by_key(int argc, VALUE *argv, VALUE self) { size_t arg7 ; time_t arg8 ; uint32_t arg9 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val9 ; int ecode9 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -8821,7 +8894,7 @@ _wrap_memcached_set_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_set_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8840,7 +8913,7 @@ _wrap_memcached_set_by_key(int argc, VALUE *argv, VALUE self) { } ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_set_by_key", 9, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_set_by_key" "', argument " "9"" of type '" "uint32_t""'"); } arg9 = (uint32_t)(val9); result = (memcached_return)memcached_set_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9); @@ -8862,11 +8935,11 @@ _wrap_memcached_add_by_key(int argc, VALUE *argv, VALUE self) { size_t arg7 ; time_t arg8 ; uint32_t arg9 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val9 ; int ecode9 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -8874,7 +8947,7 @@ _wrap_memcached_add_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_add_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_add_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8893,7 +8966,7 @@ _wrap_memcached_add_by_key(int argc, VALUE *argv, VALUE self) { } ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_add_by_key", 9, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_add_by_key" "', argument " "9"" of type '" "uint32_t""'"); } arg9 = (uint32_t)(val9); result = (memcached_return)memcached_add_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9); @@ -8915,11 +8988,11 @@ _wrap_memcached_replace_by_key(int argc, VALUE *argv, VALUE self) { size_t arg7 ; time_t arg8 ; uint32_t arg9 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val9 ; int ecode9 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -8927,7 +9000,7 @@ _wrap_memcached_replace_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_replace_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_replace_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8946,7 +9019,7 @@ _wrap_memcached_replace_by_key(int argc, VALUE *argv, VALUE self) { } ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_replace_by_key", 9, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_replace_by_key" "', argument " "9"" of type '" "uint32_t""'"); } arg9 = (uint32_t)(val9); result = (memcached_return)memcached_replace_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9); @@ -8968,11 +9041,11 @@ _wrap_memcached_prepend_by_key(int argc, VALUE *argv, VALUE self) { size_t arg7 ; time_t arg8 ; uint32_t arg9 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val9 ; int ecode9 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -8980,7 +9053,7 @@ _wrap_memcached_prepend_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_prepend_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_prepend_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -8999,7 +9072,7 @@ _wrap_memcached_prepend_by_key(int argc, VALUE *argv, VALUE self) { } ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_prepend_by_key", 9, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_prepend_by_key" "', argument " "9"" of type '" "uint32_t""'"); } arg9 = (uint32_t)(val9); result = (memcached_return)memcached_prepend_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9); @@ -9021,11 +9094,11 @@ _wrap_memcached_append_by_key(int argc, VALUE *argv, VALUE self) { size_t arg7 ; time_t arg8 ; uint32_t arg9 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val9 ; int ecode9 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5)) { @@ -9033,7 +9106,7 @@ _wrap_memcached_append_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_append_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_append_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -9052,7 +9125,7 @@ _wrap_memcached_append_by_key(int argc, VALUE *argv, VALUE self) { } ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_append_by_key", 9, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_append_by_key" "', argument " "9"" of type '" "uint32_t""'"); } arg9 = (uint32_t)(val9); result = (memcached_return)memcached_append_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9); @@ -9075,13 +9148,13 @@ _wrap_memcached_cas_by_key(int argc, VALUE *argv, VALUE self) { time_t arg8 ; uint32_t arg9 ; uint64_t arg10 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val9 ; int ecode9 = 0 ; unsigned long long val10 ; int ecode10 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 6) || (argc > 6)) { @@ -9089,7 +9162,7 @@ _wrap_memcached_cas_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_cas_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_cas_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -9108,12 +9181,12 @@ _wrap_memcached_cas_by_key(int argc, VALUE *argv, VALUE self) { } ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9); if (!SWIG_IsOK(ecode9)) { - SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_cas_by_key", 9, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_cas_by_key" "', argument " "9"" of type '" "uint32_t""'"); } arg9 = (uint32_t)(val9); ecode10 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], &val10); if (!SWIG_IsOK(ecode10)) { - SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "uint64_t","memcached_cas_by_key", 10, argv[5] )); + SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "memcached_cas_by_key" "', argument " "10"" of type '" "uint64_t""'"); } arg10 = (uint64_t)(val10); result = (memcached_return)memcached_cas_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9,arg10); @@ -9140,15 +9213,16 @@ _wrap_MemcachedResultSt_flags_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","flags", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","flags", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "flags" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = (uint32_t)(val2); if (arg1) (arg1)->flags = arg2; + return Qnil; fail: return Qnil; @@ -9158,9 +9232,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedResultSt_flags_get(int argc, VALUE *argv, VALUE self) { struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9168,7 +9242,7 @@ _wrap_MemcachedResultSt_flags_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","flags", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); result = ((arg1)->flags); @@ -9193,15 +9267,16 @@ _wrap_MemcachedResultSt_is_allocated_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","is_allocated", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_allocated", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "is_allocated" "', argument " "2"" of type '" "bool""'"); } arg2 = (bool)(val2); if (arg1) (arg1)->is_allocated = arg2; + return Qnil; fail: return Qnil; @@ -9211,9 +9286,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedResultSt_is_allocated_get(int argc, VALUE *argv, VALUE self) { struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ; + bool result; void *argp1 = 0 ; int res1 = 0 ; - bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9221,7 +9296,7 @@ _wrap_MemcachedResultSt_is_allocated_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","is_allocated", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); result = (bool) ((arg1)->is_allocated); @@ -9244,7 +9319,7 @@ _wrap_MemcachedResultSt_expiration_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","expiration", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "expiration" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); { @@ -9254,6 +9329,7 @@ _wrap_MemcachedResultSt_expiration_set(int argc, VALUE *argv, VALUE self) { arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0)); } if (arg1) (arg1)->expiration = arg2; + return Qnil; fail: return Qnil; @@ -9263,9 +9339,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedResultSt_expiration_get(int argc, VALUE *argv, VALUE self) { struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ; + time_t result; void *argp1 = 0 ; int res1 = 0 ; - time_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9273,7 +9349,7 @@ _wrap_MemcachedResultSt_expiration_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","expiration", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "expiration" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); result = ((arg1)->expiration); @@ -9300,15 +9376,16 @@ _wrap_MemcachedResultSt_root_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","root", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "root" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_st, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st *","root", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "root" "', argument " "2"" of type '" "memcached_st *""'"); } arg2 = (memcached_st *)(argp2); if (arg1) (arg1)->root = arg2; + return Qnil; fail: return Qnil; @@ -9318,9 +9395,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedResultSt_root_get(int argc, VALUE *argv, VALUE self) { struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ; + memcached_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - memcached_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9328,7 +9405,7 @@ _wrap_MemcachedResultSt_root_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","root", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "root" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); result = (memcached_st *) ((arg1)->root); @@ -9353,15 +9430,16 @@ _wrap_MemcachedResultSt_key_length_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key_length", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "key_length" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","key_length", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "key_length" "', argument " "2"" of type '" "size_t""'"); } arg2 = (size_t)(val2); if (arg1) (arg1)->key_length = arg2; + return Qnil; fail: return Qnil; @@ -9371,9 +9449,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedResultSt_key_length_get(int argc, VALUE *argv, VALUE self) { struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ; + size_t result; void *argp1 = 0 ; int res1 = 0 ; - size_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9381,7 +9459,7 @@ _wrap_MemcachedResultSt_key_length_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key_length", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "key_length" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); result = ((arg1)->key_length); @@ -9406,15 +9484,16 @@ _wrap_MemcachedResultSt_cas_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","cas", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cas" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","cas", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cas" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = (uint64_t)(val2); if (arg1) (arg1)->cas = arg2; + return Qnil; fail: return Qnil; @@ -9424,9 +9503,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedResultSt_cas_get(int argc, VALUE *argv, VALUE self) { struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9434,7 +9513,7 @@ _wrap_MemcachedResultSt_cas_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","cas", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cas" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); result = ((arg1)->cas); @@ -9459,21 +9538,22 @@ _wrap_MemcachedResultSt_value_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","value", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "value" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_string_st, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_string_st","value", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "value" "', argument " "2"" of type '" "memcached_string_st""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_string_st","value", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "value" "', argument " "2"" of type '" "memcached_string_st""'"); } else { arg2 = *((memcached_string_st *)(argp2)); } } if (arg1) (arg1)->value = arg2; + return Qnil; fail: return Qnil; @@ -9483,9 +9563,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedResultSt_value_get(int argc, VALUE *argv, VALUE self) { struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ; + memcached_string_st result; void *argp1 = 0 ; int res1 = 0 ; - memcached_string_st result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9493,7 +9573,7 @@ _wrap_MemcachedResultSt_value_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","value", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "value" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); result = ((arg1)->value); @@ -9518,12 +9598,12 @@ _wrap_MemcachedResultSt_key_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "key" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 251); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [251]","key", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "key" "', argument " "2"" of type '" "char [251]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->key,arg2,251*sizeof(char)); @@ -9537,9 +9617,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedResultSt_key_get(int argc, VALUE *argv, VALUE self) { struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9547,7 +9627,7 @@ _wrap_MemcachedResultSt_key_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "key" "', argument " "1"" of type '" "struct memcached_result_st *""'"); } arg1 = (struct memcached_result_st *)(argp1); result = (char *)(char *) ((arg1)->key); @@ -9588,8 +9668,8 @@ _wrap_new_MemcachedResultSt(int argc, VALUE *argv, VALUE self) { if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } - result = (struct memcached_result_st *)calloc(1, sizeof(struct memcached_result_st)); - DATA_PTR(self) = result; + result = (struct memcached_result_st *)(struct memcached_result_st *) calloc(1, sizeof(struct memcached_result_st));DATA_PTR(self) = result; + return self; fail: return Qnil; @@ -9612,7 +9692,7 @@ _wrap_memcached_result_free(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_free", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_free" "', argument " "1"" of type '" "memcached_result_st *""'"); } arg1 = (memcached_result_st *)(argp1); memcached_result_free(arg1); @@ -9633,7 +9713,7 @@ _wrap_memcached_result_reset(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_reset", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_reset" "', argument " "1"" of type '" "memcached_result_st *""'"); } arg1 = (memcached_result_st *)(argp1); memcached_result_reset(arg1); @@ -9647,11 +9727,11 @@ SWIGINTERN VALUE _wrap_memcached_result_create(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_result_st *arg2 = (memcached_result_st *) 0 ; + memcached_result_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - memcached_result_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -9659,12 +9739,12 @@ _wrap_memcached_result_create(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_result_create", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_create" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_create", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_result_create" "', argument " "2"" of type '" "memcached_result_st *""'"); } arg2 = (memcached_result_st *)(argp2); result = (memcached_result_st *)memcached_result_create(arg1,arg2); @@ -9678,9 +9758,9 @@ fail: SWIGINTERN VALUE _wrap_memcached_result_value(int argc, VALUE *argv, VALUE self) { memcached_result_st *arg1 = (memcached_result_st *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { @@ -9688,7 +9768,7 @@ _wrap_memcached_result_value(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_value", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_value" "', argument " "1"" of type '" "memcached_result_st *""'"); } arg1 = (memcached_result_st *)(argp1); result = (char *)memcached_result_value(arg1); @@ -9702,9 +9782,9 @@ fail: SWIGINTERN VALUE _wrap_memcached_result_length(int argc, VALUE *argv, VALUE self) { memcached_result_st *arg1 = (memcached_result_st *) 0 ; + size_t result; void *argp1 = 0 ; int res1 = 0 ; - size_t result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1)) { @@ -9712,7 +9792,7 @@ _wrap_memcached_result_length(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_length", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_length" "', argument " "1"" of type '" "memcached_result_st *""'"); } arg1 = (memcached_result_st *)(argp1); result = memcached_result_length(arg1); @@ -9728,6 +9808,7 @@ _wrap_memcached_result_set_value(int argc, VALUE *argv, VALUE self) { memcached_result_st *arg1 = (memcached_result_st *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; @@ -9735,7 +9816,6 @@ _wrap_memcached_result_set_value(int argc, VALUE *argv, VALUE self) { int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { @@ -9743,17 +9823,17 @@ _wrap_memcached_result_set_value(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_set_value", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_set_value" "', argument " "1"" of type '" "memcached_result_st *""'"); } arg1 = (memcached_result_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_result_set_value", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_result_set_value" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_result_set_value", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_result_set_value" "', argument " "3"" of type '" "size_t""'"); } arg3 = (size_t)(val3); result = (memcached_return)memcached_result_set_value(arg1,arg2,arg3); @@ -9782,15 +9862,16 @@ _wrap_MemcachedServerSt_is_allocated_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","is_allocated", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_allocated", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "is_allocated" "', argument " "2"" of type '" "bool""'"); } arg2 = (bool)(val2); if (arg1) (arg1)->is_allocated = arg2; + return Qnil; fail: return Qnil; @@ -9800,9 +9881,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_is_allocated_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + bool result; void *argp1 = 0 ; int res1 = 0 ; - bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9810,7 +9891,7 @@ _wrap_MemcachedServerSt_is_allocated_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","is_allocated", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (bool) ((arg1)->is_allocated); @@ -9835,15 +9916,16 @@ _wrap_MemcachedServerSt_sockaddr_inited_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","sockaddr_inited", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sockaddr_inited" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_bool(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","sockaddr_inited", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sockaddr_inited" "', argument " "2"" of type '" "bool""'"); } arg2 = (bool)(val2); if (arg1) (arg1)->sockaddr_inited = arg2; + return Qnil; fail: return Qnil; @@ -9853,9 +9935,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_sockaddr_inited_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + bool result; void *argp1 = 0 ; int res1 = 0 ; - bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9863,7 +9945,7 @@ _wrap_MemcachedServerSt_sockaddr_inited_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","sockaddr_inited", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sockaddr_inited" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (bool) ((arg1)->sockaddr_inited); @@ -9888,15 +9970,16 @@ _wrap_MemcachedServerSt_count_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","count", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "count" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","count", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "count" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = (uint16_t)(val2); if (arg1) (arg1)->count = arg2; + return Qnil; fail: return Qnil; @@ -9906,9 +9989,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_count_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + uint16_t result; void *argp1 = 0 ; int res1 = 0 ; - uint16_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9916,7 +9999,7 @@ _wrap_MemcachedServerSt_count_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","count", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "count" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->count); @@ -9941,15 +10024,16 @@ _wrap_MemcachedServerSt_cursor_active_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cursor_active", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cursor_active" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","cursor_active", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cursor_active" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->cursor_active = arg2; + return Qnil; fail: return Qnil; @@ -9959,9 +10043,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_cursor_active_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + unsigned int result; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -9969,7 +10053,7 @@ _wrap_MemcachedServerSt_cursor_active_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cursor_active", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cursor_active" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (unsigned int) ((arg1)->cursor_active); @@ -9994,15 +10078,16 @@ _wrap_MemcachedServerSt_port_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","port", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "port" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","port", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "port" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->port = arg2; + return Qnil; fail: return Qnil; @@ -10012,9 +10097,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_port_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + unsigned int result; void *argp1 = 0 ; int res1 = 0 ; - unsigned int result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10022,7 +10107,7 @@ _wrap_MemcachedServerSt_port_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","port", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "port" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (unsigned int) ((arg1)->port); @@ -10047,15 +10132,16 @@ _wrap_MemcachedServerSt_cached_errno_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_errno", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_errno" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","cached_errno", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cached_errno" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); if (arg1) (arg1)->cached_errno = arg2; + return Qnil; fail: return Qnil; @@ -10065,9 +10151,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_cached_errno_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + int result; void *argp1 = 0 ; int res1 = 0 ; - int result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10075,7 +10161,7 @@ _wrap_MemcachedServerSt_cached_errno_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_errno", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_errno" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (int) ((arg1)->cached_errno); @@ -10086,6 +10172,60 @@ fail: } +SWIGINTERN VALUE +_wrap_MemcachedServerSt_fd_set(int argc, VALUE *argv, VALUE self) { + struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + int arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fd" "', argument " "1"" of type '" "struct memcached_server_st *""'"); + } + arg1 = (struct memcached_server_st *)(argp1); + ecode2 = SWIG_AsVal_int(argv[0], &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fd" "', argument " "2"" of type '" "int""'"); + } + arg2 = (int)(val2); + if (arg1) (arg1)->fd = arg2; + + return Qnil; +fail: + return Qnil; +} + + +SWIGINTERN VALUE +_wrap_MemcachedServerSt_fd_get(int argc, VALUE *argv, VALUE self) { + struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + int result; + void *argp1 = 0 ; + int res1 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 0) || (argc > 0)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fd" "', argument " "1"" of type '" "struct memcached_server_st *""'"); + } + arg1 = (struct memcached_server_st *)(argp1); + result = (int) ((arg1)->fd); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + SWIGINTERN VALUE _wrap_MemcachedServerSt_cached_server_error_set(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; @@ -10101,12 +10241,12 @@ _wrap_MemcachedServerSt_cached_server_error_set(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_server_error", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_server_error" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","cached_server_error", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cached_server_error" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->cached_server_error) free((char*)arg1->cached_server_error); @@ -10127,9 +10267,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_cached_server_error_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10137,7 +10277,7 @@ _wrap_MemcachedServerSt_cached_server_error_get(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_server_error", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_server_error" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (char *) ((arg1)->cached_server_error); @@ -10148,59 +10288,6 @@ fail: } -SWIGINTERN VALUE -_wrap_MemcachedServerSt_fd_set(int argc, VALUE *argv, VALUE self) { - struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; - int arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - int val2 ; - int ecode2 = 0 ; - - if ((argc < 1) || (argc > 1)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; - } - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","fd", 1, self )); - } - arg1 = (struct memcached_server_st *)(argp1); - ecode2 = SWIG_AsVal_int(argv[0], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","fd", 2, argv[0] )); - } - arg2 = (int)(val2); - if (arg1) (arg1)->fd = arg2; - return Qnil; -fail: - return Qnil; -} - - -SWIGINTERN VALUE -_wrap_MemcachedServerSt_fd_get(int argc, VALUE *argv, VALUE self) { - struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; - void *argp1 = 0 ; - int res1 = 0 ; - int result; - VALUE vresult = Qnil; - - if ((argc < 0) || (argc > 0)) { - rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; - } - res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","fd", 1, self )); - } - arg1 = (struct memcached_server_st *)(argp1); - result = (int) ((arg1)->fd); - vresult = SWIG_From_int((int)(result)); - return vresult; -fail: - return Qnil; -} - - SWIGINTERN VALUE _wrap_MemcachedServerSt_io_bytes_sent_set(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; @@ -10215,21 +10302,22 @@ _wrap_MemcachedServerSt_io_bytes_sent_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","io_bytes_sent", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "io_bytes_sent" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_bytes_sent", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "io_bytes_sent" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_bytes_sent", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "io_bytes_sent" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->io_bytes_sent = arg2; + return Qnil; fail: return Qnil; @@ -10239,9 +10327,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_io_bytes_sent_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10249,7 +10337,7 @@ _wrap_MemcachedServerSt_io_bytes_sent_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","io_bytes_sent", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "io_bytes_sent" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->io_bytes_sent); @@ -10276,21 +10364,22 @@ _wrap_MemcachedServerSt_server_failure_counter_set(int argc, VALUE *argv, VALUE } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","server_failure_counter", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_failure_counter" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","server_failure_counter", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "server_failure_counter" "', argument " "2"" of type '" "uint32_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","server_failure_counter", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "server_failure_counter" "', argument " "2"" of type '" "uint32_t""'"); } else { arg2 = *((uint32_t *)(argp2)); } } if (arg1) (arg1)->server_failure_counter = arg2; + return Qnil; fail: return Qnil; @@ -10300,9 +10389,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_server_failure_counter_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10310,7 +10399,7 @@ _wrap_MemcachedServerSt_server_failure_counter_get(int argc, VALUE *argv, VALUE } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","server_failure_counter", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_failure_counter" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->server_failure_counter); @@ -10337,15 +10426,16 @@ _wrap_MemcachedServerSt_weight_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","weight", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "weight" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","weight", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "weight" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = (uint32_t)(val2); if (arg1) (arg1)->weight = arg2; + return Qnil; fail: return Qnil; @@ -10355,9 +10445,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_weight_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + uint32_t result; void *argp1 = 0 ; int res1 = 0 ; - uint32_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10365,7 +10455,7 @@ _wrap_MemcachedServerSt_weight_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","weight", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "weight" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->weight); @@ -10390,15 +10480,16 @@ _wrap_MemcachedServerSt_major_version_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","major_version", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "major_version" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","major_version", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "major_version" "', argument " "2"" of type '" "uint8_t""'"); } arg2 = (uint8_t)(val2); if (arg1) (arg1)->major_version = arg2; + return Qnil; fail: return Qnil; @@ -10408,9 +10499,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_major_version_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + uint8_t result; void *argp1 = 0 ; int res1 = 0 ; - uint8_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10418,7 +10509,7 @@ _wrap_MemcachedServerSt_major_version_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","major_version", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "major_version" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->major_version); @@ -10443,15 +10534,16 @@ _wrap_MemcachedServerSt_micro_version_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","micro_version", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "micro_version" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","micro_version", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "micro_version" "', argument " "2"" of type '" "uint8_t""'"); } arg2 = (uint8_t)(val2); if (arg1) (arg1)->micro_version = arg2; + return Qnil; fail: return Qnil; @@ -10461,9 +10553,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_micro_version_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + uint8_t result; void *argp1 = 0 ; int res1 = 0 ; - uint8_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10471,7 +10563,7 @@ _wrap_MemcachedServerSt_micro_version_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","micro_version", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "micro_version" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->micro_version); @@ -10496,15 +10588,16 @@ _wrap_MemcachedServerSt_minor_version_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","minor_version", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "minor_version" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","minor_version", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "minor_version" "', argument " "2"" of type '" "uint8_t""'"); } arg2 = (uint8_t)(val2); if (arg1) (arg1)->minor_version = arg2; + return Qnil; fail: return Qnil; @@ -10514,9 +10607,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_minor_version_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + uint8_t result; void *argp1 = 0 ; int res1 = 0 ; - uint8_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10524,7 +10617,7 @@ _wrap_MemcachedServerSt_minor_version_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","minor_version", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "minor_version" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->minor_version); @@ -10549,15 +10642,16 @@ _wrap_MemcachedServerSt_type_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","type", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "type" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_connection","type", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "type" "', argument " "2"" of type '" "memcached_connection""'"); } arg2 = (memcached_connection)(val2); if (arg1) (arg1)->type = arg2; + return Qnil; fail: return Qnil; @@ -10567,9 +10661,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_type_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + memcached_connection result; void *argp1 = 0 ; int res1 = 0 ; - memcached_connection result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10577,7 +10671,7 @@ _wrap_MemcachedServerSt_type_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","type", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "type" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (memcached_connection) ((arg1)->type); @@ -10603,12 +10697,12 @@ _wrap_MemcachedServerSt_read_ptr_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_ptr", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_ptr" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","read_ptr", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "read_ptr" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->read_ptr) free((char*)arg1->read_ptr); @@ -10629,9 +10723,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_read_ptr_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10639,7 +10733,7 @@ _wrap_MemcachedServerSt_read_ptr_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_ptr", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_ptr" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (char *) ((arg1)->read_ptr); @@ -10664,15 +10758,16 @@ _wrap_MemcachedServerSt_read_buffer_length_set(int argc, VALUE *argv, VALUE self } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer_length", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_buffer_length" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","read_buffer_length", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "read_buffer_length" "', argument " "2"" of type '" "size_t""'"); } arg2 = (size_t)(val2); if (arg1) (arg1)->read_buffer_length = arg2; + return Qnil; fail: return Qnil; @@ -10682,9 +10777,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_read_buffer_length_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + size_t result; void *argp1 = 0 ; int res1 = 0 ; - size_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10692,7 +10787,7 @@ _wrap_MemcachedServerSt_read_buffer_length_get(int argc, VALUE *argv, VALUE self } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer_length", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_buffer_length" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->read_buffer_length); @@ -10717,15 +10812,16 @@ _wrap_MemcachedServerSt_read_data_length_set(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_data_length", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_data_length" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","read_data_length", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "read_data_length" "', argument " "2"" of type '" "size_t""'"); } arg2 = (size_t)(val2); if (arg1) (arg1)->read_data_length = arg2; + return Qnil; fail: return Qnil; @@ -10735,9 +10831,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_read_data_length_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + size_t result; void *argp1 = 0 ; int res1 = 0 ; - size_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10745,7 +10841,7 @@ _wrap_MemcachedServerSt_read_data_length_get(int argc, VALUE *argv, VALUE self) } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_data_length", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_data_length" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->read_data_length); @@ -10770,15 +10866,16 @@ _wrap_MemcachedServerSt_write_buffer_offset_set(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer_offset", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write_buffer_offset" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); ecode2 = SWIG_AsVal_size_t(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","write_buffer_offset", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "write_buffer_offset" "', argument " "2"" of type '" "size_t""'"); } arg2 = (size_t)(val2); if (arg1) (arg1)->write_buffer_offset = arg2; + return Qnil; fail: return Qnil; @@ -10788,9 +10885,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_write_buffer_offset_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + size_t result; void *argp1 = 0 ; int res1 = 0 ; - size_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10798,7 +10895,7 @@ _wrap_MemcachedServerSt_write_buffer_offset_get(int argc, VALUE *argv, VALUE sel } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer_offset", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write_buffer_offset" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->write_buffer_offset); @@ -10823,15 +10920,16 @@ _wrap_MemcachedServerSt_address_info_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","address_info", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "address_info" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_addrinfo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct addrinfo *","address_info", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "address_info" "', argument " "2"" of type '" "struct addrinfo *""'"); } arg2 = (struct addrinfo *)(argp2); if (arg1) (arg1)->address_info = arg2; + return Qnil; fail: return Qnil; @@ -10841,9 +10939,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_address_info_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + struct addrinfo *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - struct addrinfo *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10851,7 +10949,7 @@ _wrap_MemcachedServerSt_address_info_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","address_info", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "address_info" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (struct addrinfo *) ((arg1)->address_info); @@ -10874,7 +10972,7 @@ _wrap_MemcachedServerSt_next_retry_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","next_retry", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_retry" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); { @@ -10884,6 +10982,7 @@ _wrap_MemcachedServerSt_next_retry_set(int argc, VALUE *argv, VALUE self) { arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0)); } if (arg1) (arg1)->next_retry = arg2; + return Qnil; fail: return Qnil; @@ -10893,9 +10992,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_next_retry_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + time_t result; void *argp1 = 0 ; int res1 = 0 ; - time_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10903,7 +11002,7 @@ _wrap_MemcachedServerSt_next_retry_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","next_retry", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_retry" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->next_retry); @@ -10930,15 +11029,16 @@ _wrap_MemcachedServerSt_root_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","root", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "root" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_st, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st *","root", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "root" "', argument " "2"" of type '" "memcached_st *""'"); } arg2 = (memcached_st *)(argp2); if (arg1) (arg1)->root = arg2; + return Qnil; fail: return Qnil; @@ -10948,9 +11048,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_root_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + memcached_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - memcached_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -10958,7 +11058,7 @@ _wrap_MemcachedServerSt_root_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","root", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "root" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (memcached_st *) ((arg1)->root); @@ -10983,21 +11083,22 @@ _wrap_MemcachedServerSt_limit_maxbytes_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","limit_maxbytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "limit_maxbytes" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","limit_maxbytes", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "limit_maxbytes" "', argument " "2"" of type '" "uint64_t""'"); } if (!argp2) { - SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","limit_maxbytes", 2, argv[0])); + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "limit_maxbytes" "', argument " "2"" of type '" "uint64_t""'"); } else { arg2 = *((uint64_t *)(argp2)); } } if (arg1) (arg1)->limit_maxbytes = arg2; + return Qnil; fail: return Qnil; @@ -11007,9 +11108,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_limit_maxbytes_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + uint64_t result; void *argp1 = 0 ; int res1 = 0 ; - uint64_t result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -11017,7 +11118,7 @@ _wrap_MemcachedServerSt_limit_maxbytes_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","limit_maxbytes", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "limit_maxbytes" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = ((arg1)->limit_maxbytes); @@ -11044,12 +11145,12 @@ _wrap_MemcachedServerSt_read_buffer_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_buffer" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 8196); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [8196]","read_buffer", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "read_buffer" "', argument " "2"" of type '" "char [8196]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->read_buffer,arg2,8196*sizeof(char)); @@ -11063,9 +11164,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_read_buffer_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -11073,7 +11174,7 @@ _wrap_MemcachedServerSt_read_buffer_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_buffer" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (char *)(char *) ((arg1)->read_buffer); @@ -11104,12 +11205,12 @@ _wrap_MemcachedServerSt_write_buffer_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write_buffer" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 8196); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [8196]","write_buffer", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "write_buffer" "', argument " "2"" of type '" "char [8196]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->write_buffer,arg2,8196*sizeof(char)); @@ -11123,9 +11224,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_write_buffer_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -11133,7 +11234,7 @@ _wrap_MemcachedServerSt_write_buffer_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write_buffer" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (char *)(char *) ((arg1)->write_buffer); @@ -11164,12 +11265,12 @@ _wrap_MemcachedServerSt_hostname_set(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","hostname", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hostname" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 64); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [64]","hostname", 2, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hostname" "', argument " "2"" of type '" "char [64]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->hostname,arg2,64*sizeof(char)); @@ -11183,9 +11284,9 @@ fail: SWIGINTERN VALUE _wrap_MemcachedServerSt_hostname_get(int argc, VALUE *argv, VALUE self) { struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ; + char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; - char *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { @@ -11193,7 +11294,7 @@ _wrap_MemcachedServerSt_hostname_get(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","hostname", 1, self )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hostname" "', argument " "1"" of type '" "struct memcached_server_st *""'"); } arg1 = (struct memcached_server_st *)(argp1); result = (char *)(char *) ((arg1)->hostname); @@ -11234,8 +11335,8 @@ _wrap_new_MemcachedServerSt(int argc, VALUE *argv, VALUE self) { if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } - result = (struct memcached_server_st *)calloc(1, sizeof(struct memcached_server_st)); - DATA_PTR(self) = result; + result = (struct memcached_server_st *)(struct memcached_server_st *) calloc(1, sizeof(struct memcached_server_st));DATA_PTR(self) = result; + return self; fail: return Qnil; @@ -11253,6 +11354,7 @@ _wrap_memcached_server_cursor(int argc, VALUE *argv, VALUE self) { memcached_server_function *arg2 = (memcached_server_function *) 0 ; void *arg3 = (void *) 0 ; unsigned int arg4 ; + memcached_return result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -11260,7 +11362,6 @@ _wrap_memcached_server_cursor(int argc, VALUE *argv, VALUE self) { int res3 ; unsigned int val4 ; int ecode4 = 0 ; - memcached_return result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4)) { @@ -11268,21 +11369,21 @@ _wrap_memcached_server_cursor(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_cursor", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_cursor" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_function, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_function *","memcached_server_cursor", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_cursor" "', argument " "2"" of type '" "memcached_server_function *""'"); } arg2 = (memcached_server_function *)(argp2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_server_cursor", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_server_cursor" "', argument " "3"" of type '" "void *""'"); } ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_server_cursor", 4, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_server_cursor" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = (unsigned int)(val4); result = (memcached_return)memcached_server_cursor(arg1,arg2,arg3,arg4); @@ -11299,11 +11400,11 @@ _wrap_memcached_server_by_key(int argc, VALUE *argv, VALUE self) { char *arg2 = (char *) 0 ; size_t arg3 ; memcached_return *arg4 = (memcached_return *) 0 ; + memcached_server_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; memcached_return temp4 ; int res4 = SWIG_TMPOBJ ; - memcached_server_st *result = 0 ; VALUE vresult = Qnil; arg4 = &temp4; @@ -11312,7 +11413,7 @@ _wrap_memcached_server_by_key(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_by_key", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_by_key" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -11337,11 +11438,11 @@ SWIGINTERN VALUE _wrap_memcached_server_create(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_server_st *arg2 = (memcached_server_st *) 0 ; + memcached_server_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - memcached_server_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -11349,12 +11450,12 @@ _wrap_memcached_server_create(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_create", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_create" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_create", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_create" "', argument " "2"" of type '" "memcached_server_st *""'"); } arg2 = (memcached_server_st *)(argp2); result = (memcached_server_st *)memcached_server_create(arg1,arg2); @@ -11373,6 +11474,7 @@ _wrap_memcached_server_create_with(int argc, VALUE *argv, VALUE self) { unsigned int arg4 ; uint32_t arg5 ; memcached_connection arg6 ; + memcached_server_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -11386,7 +11488,6 @@ _wrap_memcached_server_create_with(int argc, VALUE *argv, VALUE self) { int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; - memcached_server_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 6) || (argc > 6)) { @@ -11394,32 +11495,32 @@ _wrap_memcached_server_create_with(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_create_with", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_create_with" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_create_with", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_create_with" "', argument " "2"" of type '" "memcached_server_st *""'"); } arg2 = (memcached_server_st *)(argp2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","memcached_server_create_with", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_server_create_with" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_server_create_with", 4, argv[3] )); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_server_create_with" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = (unsigned int)(val4); ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint32_t","memcached_server_create_with", 5, argv[4] )); + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "memcached_server_create_with" "', argument " "5"" of type '" "uint32_t""'"); } arg5 = (uint32_t)(val5); ecode6 = SWIG_AsVal_int(argv[5], &val6); if (!SWIG_IsOK(ecode6)) { - SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "memcached_connection","memcached_server_create_with", 6, argv[5] )); + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "memcached_server_create_with" "', argument " "6"" of type '" "memcached_connection""'"); } arg6 = (memcached_connection)(val6); result = (memcached_server_st *)memcached_server_create_with(arg1,arg2,(char const *)arg3,arg4,arg5,arg6); @@ -11443,7 +11544,7 @@ _wrap_memcached_server_free(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_free", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_free" "', argument " "1"" of type '" "memcached_server_st *""'"); } arg1 = (memcached_server_st *)(argp1); memcached_server_free(arg1); @@ -11457,11 +11558,11 @@ SWIGINTERN VALUE _wrap_memcached_server_clone(int argc, VALUE *argv, VALUE self) { memcached_server_st *arg1 = (memcached_server_st *) 0 ; memcached_server_st *arg2 = (memcached_server_st *) 0 ; + memcached_server_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; - memcached_server_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -11469,12 +11570,12 @@ _wrap_memcached_server_clone(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_clone", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_clone" "', argument " "1"" of type '" "memcached_server_st *""'"); } arg1 = (memcached_server_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_clone", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_clone" "', argument " "2"" of type '" "memcached_server_st *""'"); } arg2 = (memcached_server_st *)(argp2); result = (memcached_server_st *)memcached_server_clone(arg1,arg2); @@ -11490,13 +11591,13 @@ _wrap_memcached_analyze(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_stat_st *arg2 = (memcached_stat_st *) 0 ; memcached_return *arg3 = (memcached_return *) 0 ; + memcached_analysis_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; memcached_return temp3 ; int res3 = SWIG_TMPOBJ ; - memcached_analysis_st *result = 0 ; VALUE vresult = Qnil; arg3 = &temp3; @@ -11505,12 +11606,12 @@ _wrap_memcached_analyze(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_analyze", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_analyze" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_analyze", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_analyze" "', argument " "2"" of type '" "memcached_stat_st *""'"); } arg2 = (memcached_stat_st *)(argp2); result = (memcached_analysis_st *)memcached_analyze(arg1,arg2,arg3); @@ -11527,6 +11628,30 @@ fail: } +SWIGINTERN VALUE +_wrap_memcached_server_remove(int argc, VALUE *argv, VALUE self) { + memcached_server_st *arg1 = (memcached_server_st *) 0 ; + memcached_return result; + void *argp1 = 0 ; + int res1 = 0 ; + VALUE vresult = Qnil; + + if ((argc < 1) || (argc > 1)) { + rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail; + } + res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_remove" "', argument " "1"" of type '" "memcached_server_st *""'"); + } + arg1 = (memcached_server_st *)(argp1); + result = (memcached_return)memcached_server_remove(arg1); + vresult = SWIG_From_int((int)(result)); + return vresult; +fail: + return Qnil; +} + + SWIGINTERN VALUE _wrap_memcached_get_rvalue(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; @@ -11534,13 +11659,13 @@ _wrap_memcached_get_rvalue(int argc, VALUE *argv, VALUE self) { size_t arg3 ; uint32_t *arg4 = (uint32_t *) 0 ; memcached_return *arg5 = (memcached_return *) 0 ; + VALUE result; void *argp1 = 0 ; int res1 = 0 ; uint32_t temp4 ; int res4 = SWIG_TMPOBJ ; memcached_return temp5 ; int res5 = SWIG_TMPOBJ ; - VALUE result; VALUE vresult = Qnil; arg4 = &temp4; @@ -11550,7 +11675,7 @@ _wrap_memcached_get_rvalue(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_rvalue", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_get_rvalue" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); { @@ -11584,13 +11709,13 @@ _wrap_memcached_fetch_rvalue(int argc, VALUE *argv, VALUE self) { size_t *arg3 = (size_t *) 0 ; uint32_t *arg4 = (uint32_t *) 0 ; memcached_return *arg5 = (memcached_return *) 0 ; + VALUE result; void *argp1 = 0 ; int res1 = 0 ; uint32_t temp4 ; int res4 = SWIG_TMPOBJ ; memcached_return temp5 ; int res5 = SWIG_TMPOBJ ; - VALUE result; VALUE vresult = Qnil; { @@ -11606,7 +11731,7 @@ _wrap_memcached_fetch_rvalue(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_rvalue", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_fetch_rvalue" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); result = (VALUE)memcached_fetch_rvalue(arg1,arg2,arg3,arg4,arg5); @@ -11639,6 +11764,7 @@ _wrap_memcached_stat_get_rvalue(int argc, VALUE *argv, VALUE self) { memcached_stat_st *arg2 = (memcached_stat_st *) 0 ; char *arg3 = (char *) 0 ; memcached_return *arg4 = (memcached_return *) 0 ; + VALUE result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; @@ -11648,7 +11774,6 @@ _wrap_memcached_stat_get_rvalue(int argc, VALUE *argv, VALUE self) { int alloc3 = 0 ; memcached_return temp4 ; int res4 = SWIG_TMPOBJ ; - VALUE result; VALUE vresult = Qnil; arg4 = &temp4; @@ -11657,17 +11782,17 @@ _wrap_memcached_stat_get_rvalue(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_get_rvalue", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_get_rvalue" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_rvalue", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_get_rvalue" "', argument " "2"" of type '" "memcached_stat_st *""'"); } arg2 = (memcached_stat_st *)(argp2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","memcached_stat_get_rvalue", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_stat_get_rvalue" "', argument " "3"" of type '" "char *""'"); } arg3 = (char *)(buf3); result = (VALUE)memcached_stat_get_rvalue(arg1,arg2,arg3,arg4); @@ -11690,11 +11815,11 @@ SWIGINTERN VALUE _wrap_memcached_select_server_at(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; int arg2 ; + memcached_server_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; - memcached_server_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -11702,12 +11827,12 @@ _wrap_memcached_select_server_at(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_select_server_at", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_select_server_at" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","memcached_select_server_at", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_select_server_at" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (memcached_server_st *)memcached_select_server_at(arg1,arg2); @@ -11723,13 +11848,13 @@ _wrap_memcached_select_stat_at(int argc, VALUE *argv, VALUE self) { memcached_st *arg1 = (memcached_st *) 0 ; memcached_stat_st *arg2 = (memcached_stat_st *) 0 ; int arg3 ; + memcached_stat_st *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; - memcached_stat_st *result = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { @@ -11737,17 +11862,17 @@ _wrap_memcached_select_stat_at(int argc, VALUE *argv, VALUE self) { } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_select_stat_at", 1, argv[0] )); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_select_stat_at" "', argument " "1"" of type '" "memcached_st *""'"); } arg1 = (memcached_st *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 ); if (!SWIG_IsOK(res2)) { - SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_select_stat_at", 2, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_select_stat_at" "', argument " "2"" of type '" "memcached_stat_st *""'"); } arg2 = (memcached_stat_st *)(argp2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","memcached_select_stat_at", 3, argv[2] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_select_stat_at" "', argument " "3"" of type '" "int""'"); } arg3 = (int)(val3); result = (memcached_stat_st *)memcached_select_stat_at(arg1,arg2,arg3); @@ -11763,9 +11888,9 @@ _wrap_memcached_generate_hash_rvalue(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; size_t arg2 ; memcached_hash arg3 ; + VALUE result; int val3 ; int ecode3 = 0 ; - VALUE result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -11777,7 +11902,7 @@ _wrap_memcached_generate_hash_rvalue(int argc, VALUE *argv, VALUE self) { } ecode3 = SWIG_AsVal_int(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "memcached_hash","memcached_generate_hash_rvalue", 3, argv[1] )); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_generate_hash_rvalue" "', argument " "3"" of type '" "memcached_hash""'"); } arg3 = (memcached_hash)(val3); result = (VALUE)memcached_generate_hash_rvalue((char const *)arg1,arg2,arg3); @@ -11794,26 +11919,27 @@ fail: static swig_type_info _swigt__p_addrinfo = {"_p_addrinfo", "struct addrinfo *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int32_t = {"_p_int32_t", "int32_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_memcached_analysis_st = {"_p_memcached_analysis_st", "memcached_analysis_st *|struct memcached_analysis_st *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_memcached_analysis_st = {"_p_memcached_analysis_st", "memcached_analysis_st *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_behavior = {"_p_memcached_behavior", "enum memcached_behavior *|memcached_behavior *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_callback = {"_p_memcached_callback", "enum memcached_callback *|memcached_callback *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_memcached_calloc_function = {"_p_memcached_calloc_function", "memcached_calloc_function *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_cleanup_func = {"_p_memcached_cleanup_func", "memcached_cleanup_func *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_clone_func = {"_p_memcached_clone_func", "memcached_clone_func *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_connection = {"_p_memcached_connection", "enum memcached_connection *|memcached_connection *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_memcached_continuum_item_st = {"_p_memcached_continuum_item_st", "memcached_continuum_item_st *|struct memcached_continuum_item_st *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_memcached_continuum_item_st = {"_p_memcached_continuum_item_st", "memcached_continuum_item_st *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_dump_func = {"_p_memcached_dump_func", "memcached_dump_func *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_execute_function = {"_p_memcached_execute_function", "memcached_execute_function *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_free_function = {"_p_memcached_free_function", "memcached_free_function *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_hash = {"_p_memcached_hash", "enum memcached_hash *|memcached_hash *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_malloc_function = {"_p_memcached_malloc_function", "memcached_malloc_function *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_realloc_function = {"_p_memcached_realloc_function", "memcached_realloc_function *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_memcached_result_st = {"_p_memcached_result_st", "memcached_result_st *|struct memcached_result_st *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_memcached_result_st = {"_p_memcached_result_st", "memcached_result_st *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_return = {"_p_memcached_return", "enum memcached_return *|memcached_return *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_server_distribution = {"_p_memcached_server_distribution", "enum memcached_server_distribution *|memcached_server_distribution *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_server_function = {"_p_memcached_server_function", "memcached_server_function *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_memcached_server_st = {"_p_memcached_server_st", "memcached_server_st *|struct memcached_server_st *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_memcached_st = {"_p_memcached_st", "memcached_st *|struct memcached_st *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_memcached_stat_st = {"_p_memcached_stat_st", "memcached_stat_st *|struct memcached_stat_st *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_memcached_server_st = {"_p_memcached_server_st", "memcached_server_st *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_memcached_st = {"_p_memcached_st", "memcached_st *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_memcached_stat_st = {"_p_memcached_stat_st", "memcached_stat_st *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_string_st = {"_p_memcached_string_st", "memcached_string_st *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_trigger_delete_key = {"_p_memcached_trigger_delete_key", "memcached_trigger_delete_key *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_memcached_trigger_key = {"_p_memcached_trigger_key", "memcached_trigger_key *", 0, 0, (void*)0, 0}; @@ -11831,6 +11957,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_memcached_analysis_st, &_swigt__p_memcached_behavior, &_swigt__p_memcached_callback, + &_swigt__p_memcached_calloc_function, &_swigt__p_memcached_cleanup_func, &_swigt__p_memcached_clone_func, &_swigt__p_memcached_connection, @@ -11865,6 +11992,7 @@ static swig_cast_info _swigc__p_int32_t[] = { {&_swigt__p_int32_t, 0, 0, 0},{0, static swig_cast_info _swigc__p_memcached_analysis_st[] = { {&_swigt__p_memcached_analysis_st, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_memcached_behavior[] = { {&_swigt__p_memcached_behavior, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_memcached_callback[] = { {&_swigt__p_memcached_callback, 0, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_memcached_calloc_function[] = { {&_swigt__p_memcached_calloc_function, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_memcached_cleanup_func[] = { {&_swigt__p_memcached_cleanup_func, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_memcached_clone_func[] = { {&_swigt__p_memcached_clone_func, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_memcached_connection[] = { {&_swigt__p_memcached_connection, 0, 0, 0},{0, 0, 0, 0}}; @@ -11899,6 +12027,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_memcached_analysis_st, _swigc__p_memcached_behavior, _swigc__p_memcached_callback, + _swigc__p_memcached_calloc_function, _swigc__p_memcached_cleanup_func, _swigc__p_memcached_clone_func, _swigc__p_memcached_connection, @@ -11987,7 +12116,7 @@ SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; - int found, init; + int found; clientdata = clientdata; @@ -11997,9 +12126,6 @@ SWIG_InitializeModule(void *clientdata) { swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; - init = 1; - } else { - init = 0; } /* Try and load any already created modules */ @@ -12028,12 +12154,6 @@ SWIG_InitializeModule(void *clientdata) { module_head->next = &swig_module; } - /* When multiple interpeters are used, a module could have already been initialized in - a different interpreter, but not yet have a pointer in this interpreter. - In this case, we do not want to continue adding types... everything should be - set up already */ - if (init == 0) return; - /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); @@ -12167,9 +12287,7 @@ SWIG_PropagateClientData(void) { } #endif -/* -*/ #ifdef __cplusplus extern "C" #endif @@ -12186,19 +12304,7 @@ SWIGEXPORT void Init_rlibmemcached(void) { SWIG_RubyInitializeTrackings(); rb_define_const(mRlibmemcached, "MEMCACHED_VERSION_STRING_LENGTH", SWIG_From_int((int)(24))); - - cMemcachedContinuumItemSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedContinuumItemSt", rb_cObject); - SWIG_TypeClientData(SWIGTYPE_p_memcached_continuum_item_st, (void *) &cMemcachedContinuumItemSt); - rb_define_alloc_func(cMemcachedContinuumItemSt.klass, _wrap_MemcachedContinuumItemSt_allocate); - rb_define_method(cMemcachedContinuumItemSt.klass, "initialize", _wrap_new_MemcachedContinuumItemSt, -1); - rb_define_method(cMemcachedContinuumItemSt.klass, "index=", _wrap_MemcachedContinuumItemSt_index_set, -1); - rb_define_method(cMemcachedContinuumItemSt.klass, "index", _wrap_MemcachedContinuumItemSt_index_get, -1); - rb_define_method(cMemcachedContinuumItemSt.klass, "value=", _wrap_MemcachedContinuumItemSt_value_set, -1); - rb_define_method(cMemcachedContinuumItemSt.klass, "value", _wrap_MemcachedContinuumItemSt_value_get, -1); - cMemcachedContinuumItemSt.mark = 0; - cMemcachedContinuumItemSt.destroy = (void (*)(void *)) free_memcached_continuum_item_st; - cMemcachedContinuumItemSt.trackObjects = 0; - rb_define_const(mRlibmemcached, "LIBMEMCACHED_VERSION_STRING", SWIG_FromCharPtr("0.29")); + rb_define_const(mRlibmemcached, "LIBMEMCACHED_VERSION_STRING", SWIG_FromCharPtr("0.31")); cMemcachedAnalysisSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedAnalysisSt", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_memcached_analysis_st, (void *) &cMemcachedAnalysisSt); @@ -12350,15 +12456,20 @@ SWIGEXPORT void Init_rlibmemcached(void) { rb_define_method(cMemcachedSt.klass, "call_malloc", _wrap_MemcachedSt_call_malloc_get, -1); rb_define_method(cMemcachedSt.klass, "call_realloc=", _wrap_MemcachedSt_call_realloc_set, -1); rb_define_method(cMemcachedSt.klass, "call_realloc", _wrap_MemcachedSt_call_realloc_get, -1); + rb_define_method(cMemcachedSt.klass, "call_calloc=", _wrap_MemcachedSt_call_calloc_set, -1); + rb_define_method(cMemcachedSt.klass, "call_calloc", _wrap_MemcachedSt_call_calloc_get, -1); rb_define_method(cMemcachedSt.klass, "get_key_failure=", _wrap_MemcachedSt_get_key_failure_set, -1); rb_define_method(cMemcachedSt.klass, "get_key_failure", _wrap_MemcachedSt_get_key_failure_get, -1); rb_define_method(cMemcachedSt.klass, "delete_trigger=", _wrap_MemcachedSt_delete_trigger_set, -1); rb_define_method(cMemcachedSt.klass, "delete_trigger", _wrap_MemcachedSt_delete_trigger_get, -1); rb_define_method(cMemcachedSt.klass, "prefix_key=", _wrap_MemcachedSt_prefix_key_set, -1); rb_define_method(cMemcachedSt.klass, "prefix_key", _wrap_MemcachedSt_prefix_key_get, -1); + rb_define_method(cMemcachedSt.klass, "number_of_replicas=", _wrap_MemcachedSt_number_of_replicas_set, -1); + rb_define_method(cMemcachedSt.klass, "number_of_replicas", _wrap_MemcachedSt_number_of_replicas_get, -1); cMemcachedSt.mark = 0; cMemcachedSt.destroy = (void (*)(void *)) memcached_free; cMemcachedSt.trackObjects = 0; + rb_define_module_function(mRlibmemcached, "memcached_version", _wrap_memcached_version, -1); rb_define_module_function(mRlibmemcached, "memcached_lib_version", _wrap_memcached_lib_version, -1); rb_define_module_function(mRlibmemcached, "memcached_create", _wrap_memcached_create, -1); rb_define_module_function(mRlibmemcached, "memcached_free", _wrap_memcached_free, -1); @@ -12399,6 +12510,11 @@ SWIGEXPORT void Init_rlibmemcached(void) { rb_define_module_function(mRlibmemcached, "memcached_callback_set", _wrap_memcached_callback_set, -1); rb_define_module_function(mRlibmemcached, "memcached_callback_get", _wrap_memcached_callback_get, -1); rb_define_module_function(mRlibmemcached, "memcached_dump", _wrap_memcached_dump, -1); + rb_define_module_function(mRlibmemcached, "memcached_set_memory_allocators", _wrap_memcached_set_memory_allocators, -1); + rb_define_module_function(mRlibmemcached, "memcached_get_memory_allocators", _wrap_memcached_get_memory_allocators, -1); + rb_define_module_function(mRlibmemcached, "memcached_get_user_data", _wrap_memcached_get_user_data, -1); + rb_define_module_function(mRlibmemcached, "memcached_set_user_data", _wrap_memcached_set_user_data, -1); + rb_define_module_function(mRlibmemcached, "run_distribution", _wrap_run_distribution, -1); rb_define_const(mRlibmemcached, "MEMCACHED_DEFAULT_PORT", SWIG_From_int((int)(11211))); rb_define_const(mRlibmemcached, "MEMCACHED_MAX_KEY", SWIG_From_int((int)(251))); rb_define_const(mRlibmemcached, "MEMCACHED_MAX_BUFFER", SWIG_From_int((int)(8196))); @@ -12448,6 +12564,7 @@ SWIGEXPORT void Init_rlibmemcached(void) { rb_define_const(mRlibmemcached, "MEMCACHED_BAD_KEY_PROVIDED", SWIG_From_int((int)(MEMCACHED_BAD_KEY_PROVIDED))); rb_define_const(mRlibmemcached, "MEMCACHED_INVALID_HOST_PROTOCOL", SWIG_From_int((int)(MEMCACHED_INVALID_HOST_PROTOCOL))); rb_define_const(mRlibmemcached, "MEMCACHED_SERVER_MARKED_DEAD", SWIG_From_int((int)(MEMCACHED_SERVER_MARKED_DEAD))); + rb_define_const(mRlibmemcached, "MEMCACHED_UNKNOWN_STAT_KEY", SWIG_From_int((int)(MEMCACHED_UNKNOWN_STAT_KEY))); rb_define_const(mRlibmemcached, "MEMCACHED_MAXIMUM_RETURN", SWIG_From_int((int)(MEMCACHED_MAXIMUM_RETURN))); rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_MODULA", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_MODULA))); rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_CONSISTENT", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT))); @@ -12482,13 +12599,11 @@ SWIGEXPORT void Init_rlibmemcached(void) { rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_NOREPLY", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_NOREPLY))); rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_USE_UDP", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_USE_UDP))); rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS))); + rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS))); rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_PREFIX_KEY", SWIG_From_int((int)(MEMCACHED_CALLBACK_PREFIX_KEY))); rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_USER_DATA", SWIG_From_int((int)(MEMCACHED_CALLBACK_USER_DATA))); rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_CLEANUP_FUNCTION", SWIG_From_int((int)(MEMCACHED_CALLBACK_CLEANUP_FUNCTION))); rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_CLONE_FUNCTION", SWIG_From_int((int)(MEMCACHED_CALLBACK_CLONE_FUNCTION))); - rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_MALLOC_FUNCTION", SWIG_From_int((int)(MEMCACHED_CALLBACK_MALLOC_FUNCTION))); - rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_REALLOC_FUNCTION", SWIG_From_int((int)(MEMCACHED_CALLBACK_REALLOC_FUNCTION))); - rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_FREE_FUNCTION", SWIG_From_int((int)(MEMCACHED_CALLBACK_FREE_FUNCTION))); rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_GET_FAILURE", SWIG_From_int((int)(MEMCACHED_CALLBACK_GET_FAILURE))); rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_DELETE_TRIGGER", SWIG_From_int((int)(MEMCACHED_CALLBACK_DELETE_TRIGGER))); rb_define_const(mRlibmemcached, "MEMCACHED_HASH_DEFAULT", SWIG_From_int((int)(MEMCACHED_HASH_DEFAULT))); @@ -12505,6 +12620,9 @@ SWIGEXPORT void Init_rlibmemcached(void) { rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_TCP", SWIG_From_int((int)(MEMCACHED_CONNECTION_TCP))); rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_UDP", SWIG_From_int((int)(MEMCACHED_CONNECTION_UDP))); rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_UNIX_SOCKET", SWIG_From_int((int)(MEMCACHED_CONNECTION_UNIX_SOCKET))); + rb_define_module_function(mRlibmemcached, "memcached_set_last_error", _wrap_memcached_set_last_error, -1); + rb_define_module_function(mRlibmemcached, "memcached_clear_last_error", _wrap_memcached_clear_last_error, -1); + rb_define_module_function(mRlibmemcached, "memcached_get_last_error", _wrap_memcached_get_last_error, -1); rb_define_module_function(mRlibmemcached, "memcached_get", _wrap_memcached_get, -1); rb_define_module_function(mRlibmemcached, "memcached_mget", _wrap_memcached_mget, -1); rb_define_module_function(mRlibmemcached, "memcached_get_by_key", _wrap_memcached_get_by_key, -1); @@ -12570,10 +12688,10 @@ SWIGEXPORT void Init_rlibmemcached(void) { rb_define_method(cMemcachedServerSt.klass, "port", _wrap_MemcachedServerSt_port_get, -1); rb_define_method(cMemcachedServerSt.klass, "cached_errno=", _wrap_MemcachedServerSt_cached_errno_set, -1); rb_define_method(cMemcachedServerSt.klass, "cached_errno", _wrap_MemcachedServerSt_cached_errno_get, -1); - rb_define_method(cMemcachedServerSt.klass, "cached_server_error=", _wrap_MemcachedServerSt_cached_server_error_set, -1); - rb_define_method(cMemcachedServerSt.klass, "cached_server_error", _wrap_MemcachedServerSt_cached_server_error_get, -1); rb_define_method(cMemcachedServerSt.klass, "fd=", _wrap_MemcachedServerSt_fd_set, -1); rb_define_method(cMemcachedServerSt.klass, "fd", _wrap_MemcachedServerSt_fd_get, -1); + rb_define_method(cMemcachedServerSt.klass, "cached_server_error=", _wrap_MemcachedServerSt_cached_server_error_set, -1); + rb_define_method(cMemcachedServerSt.klass, "cached_server_error", _wrap_MemcachedServerSt_cached_server_error_get, -1); rb_define_method(cMemcachedServerSt.klass, "io_bytes_sent=", _wrap_MemcachedServerSt_io_bytes_sent_set, -1); rb_define_method(cMemcachedServerSt.klass, "io_bytes_sent", _wrap_MemcachedServerSt_io_bytes_sent_get, -1); rb_define_method(cMemcachedServerSt.klass, "server_failure_counter=", _wrap_MemcachedServerSt_server_failure_counter_set, -1); @@ -12620,6 +12738,7 @@ SWIGEXPORT void Init_rlibmemcached(void) { rb_define_module_function(mRlibmemcached, "memcached_server_free", _wrap_memcached_server_free, -1); rb_define_module_function(mRlibmemcached, "memcached_server_clone", _wrap_memcached_server_clone, -1); rb_define_module_function(mRlibmemcached, "memcached_analyze", _wrap_memcached_analyze, -1); + rb_define_module_function(mRlibmemcached, "memcached_server_remove", _wrap_memcached_server_remove, -1); rb_define_module_function(mRlibmemcached, "memcached_get_rvalue", _wrap_memcached_get_rvalue, -1); rb_define_module_function(mRlibmemcached, "memcached_fetch_rvalue", _wrap_memcached_fetch_rvalue, -1); rb_define_module_function(mRlibmemcached, "memcached_stat_get_rvalue", _wrap_memcached_stat_get_rvalue, -1); diff --git a/test/unit/memcached_test.rb b/test/unit/memcached_test.rb index 770d2ad..8a2f07f 100644 --- a/test/unit/memcached_test.rb +++ b/test/unit/memcached_test.rb @@ -803,7 +803,7 @@ class MemcachedTest < Test::Unit::TestCase # Hit first server key1 = 'test_missing_server6' cache.set(key1, @value) - cache.get(key1) == @value + assert_equal cache.get(key1), @value # Hit second server key2 = 'test_missing_server'