memcached 0.9 → 0.10

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG CHANGED
@@ -1,4 +1,6 @@
1
1
 
2
+ v0.10. Move to libmemcached 0.20. Failover support. Close consistent hashing bugs.
3
+
2
4
  v0.9. Move to libmemcached 0.19. Add some failover tests, but we are still waiting on libmemcached's replication branch for them to actually be useful. Fix CAS bug (ktheory).
3
5
 
4
6
  v0.8.1. Disable NotFound backtraces for speed (Blaine Cook).
data/COMPATIBILITY CHANGED
@@ -4,6 +4,7 @@
4
4
  This chart shows which versions of the Ruby library are compatible with which versions of libmemcached.
5
5
 
6
6
  <b>Library version</b>:: <b>libmemcached version</b>
7
+ 0.10:: 0.20
7
8
  0.9:: 0.19
8
9
  0.8:: 0.16
9
10
  0.7:: 0.15
data/README CHANGED
@@ -22,14 +22,14 @@ The <b>memcached</b> library wraps the pure-C libmemcached client via SWIG.
22
22
 
23
23
  == Installation
24
24
 
25
- You need Ruby 1.8.6, and {libmemcached 0.19}[http://tangent.org/552/libmemcached.html]. Other versions are not supported. You also need {memcached itself}[http://www.danga.com/memcached/] if you want to test against a local server.
25
+ You need Ruby 1.8.6, and {libmemcached 0.20}[http://tangent.org/552/libmemcached.html]. Other versions are not supported. You also need {memcached itself}[http://www.danga.com/memcached/] if you want to test against a local server.
26
26
 
27
- For Linux, download and extract the {libmemcached tarball}[http://download.tangent.org/libmemcached-0.19.tar.gz]. Then run:
27
+ For Linux, download and extract the {libmemcached tarball}[http://download.tangent.org/libmemcached-0.20.tar.gz]. Then run:
28
28
  ./configure
29
29
  make && sudo make install
30
30
 
31
31
  For OS X, you may be able to install it from MacPorts:
32
- sudo port install libmemcached @0.19_0
32
+ sudo port install libmemcached @0.20
33
33
 
34
34
  Now install the gem:
35
35
  sudo gem install memcached --no-rdoc --no-ri
data/ext/extconf.rb CHANGED
@@ -22,13 +22,13 @@ raise "shared library 'libmemcached' not found" unless
22
22
  find_library('memcached', 'memcached_server_add', *ENV['LD_LIBRARY_PATH'].to_s.split(":"))
23
23
 
24
24
  [
25
- 'libmemcached/memcached.h',
25
+ 'libmemcached/memcached.h',
26
26
  'libmemcached/memcached_constants.h',
27
27
  'libmemcached/memcached_storage.h',
28
28
  'libmemcached/memcached_result.h',
29
29
  'libmemcached/memcached_server.h'
30
30
  ].each do |header|
31
- raise "header file '#{include}' not found" unless
31
+ raise "header file '#{header}' not found" unless
32
32
  find_header(header, *ENV['INCLUDE_PATH'].to_s.split(":"))
33
33
  end
34
34
 
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 1.3.29
3
+ * Version 1.3.33
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -16,14 +16,14 @@
16
16
 
17
17
  /* template workaround for compilers that cannot correctly implement the C++ standard */
18
18
  #ifndef SWIGTEMPLATEDISAMBIGUATOR
19
- # if defined(__SUNPRO_CC)
20
- # if (__SUNPRO_CC <= 0x560)
21
- # define SWIGTEMPLATEDISAMBIGUATOR template
22
- # else
23
- # define SWIGTEMPLATEDISAMBIGUATOR
24
- # endif
19
+ # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
20
+ # define SWIGTEMPLATEDISAMBIGUATOR template
21
+ # elif defined(__HP_aCC)
22
+ /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
23
+ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
24
+ # define SWIGTEMPLATEDISAMBIGUATOR template
25
25
  # else
26
- # define SWIGTEMPLATEDISAMBIGUATOR
26
+ # define SWIGTEMPLATEDISAMBIGUATOR
27
27
  # endif
28
28
  #endif
29
29
 
@@ -102,10 +102,16 @@
102
102
  #endif
103
103
 
104
104
  /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
105
- #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
105
+ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
106
106
  # define _CRT_SECURE_NO_DEPRECATE
107
107
  #endif
108
108
 
109
+ /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
110
+ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
111
+ # define _SCL_SECURE_NO_DEPRECATE
112
+ #endif
113
+
114
+
109
115
  /* -----------------------------------------------------------------------------
110
116
  * This section contains generic SWIG labels for method/variable
111
117
  * declarations/attributes, and other compiler dependent labels.
@@ -113,14 +119,14 @@
113
119
 
114
120
  /* template workaround for compilers that cannot correctly implement the C++ standard */
115
121
  #ifndef SWIGTEMPLATEDISAMBIGUATOR
116
- # if defined(__SUNPRO_CC)
117
- # if (__SUNPRO_CC <= 0x560)
118
- # define SWIGTEMPLATEDISAMBIGUATOR template
119
- # else
120
- # define SWIGTEMPLATEDISAMBIGUATOR
121
- # endif
122
+ # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
123
+ # define SWIGTEMPLATEDISAMBIGUATOR template
124
+ # elif defined(__HP_aCC)
125
+ /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
126
+ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
127
+ # define SWIGTEMPLATEDISAMBIGUATOR template
122
128
  # else
123
- # define SWIGTEMPLATEDISAMBIGUATOR
129
+ # define SWIGTEMPLATEDISAMBIGUATOR
124
130
  # endif
125
131
  #endif
126
132
 
@@ -199,10 +205,16 @@
199
205
  #endif
200
206
 
201
207
  /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
202
- #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
208
+ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
203
209
  # define _CRT_SECURE_NO_DEPRECATE
204
210
  #endif
205
211
 
212
+ /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
213
+ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
214
+ # define _SCL_SECURE_NO_DEPRECATE
215
+ #endif
216
+
217
+
206
218
  /* -----------------------------------------------------------------------------
207
219
  * swigrun.swg
208
220
  *
@@ -212,7 +224,7 @@
212
224
 
213
225
  /* This should only be incremented when either the layout of swig_type_info changes,
214
226
  or for whatever reason, the runtime changes incompatibly */
215
- #define SWIG_RUNTIME_VERSION "2"
227
+ #define SWIG_RUNTIME_VERSION "3"
216
228
 
217
229
  /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
218
230
  #ifdef SWIG_TYPE_TABLE
@@ -435,7 +447,7 @@ SWIG_TypeNameComp(const char *f1, const char *l1,
435
447
  while ((*f2 == ' ') && (f2 != l2)) ++f2;
436
448
  if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
437
449
  }
438
- return (l1 - f1) - (l2 - f2);
450
+ return (int)((l1 - f1) - (l2 - f2));
439
451
  }
440
452
 
441
453
  /*
@@ -791,6 +803,15 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
791
803
 
792
804
  #include <ruby.h>
793
805
 
806
+ /* Remove global macros defined in Ruby's win32.h */
807
+ #ifdef write
808
+ # undef write
809
+ #endif
810
+ #ifdef read
811
+ # undef read
812
+ #endif
813
+
814
+
794
815
  /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
795
816
  #ifndef NUM2LL
796
817
  #define NUM2LL(x) NUM2LONG((x))
@@ -811,6 +832,21 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
811
832
  #endif
812
833
  #endif
813
834
 
835
+ /* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
836
+ /* Define these for older versions so we can just write code the new way */
837
+ #ifndef RSTRING_LEN
838
+ # define RSTRING_LEN(x) RSTRING(x)->len
839
+ #endif
840
+ #ifndef RSTRING_PTR
841
+ # define RSTRING_PTR(x) RSTRING(x)->ptr
842
+ #endif
843
+ #ifndef RARRAY_LEN
844
+ # define RARRAY_LEN(x) RARRAY(x)->len
845
+ #endif
846
+ #ifndef RARRAY_PTR
847
+ # define RARRAY_PTR(x) RARRAY(x)->ptr
848
+ #endif
849
+
814
850
  /*
815
851
  * Need to be very careful about how these macros are defined, especially
816
852
  * when compiling C++ code or C code with an ANSI C compiler.
@@ -854,10 +890,10 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
854
890
  #define StringValue(s) RB_STRING_VALUE(s)
855
891
  #endif
856
892
  #ifndef StringValuePtr
857
- #define StringValuePtr(s) RSTRING(RB_STRING_VALUE(s))->ptr
893
+ #define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
858
894
  #endif
859
895
  #ifndef StringValueLen
860
- #define StringValueLen(s) RSTRING(RB_STRING_VALUE(s))->len
896
+ #define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
861
897
  #endif
862
898
  #ifndef SafeStringValue
863
899
  #define SafeStringValue(v) do {\
@@ -871,6 +907,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
871
907
  #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
872
908
  #endif
873
909
 
910
+ static VALUE _mSWIG = Qnil;
874
911
 
875
912
  /* -----------------------------------------------------------------------------
876
913
  * error manipulation
@@ -961,7 +998,71 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
961
998
  }
962
999
 
963
1000
 
1001
+ /* This function is called when a user inputs a wrong argument to
1002
+ a method.
1003
+ */
1004
+ SWIGINTERN
1005
+ const char* Ruby_Format_TypeError( const char* msg,
1006
+ const char* type,
1007
+ const char* name,
1008
+ const int argn,
1009
+ VALUE input )
1010
+ {
1011
+ char buf[128];
1012
+ VALUE str;
1013
+ VALUE asStr;
1014
+ if ( msg && *msg )
1015
+ {
1016
+ str = rb_str_new2(msg);
1017
+ }
1018
+ else
1019
+ {
1020
+ str = rb_str_new(NULL, 0);
1021
+ }
1022
+
1023
+ str = rb_str_cat2( str, "Expected argument " );
1024
+ sprintf( buf, "%d of type ", argn-1 );
1025
+ str = rb_str_cat2( str, buf );
1026
+ str = rb_str_cat2( str, type );
1027
+ str = rb_str_cat2( str, ", but got " );
1028
+ str = rb_str_cat2( str, rb_obj_classname(input) );
1029
+ str = rb_str_cat2( str, " " );
1030
+ asStr = rb_inspect(input);
1031
+ if ( RSTRING_LEN(asStr) > 30 )
1032
+ {
1033
+ str = rb_str_cat( str, StringValuePtr(asStr), 30 );
1034
+ str = rb_str_cat2( str, "..." );
1035
+ }
1036
+ else
1037
+ {
1038
+ str = rb_str_append( str, asStr );
1039
+ }
1040
+
1041
+ if ( name )
1042
+ {
1043
+ str = rb_str_cat2( str, "\n\tin SWIG method '" );
1044
+ str = rb_str_cat2( str, name );
1045
+ str = rb_str_cat2( str, "'" );
1046
+ }
964
1047
 
1048
+ return StringValuePtr( str );
1049
+ }
1050
+
1051
+ /* This function is called when an overloaded method fails */
1052
+ SWIGINTERN
1053
+ void Ruby_Format_OverloadedError(
1054
+ const int argc,
1055
+ const int maxargs,
1056
+ const char* method,
1057
+ const char* prototypes
1058
+ )
1059
+ {
1060
+ const char* msg = "Wrong # of arguments";
1061
+ if ( argc <= maxargs ) msg = "Wrong arguments";
1062
+ rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
1063
+ "Possible C/C++ prototypes are:\n%s",
1064
+ msg, method, prototypes);
1065
+ }
965
1066
 
966
1067
  /* -----------------------------------------------------------------------------
967
1068
  * See the LICENSE file for information on copyright, usage and redistribution
@@ -979,26 +1080,54 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
979
1080
  extern "C" {
980
1081
  #endif
981
1082
 
1083
+ /* Ruby 1.8 actually assumes the first case. */
1084
+ #if SIZEOF_VOIDP == SIZEOF_LONG
1085
+ # define SWIG2NUM(v) LONG2NUM((unsigned long)v)
1086
+ # define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
1087
+ #elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
1088
+ # define SWIG2NUM(v) LL2NUM((unsigned long long)v)
1089
+ # define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
1090
+ #else
1091
+ # error sizeof(void*) is not the same as long or long long
1092
+ #endif
1093
+
982
1094
 
983
1095
  /* Global Ruby hash table to store Trackings from C/C++
984
- structs to Ruby Objects. */
985
- static VALUE swig_ruby_trackings;
986
-
987
- /* Global variable that stores a reference to the ruby
988
- hash table delete function. */
989
- static ID swig_ruby_hash_delete = 0;
1096
+ structs to Ruby Objects.
1097
+ */
1098
+ static VALUE swig_ruby_trackings = Qnil;
1099
+
1100
+ /* Global variable that stores a reference to the ruby
1101
+ hash table delete function. */
1102
+ static ID swig_ruby_hash_delete;
990
1103
 
991
1104
  /* Setup a Ruby hash table to store Trackings */
992
1105
  SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
993
1106
  /* Create a ruby hash table to store Trackings from C++
994
- objects to Ruby objects. Also make sure to tell
995
- the garabage collector about the hash table. */
996
- swig_ruby_trackings = rb_hash_new();
997
- rb_gc_register_address(&swig_ruby_trackings);
998
-
999
- /* Now store a reference to the hash table delete function
1000
- so that we only have to look it up once.*/
1001
- swig_ruby_hash_delete = rb_intern("delete");
1107
+ objects to Ruby objects. */
1108
+
1109
+ /* Try to see if some other .so has already created a
1110
+ tracking hash table, which we keep hidden in an instance var
1111
+ in the SWIG module.
1112
+ This is done to allow multiple DSOs to share the same
1113
+ tracking table.
1114
+ */
1115
+ ID trackings_id = rb_intern( "@__trackings__" );
1116
+ VALUE verbose = rb_gv_get("VERBOSE");
1117
+ rb_gv_set("VERBOSE", Qfalse);
1118
+ swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
1119
+ rb_gv_set("VERBOSE", verbose);
1120
+
1121
+ /* No, it hasn't. Create one ourselves */
1122
+ if ( swig_ruby_trackings == Qnil )
1123
+ {
1124
+ swig_ruby_trackings = rb_hash_new();
1125
+ rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
1126
+ }
1127
+
1128
+ /* Now store a reference to the hash table delete function
1129
+ so that we only have to look it up once.*/
1130
+ swig_ruby_hash_delete = rb_intern("delete");
1002
1131
  }
1003
1132
 
1004
1133
  /* Get a Ruby number to reference a pointer */
@@ -1008,8 +1137,7 @@ SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
1008
1137
  a Ruby number object. */
1009
1138
 
1010
1139
  /* Convert the pointer to a Ruby number */
1011
- unsigned long value = (unsigned long) ptr;
1012
- return LONG2NUM(value);
1140
+ return SWIG2NUM(ptr);
1013
1141
  }
1014
1142
 
1015
1143
  /* Get a Ruby number to reference an object */
@@ -1019,8 +1147,7 @@ SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
1019
1147
  a Ruby number object. */
1020
1148
 
1021
1149
  /* Convert the Object to a Ruby number */
1022
- unsigned long value = (unsigned long) object;
1023
- return LONG2NUM(value);
1150
+ return SWIG2NUM(object);
1024
1151
  }
1025
1152
 
1026
1153
  /* Get a Ruby object from a previously stored reference */
@@ -1028,9 +1155,8 @@ SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
1028
1155
  /* The provided Ruby number object is a reference
1029
1156
  to the Ruby object we want.*/
1030
1157
 
1031
- /* First convert the Ruby number to a C number */
1032
- unsigned long value = NUM2LONG(reference);
1033
- return (VALUE) value;
1158
+ /* Convert the Ruby number to a Ruby object */
1159
+ return NUM2SWIG(reference);
1034
1160
  }
1035
1161
 
1036
1162
  /* Add a Tracking from a C/C++ struct to a Ruby object */
@@ -1122,6 +1248,15 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1122
1248
  return target;
1123
1249
  }
1124
1250
 
1251
+ /* For ruby1.8.4 and earlier. */
1252
+ #ifndef RUBY_INIT_STACK
1253
+ RUBY_EXTERN void Init_stack(VALUE* addr);
1254
+ # define RUBY_INIT_STACK \
1255
+ VALUE variable_in_this_stack_frame; \
1256
+ Init_stack(&variable_in_this_stack_frame);
1257
+ #endif
1258
+
1259
+
1125
1260
  #ifdef __cplusplus
1126
1261
  }
1127
1262
  #endif
@@ -1193,9 +1328,6 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1193
1328
 
1194
1329
  #ifdef __cplusplus
1195
1330
  extern "C" {
1196
- #if 0
1197
- } /* cc-mode */
1198
- #endif
1199
1331
  #endif
1200
1332
 
1201
1333
  typedef struct {
@@ -1207,10 +1339,44 @@ typedef struct {
1207
1339
  } swig_class;
1208
1340
 
1209
1341
 
1210
- static VALUE _mSWIG = Qnil;
1342
+ /* Global pointer used to keep some internal SWIG stuff */
1211
1343
  static VALUE _cSWIG_Pointer = Qnil;
1212
1344
  static VALUE swig_runtime_data_type_pointer = Qnil;
1213
1345
 
1346
+ /* Global IDs used to keep some internal SWIG stuff */
1347
+ static ID swig_arity_id = 0;
1348
+ static ID swig_call_id = 0;
1349
+
1350
+ /*
1351
+ If your swig extension is to be run within an embedded ruby and has
1352
+ director callbacks, you should set -DRUBY_EMBEDDED during compilation.
1353
+ This will reset ruby's stack frame on each entry point from the main
1354
+ program the first time a virtual director function is invoked (in a
1355
+ non-recursive way).
1356
+ If this is not done, you run the risk of Ruby trashing the stack.
1357
+ */
1358
+
1359
+ #ifdef RUBY_EMBEDDED
1360
+
1361
+ # define SWIG_INIT_STACK \
1362
+ if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
1363
+ ++swig_virtual_calls;
1364
+ # define SWIG_RELEASE_STACK --swig_virtual_calls;
1365
+ # define Ruby_DirectorTypeMismatchException(x) \
1366
+ rb_raise( rb_eTypeError, x ); return c_result;
1367
+
1368
+ static unsigned int swig_virtual_calls = 0;
1369
+
1370
+ #else /* normal non-embedded extension */
1371
+
1372
+ # define SWIG_INIT_STACK
1373
+ # define SWIG_RELEASE_STACK
1374
+ # define Ruby_DirectorTypeMismatchException(x) \
1375
+ throw Swig::DirectorTypeMismatchException( x );
1376
+
1377
+ #endif /* RUBY_EMBEDDED */
1378
+
1379
+
1214
1380
  SWIGRUNTIME VALUE
1215
1381
  getExceptionClass(void) {
1216
1382
  static int init = 0;
@@ -1242,6 +1408,8 @@ SWIG_Ruby_InitRuntime(void)
1242
1408
  {
1243
1409
  if (_mSWIG == Qnil) {
1244
1410
  _mSWIG = rb_define_module("SWIG");
1411
+ swig_call_id = rb_intern("call");
1412
+ swig_arity_id = rb_intern("arity");
1245
1413
  }
1246
1414
  }
1247
1415
 
@@ -1265,7 +1433,7 @@ SWIGRUNTIME VALUE
1265
1433
  SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1266
1434
  {
1267
1435
  int own = flags & SWIG_POINTER_OWN;
1268
-
1436
+ int track;
1269
1437
  char *klass_name;
1270
1438
  swig_class *sklass;
1271
1439
  VALUE klass;
@@ -1278,15 +1446,16 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1278
1446
  sklass = (swig_class *) type->clientdata;
1279
1447
 
1280
1448
  /* Are we tracking this class and have we already returned this Ruby object? */
1281
- if (sklass->trackObjects) {
1449
+ track = sklass->trackObjects;
1450
+ if (track) {
1282
1451
  obj = SWIG_RubyInstanceFor(ptr);
1283
1452
 
1284
1453
  /* Check the object's type and make sure it has the correct type.
1285
1454
  It might not in cases where methods do things like
1286
1455
  downcast methods. */
1287
1456
  if (obj != Qnil) {
1288
- VALUE value = rb_iv_get(obj, "__swigtype__");
1289
- char* type_name = RSTRING(value)->ptr;
1457
+ VALUE value = rb_iv_get(obj, "@__swigtype__");
1458
+ char* type_name = RSTRING_PTR(value);
1290
1459
 
1291
1460
  if (strcmp(type->name, type_name) == 0) {
1292
1461
  return obj;
@@ -1295,10 +1464,13 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1295
1464
  }
1296
1465
 
1297
1466
  /* Create a new Ruby object */
1298
- obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), (own ? VOIDFUNC(sklass->destroy) : 0), ptr);
1467
+ obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
1468
+ ( own ? VOIDFUNC(sklass->destroy) :
1469
+ (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
1470
+ ), ptr);
1299
1471
 
1300
1472
  /* If tracking is on for this class then track this object. */
1301
- if (sklass->trackObjects) {
1473
+ if (track) {
1302
1474
  SWIG_RubyAddTracking(ptr, obj);
1303
1475
  }
1304
1476
  } else {
@@ -1308,7 +1480,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1308
1480
  free((void *) klass_name);
1309
1481
  obj = Data_Wrap_Struct(klass, 0, 0, ptr);
1310
1482
  }
1311
- rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
1483
+ rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1312
1484
 
1313
1485
  return obj;
1314
1486
  }
@@ -1320,7 +1492,7 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
1320
1492
  VALUE obj;
1321
1493
  swig_class *sklass = (swig_class *) type->clientdata;
1322
1494
  obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
1323
- rb_iv_set(obj, "__swigtype__", rb_str_new2(type->name));
1495
+ rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1324
1496
  return obj;
1325
1497
  }
1326
1498
 
@@ -1328,7 +1500,7 @@ SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
1328
1500
  SWIGRUNTIMEINLINE char *
1329
1501
  SWIG_Ruby_MangleStr(VALUE obj)
1330
1502
  {
1331
- VALUE stype = rb_iv_get(obj, "__swigtype__");
1503
+ VALUE stype = rb_iv_get(obj, "@__swigtype__");
1332
1504
  return StringValuePtr(stype);
1333
1505
  }
1334
1506
 
@@ -1492,10 +1664,42 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
1492
1664
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
1493
1665
  }
1494
1666
 
1667
+ /* This function can be used to check whether a proc or method or similarly
1668
+ callable function has been passed. Usually used in a %typecheck, like:
1669
+
1670
+ %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
1671
+ $result = SWIG_Ruby_isCallable( $input );
1672
+ }
1673
+ */
1674
+ SWIGINTERN
1675
+ int SWIG_Ruby_isCallable( VALUE proc )
1676
+ {
1677
+ if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
1678
+ return 1;
1679
+ return 0;
1680
+ }
1681
+
1682
+ /* This function can be used to check the arity (number of arguments)
1683
+ a proc or method can take. Usually used in a %typecheck.
1684
+ Valid arities will be that equal to minimal or those < 0
1685
+ which indicate a variable number of parameters at the end.
1686
+ */
1687
+ SWIGINTERN
1688
+ int SWIG_Ruby_arity( VALUE proc, int minimal )
1689
+ {
1690
+ if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
1691
+ {
1692
+ VALUE num = rb_funcall( proc, swig_arity_id, 0 );
1693
+ int arity = NUM2INT(num);
1694
+ if ( arity < 0 && (arity+1) < -minimal ) return 1;
1695
+ if ( arity == minimal ) return 1;
1696
+ return 1;
1697
+ }
1698
+ return 0;
1699
+ }
1700
+
1701
+
1495
1702
  #ifdef __cplusplus
1496
- #if 0
1497
- { /* cc-mode */
1498
- #endif
1499
1703
  }
1500
1704
  #endif
1501
1705
 
@@ -1518,30 +1722,31 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
1518
1722
  #define SWIGTYPE_p_memcached_cleanup_func swig_types[6]
1519
1723
  #define SWIGTYPE_p_memcached_clone_func swig_types[7]
1520
1724
  #define SWIGTYPE_p_memcached_connection swig_types[8]
1521
- #define SWIGTYPE_p_memcached_free_function swig_types[9]
1522
- #define SWIGTYPE_p_memcached_hash swig_types[10]
1523
- #define SWIGTYPE_p_memcached_malloc_function swig_types[11]
1524
- #define SWIGTYPE_p_memcached_realloc_function swig_types[12]
1525
- #define SWIGTYPE_p_memcached_result_st swig_types[13]
1526
- #define SWIGTYPE_p_memcached_return swig_types[14]
1527
- #define SWIGTYPE_p_memcached_server_distribution swig_types[15]
1528
- #define SWIGTYPE_p_memcached_server_function swig_types[16]
1529
- #define SWIGTYPE_p_memcached_server_st swig_types[17]
1530
- #define SWIGTYPE_p_memcached_st swig_types[18]
1531
- #define SWIGTYPE_p_memcached_stat_st swig_types[19]
1532
- #define SWIGTYPE_p_memcached_string_st swig_types[20]
1533
- #define SWIGTYPE_p_memcached_trigger_delete_key swig_types[21]
1534
- #define SWIGTYPE_p_memcached_trigger_key swig_types[22]
1535
- #define SWIGTYPE_p_p_char swig_types[23]
1536
- #define SWIGTYPE_p_p_f_p_memcached_st_p_memcached_result_st_p_void__unsigned_int swig_types[24]
1537
- #define SWIGTYPE_p_size_t swig_types[25]
1538
- #define SWIGTYPE_p_time_t swig_types[26]
1539
- #define SWIGTYPE_p_uint32_t swig_types[27]
1540
- #define SWIGTYPE_p_uint64_t swig_types[28]
1541
- #define SWIGTYPE_p_unsigned_int swig_types[29]
1542
- #define SWIGTYPE_p_void swig_types[30]
1543
- static swig_type_info *swig_types[32];
1544
- static swig_module_info swig_module = {swig_types, 31, 0, 0, 0, 0};
1725
+ #define SWIGTYPE_p_memcached_continuum_item_st swig_types[9]
1726
+ #define SWIGTYPE_p_memcached_execute_function swig_types[10]
1727
+ #define SWIGTYPE_p_memcached_free_function swig_types[11]
1728
+ #define SWIGTYPE_p_memcached_hash swig_types[12]
1729
+ #define SWIGTYPE_p_memcached_malloc_function swig_types[13]
1730
+ #define SWIGTYPE_p_memcached_realloc_function swig_types[14]
1731
+ #define SWIGTYPE_p_memcached_result_st swig_types[15]
1732
+ #define SWIGTYPE_p_memcached_return swig_types[16]
1733
+ #define SWIGTYPE_p_memcached_server_distribution swig_types[17]
1734
+ #define SWIGTYPE_p_memcached_server_function swig_types[18]
1735
+ #define SWIGTYPE_p_memcached_server_st swig_types[19]
1736
+ #define SWIGTYPE_p_memcached_st swig_types[20]
1737
+ #define SWIGTYPE_p_memcached_stat_st swig_types[21]
1738
+ #define SWIGTYPE_p_memcached_string_st swig_types[22]
1739
+ #define SWIGTYPE_p_memcached_trigger_delete_key swig_types[23]
1740
+ #define SWIGTYPE_p_memcached_trigger_key swig_types[24]
1741
+ #define SWIGTYPE_p_p_char swig_types[25]
1742
+ #define SWIGTYPE_p_size_t swig_types[26]
1743
+ #define SWIGTYPE_p_time_t swig_types[27]
1744
+ #define SWIGTYPE_p_uint32_t swig_types[28]
1745
+ #define SWIGTYPE_p_uint64_t swig_types[29]
1746
+ #define SWIGTYPE_p_unsigned_int swig_types[30]
1747
+ #define SWIGTYPE_p_void swig_types[31]
1748
+ static swig_type_info *swig_types[33];
1749
+ static swig_module_info swig_module = {swig_types, 32, 0, 0, 0, 0};
1545
1750
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1546
1751
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1547
1752
 
@@ -1552,7 +1757,12 @@ static swig_module_info swig_module = {swig_types, 31, 0, 0, 0, 0};
1552
1757
 
1553
1758
  static VALUE mRlibmemcached;
1554
1759
 
1555
- #define SWIGVERSION 0x010329
1760
+ #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1761
+ #define SWIG_RUBY_THREAD_END_BLOCK
1762
+
1763
+
1764
+ #define SWIGVERSION 0x010333
1765
+ #define SWIG_VERSION SWIGVERSION
1556
1766
 
1557
1767
 
1558
1768
  #define SWIG_as_voidptr(a) (void *)((const void *)(a))
@@ -1584,14 +1794,12 @@ struct timeval rb_time_timeval(VALUE);
1584
1794
 
1585
1795
 
1586
1796
  #include <limits.h>
1587
- #ifndef LLONG_MIN
1588
- # define LLONG_MIN LONG_LONG_MIN
1589
- #endif
1590
- #ifndef LLONG_MAX
1591
- # define LLONG_MAX LONG_LONG_MAX
1592
- #endif
1593
- #ifndef ULLONG_MAX
1594
- # define ULLONG_MAX ULONG_LONG_MAX
1797
+ #if !defined(SWIG_NO_LLONG_MAX)
1798
+ # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
1799
+ # define LLONG_MAX __LONG_LONG_MAX__
1800
+ # define LLONG_MIN (-LLONG_MAX - 1LL)
1801
+ # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
1802
+ # endif
1595
1803
  #endif
1596
1804
 
1597
1805
 
@@ -1606,7 +1814,7 @@ SWIG_From_int (int value)
1606
1814
 
1607
1815
 
1608
1816
  SWIGINTERN swig_type_info*
1609
- SWIG_pchar_descriptor()
1817
+ SWIG_pchar_descriptor(void)
1610
1818
  {
1611
1819
  static int init = 0;
1612
1820
  static swig_type_info* info = 0;
@@ -1646,12 +1854,12 @@ SWIGINTERN int
1646
1854
  SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
1647
1855
  {
1648
1856
  if (TYPE(obj) == T_STRING) {
1649
-
1650
-
1651
-
1857
+ #if defined(StringValuePtr)
1858
+ char *cstr = StringValuePtr(obj);
1859
+ #else
1652
1860
  char *cstr = STR2CSTR(obj);
1653
-
1654
- size_t size = RSTRING(obj)->len + 1;
1861
+ #endif
1862
+ size_t size = RSTRING_LEN(obj) + 1;
1655
1863
  if (cptr) {
1656
1864
  if (alloc) {
1657
1865
  if (*alloc == SWIG_NEWOBJ) {
@@ -1711,7 +1919,7 @@ SWIG_ruby_failed(void)
1711
1919
  }
1712
1920
 
1713
1921
 
1714
- /*@SWIG:%ruby_aux_method@*/
1922
+ /*@SWIG:/opt/local/share/swig/1.3.33/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
1715
1923
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
1716
1924
  {
1717
1925
  VALUE obj = args[0];
@@ -1756,7 +1964,7 @@ SWIG_AsVal_int (VALUE obj, int *val)
1756
1964
  }
1757
1965
 
1758
1966
 
1759
- /*@SWIG:%ruby_aux_method@*/
1967
+ /*@SWIG:/opt/local/share/swig/1.3.33/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
1760
1968
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
1761
1969
  {
1762
1970
  VALUE obj = args[0];
@@ -1849,7 +2057,7 @@ SWIG_From_unsigned_SS_short (unsigned short value)
1849
2057
  }
1850
2058
 
1851
2059
 
1852
- /*@SWIG:%ruby_aux_method@*/
2060
+ /*@SWIG:/opt/local/share/swig/1.3.33/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
1853
2061
  SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
1854
2062
  {
1855
2063
  VALUE obj = args[0];
@@ -1966,6 +2174,165 @@ memcached_stat_st *memcached_select_stat_at(memcached_st *in_ptr, memcached_stat
1966
2174
  return &(stat_ptr[index]);
1967
2175
  };
1968
2176
 
2177
+ swig_class cMemcachedContinuumItemSt;
2178
+
2179
+ SWIGINTERN VALUE
2180
+ _wrap_MemcachedContinuumItemSt_index_set(int argc, VALUE *argv, VALUE self) {
2181
+ struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ;
2182
+ uint32_t arg2 ;
2183
+ void *argp1 = 0 ;
2184
+ int res1 = 0 ;
2185
+ void *argp2 ;
2186
+ int res2 = 0 ;
2187
+
2188
+ if ((argc < 1) || (argc > 1)) {
2189
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2190
+ }
2191
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 );
2192
+ if (!SWIG_IsOK(res1)) {
2193
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_continuum_item_st *","index", 1, self ));
2194
+ }
2195
+ arg1 = (struct memcached_continuum_item_st *)(argp1);
2196
+ {
2197
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2198
+ if (!SWIG_IsOK(res2)) {
2199
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","index", 2, argv[0] ));
2200
+ }
2201
+ if (!argp2) {
2202
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","index", 2, argv[0]));
2203
+ } else {
2204
+ arg2 = *((uint32_t *)(argp2));
2205
+ }
2206
+ }
2207
+ if (arg1) (arg1)->index = arg2;
2208
+
2209
+ return Qnil;
2210
+ fail:
2211
+ return Qnil;
2212
+ }
2213
+
2214
+
2215
+ SWIGINTERN VALUE
2216
+ _wrap_MemcachedContinuumItemSt_index_get(int argc, VALUE *argv, VALUE self) {
2217
+ struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ;
2218
+ uint32_t result;
2219
+ void *argp1 = 0 ;
2220
+ int res1 = 0 ;
2221
+ VALUE vresult = Qnil;
2222
+
2223
+ if ((argc < 0) || (argc > 0)) {
2224
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2225
+ }
2226
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 );
2227
+ if (!SWIG_IsOK(res1)) {
2228
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_continuum_item_st *","index", 1, self ));
2229
+ }
2230
+ arg1 = (struct memcached_continuum_item_st *)(argp1);
2231
+ result = ((arg1)->index);
2232
+ vresult = SWIG_NewPointerObj((uint32_t *)memcpy((uint32_t *)malloc(sizeof(uint32_t)),&result,sizeof(uint32_t)), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 );
2233
+ return vresult;
2234
+ fail:
2235
+ return Qnil;
2236
+ }
2237
+
2238
+
2239
+ SWIGINTERN VALUE
2240
+ _wrap_MemcachedContinuumItemSt_value_set(int argc, VALUE *argv, VALUE self) {
2241
+ struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ;
2242
+ uint32_t arg2 ;
2243
+ void *argp1 = 0 ;
2244
+ int res1 = 0 ;
2245
+ void *argp2 ;
2246
+ int res2 = 0 ;
2247
+
2248
+ if ((argc < 1) || (argc > 1)) {
2249
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2250
+ }
2251
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 );
2252
+ if (!SWIG_IsOK(res1)) {
2253
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_continuum_item_st *","value", 1, self ));
2254
+ }
2255
+ arg1 = (struct memcached_continuum_item_st *)(argp1);
2256
+ {
2257
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2258
+ if (!SWIG_IsOK(res2)) {
2259
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","value", 2, argv[0] ));
2260
+ }
2261
+ if (!argp2) {
2262
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","value", 2, argv[0]));
2263
+ } else {
2264
+ arg2 = *((uint32_t *)(argp2));
2265
+ }
2266
+ }
2267
+ if (arg1) (arg1)->value = arg2;
2268
+
2269
+ return Qnil;
2270
+ fail:
2271
+ return Qnil;
2272
+ }
2273
+
2274
+
2275
+ SWIGINTERN VALUE
2276
+ _wrap_MemcachedContinuumItemSt_value_get(int argc, VALUE *argv, VALUE self) {
2277
+ struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ;
2278
+ uint32_t result;
2279
+ void *argp1 = 0 ;
2280
+ int res1 = 0 ;
2281
+ VALUE vresult = Qnil;
2282
+
2283
+ if ((argc < 0) || (argc > 0)) {
2284
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2285
+ }
2286
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 );
2287
+ if (!SWIG_IsOK(res1)) {
2288
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_continuum_item_st *","value", 1, self ));
2289
+ }
2290
+ arg1 = (struct memcached_continuum_item_st *)(argp1);
2291
+ result = ((arg1)->value);
2292
+ vresult = SWIG_NewPointerObj((uint32_t *)memcpy((uint32_t *)malloc(sizeof(uint32_t)),&result,sizeof(uint32_t)), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 );
2293
+ return vresult;
2294
+ fail:
2295
+ return Qnil;
2296
+ }
2297
+
2298
+
2299
+ #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
2300
+ SWIGINTERN VALUE
2301
+ _wrap_MemcachedContinuumItemSt_allocate(VALUE self) {
2302
+ #else
2303
+ SWIGINTERN VALUE
2304
+ _wrap_MemcachedContinuumItemSt_allocate(int argc, VALUE *argv, VALUE self) {
2305
+ #endif
2306
+
2307
+
2308
+ VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_continuum_item_st);
2309
+ #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
2310
+ rb_obj_call_init(vresult, argc, argv);
2311
+ #endif
2312
+ return vresult;
2313
+ }
2314
+
2315
+
2316
+ SWIGINTERN VALUE
2317
+ _wrap_new_MemcachedContinuumItemSt(int argc, VALUE *argv, VALUE self) {
2318
+ struct memcached_continuum_item_st *result = 0 ;
2319
+
2320
+ if ((argc < 0) || (argc > 0)) {
2321
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2322
+ }
2323
+ result = (struct memcached_continuum_item_st *)(struct memcached_continuum_item_st *) calloc(1, sizeof(struct memcached_continuum_item_st));DATA_PTR(self) = result;
2324
+
2325
+ return self;
2326
+ fail:
2327
+ return Qnil;
2328
+ }
2329
+
2330
+
2331
+ SWIGINTERN void
2332
+ free_memcached_continuum_item_st(struct memcached_continuum_item_st *arg1) {
2333
+ free((char *) arg1);
2334
+ }
2335
+
1969
2336
  swig_class cMemcachedStatSt;
1970
2337
 
1971
2338
  SWIGINTERN VALUE
@@ -1982,16 +2349,16 @@ _wrap_MemcachedStatSt_pid_set(int argc, VALUE *argv, VALUE self) {
1982
2349
  }
1983
2350
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
1984
2351
  if (!SWIG_IsOK(res1)) {
1985
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pid" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2352
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pid", 1, self ));
1986
2353
  }
1987
2354
  arg1 = (struct memcached_stat_st *)(argp1);
1988
2355
  {
1989
2356
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
1990
2357
  if (!SWIG_IsOK(res2)) {
1991
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pid" "', argument " "2"" of type '" "uint32_t""'");
2358
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","pid", 2, argv[0] ));
1992
2359
  }
1993
2360
  if (!argp2) {
1994
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "pid" "', argument " "2"" of type '" "uint32_t""'");
2361
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","pid", 2, argv[0]));
1995
2362
  } else {
1996
2363
  arg2 = *((uint32_t *)(argp2));
1997
2364
  }
@@ -2017,7 +2384,7 @@ _wrap_MemcachedStatSt_pid_get(int argc, VALUE *argv, VALUE self) {
2017
2384
  }
2018
2385
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2019
2386
  if (!SWIG_IsOK(res1)) {
2020
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pid" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2387
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pid", 1, self ));
2021
2388
  }
2022
2389
  arg1 = (struct memcached_stat_st *)(argp1);
2023
2390
  result = ((arg1)->pid);
@@ -2042,16 +2409,16 @@ _wrap_MemcachedStatSt_uptime_set(int argc, VALUE *argv, VALUE self) {
2042
2409
  }
2043
2410
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2044
2411
  if (!SWIG_IsOK(res1)) {
2045
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uptime" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2412
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","uptime", 1, self ));
2046
2413
  }
2047
2414
  arg1 = (struct memcached_stat_st *)(argp1);
2048
2415
  {
2049
2416
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2050
2417
  if (!SWIG_IsOK(res2)) {
2051
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "uptime" "', argument " "2"" of type '" "uint32_t""'");
2418
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","uptime", 2, argv[0] ));
2052
2419
  }
2053
2420
  if (!argp2) {
2054
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "uptime" "', argument " "2"" of type '" "uint32_t""'");
2421
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","uptime", 2, argv[0]));
2055
2422
  } else {
2056
2423
  arg2 = *((uint32_t *)(argp2));
2057
2424
  }
@@ -2077,7 +2444,7 @@ _wrap_MemcachedStatSt_uptime_get(int argc, VALUE *argv, VALUE self) {
2077
2444
  }
2078
2445
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2079
2446
  if (!SWIG_IsOK(res1)) {
2080
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "uptime" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2447
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","uptime", 1, self ));
2081
2448
  }
2082
2449
  arg1 = (struct memcached_stat_st *)(argp1);
2083
2450
  result = ((arg1)->uptime);
@@ -2102,16 +2469,16 @@ _wrap_MemcachedStatSt_threads_set(int argc, VALUE *argv, VALUE self) {
2102
2469
  }
2103
2470
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2104
2471
  if (!SWIG_IsOK(res1)) {
2105
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "threads" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2472
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","threads", 1, self ));
2106
2473
  }
2107
2474
  arg1 = (struct memcached_stat_st *)(argp1);
2108
2475
  {
2109
2476
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2110
2477
  if (!SWIG_IsOK(res2)) {
2111
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "threads" "', argument " "2"" of type '" "uint32_t""'");
2478
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","threads", 2, argv[0] ));
2112
2479
  }
2113
2480
  if (!argp2) {
2114
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "threads" "', argument " "2"" of type '" "uint32_t""'");
2481
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","threads", 2, argv[0]));
2115
2482
  } else {
2116
2483
  arg2 = *((uint32_t *)(argp2));
2117
2484
  }
@@ -2137,7 +2504,7 @@ _wrap_MemcachedStatSt_threads_get(int argc, VALUE *argv, VALUE self) {
2137
2504
  }
2138
2505
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2139
2506
  if (!SWIG_IsOK(res1)) {
2140
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "threads" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2507
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","threads", 1, self ));
2141
2508
  }
2142
2509
  arg1 = (struct memcached_stat_st *)(argp1);
2143
2510
  result = ((arg1)->threads);
@@ -2162,16 +2529,16 @@ _wrap_MemcachedStatSt_time_set(int argc, VALUE *argv, VALUE self) {
2162
2529
  }
2163
2530
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2164
2531
  if (!SWIG_IsOK(res1)) {
2165
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "time" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2532
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","time", 1, self ));
2166
2533
  }
2167
2534
  arg1 = (struct memcached_stat_st *)(argp1);
2168
2535
  {
2169
2536
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2170
2537
  if (!SWIG_IsOK(res2)) {
2171
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "time" "', argument " "2"" of type '" "uint32_t""'");
2538
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","time", 2, argv[0] ));
2172
2539
  }
2173
2540
  if (!argp2) {
2174
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "time" "', argument " "2"" of type '" "uint32_t""'");
2541
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","time", 2, argv[0]));
2175
2542
  } else {
2176
2543
  arg2 = *((uint32_t *)(argp2));
2177
2544
  }
@@ -2197,7 +2564,7 @@ _wrap_MemcachedStatSt_time_get(int argc, VALUE *argv, VALUE self) {
2197
2564
  }
2198
2565
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2199
2566
  if (!SWIG_IsOK(res1)) {
2200
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "time" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2567
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","time", 1, self ));
2201
2568
  }
2202
2569
  arg1 = (struct memcached_stat_st *)(argp1);
2203
2570
  result = ((arg1)->time);
@@ -2222,16 +2589,16 @@ _wrap_MemcachedStatSt_pointer_size_set(int argc, VALUE *argv, VALUE self) {
2222
2589
  }
2223
2590
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2224
2591
  if (!SWIG_IsOK(res1)) {
2225
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointer_size" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2592
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pointer_size", 1, self ));
2226
2593
  }
2227
2594
  arg1 = (struct memcached_stat_st *)(argp1);
2228
2595
  {
2229
2596
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2230
2597
  if (!SWIG_IsOK(res2)) {
2231
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "pointer_size" "', argument " "2"" of type '" "uint32_t""'");
2598
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","pointer_size", 2, argv[0] ));
2232
2599
  }
2233
2600
  if (!argp2) {
2234
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "pointer_size" "', argument " "2"" of type '" "uint32_t""'");
2601
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","pointer_size", 2, argv[0]));
2235
2602
  } else {
2236
2603
  arg2 = *((uint32_t *)(argp2));
2237
2604
  }
@@ -2257,7 +2624,7 @@ _wrap_MemcachedStatSt_pointer_size_get(int argc, VALUE *argv, VALUE self) {
2257
2624
  }
2258
2625
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2259
2626
  if (!SWIG_IsOK(res1)) {
2260
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pointer_size" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2627
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pointer_size", 1, self ));
2261
2628
  }
2262
2629
  arg1 = (struct memcached_stat_st *)(argp1);
2263
2630
  result = ((arg1)->pointer_size);
@@ -2282,16 +2649,16 @@ _wrap_MemcachedStatSt_rusage_user_seconds_set(int argc, VALUE *argv, VALUE self)
2282
2649
  }
2283
2650
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2284
2651
  if (!SWIG_IsOK(res1)) {
2285
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_user_seconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2652
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_seconds", 1, self ));
2286
2653
  }
2287
2654
  arg1 = (struct memcached_stat_st *)(argp1);
2288
2655
  {
2289
2656
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2290
2657
  if (!SWIG_IsOK(res2)) {
2291
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rusage_user_seconds" "', argument " "2"" of type '" "uint32_t""'");
2658
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_user_seconds", 2, argv[0] ));
2292
2659
  }
2293
2660
  if (!argp2) {
2294
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rusage_user_seconds" "', argument " "2"" of type '" "uint32_t""'");
2661
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_user_seconds", 2, argv[0]));
2295
2662
  } else {
2296
2663
  arg2 = *((uint32_t *)(argp2));
2297
2664
  }
@@ -2317,7 +2684,7 @@ _wrap_MemcachedStatSt_rusage_user_seconds_get(int argc, VALUE *argv, VALUE self)
2317
2684
  }
2318
2685
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2319
2686
  if (!SWIG_IsOK(res1)) {
2320
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_user_seconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2687
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_seconds", 1, self ));
2321
2688
  }
2322
2689
  arg1 = (struct memcached_stat_st *)(argp1);
2323
2690
  result = ((arg1)->rusage_user_seconds);
@@ -2342,16 +2709,16 @@ _wrap_MemcachedStatSt_rusage_user_microseconds_set(int argc, VALUE *argv, VALUE
2342
2709
  }
2343
2710
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2344
2711
  if (!SWIG_IsOK(res1)) {
2345
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_user_microseconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2712
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_microseconds", 1, self ));
2346
2713
  }
2347
2714
  arg1 = (struct memcached_stat_st *)(argp1);
2348
2715
  {
2349
2716
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2350
2717
  if (!SWIG_IsOK(res2)) {
2351
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rusage_user_microseconds" "', argument " "2"" of type '" "uint32_t""'");
2718
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_user_microseconds", 2, argv[0] ));
2352
2719
  }
2353
2720
  if (!argp2) {
2354
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rusage_user_microseconds" "', argument " "2"" of type '" "uint32_t""'");
2721
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_user_microseconds", 2, argv[0]));
2355
2722
  } else {
2356
2723
  arg2 = *((uint32_t *)(argp2));
2357
2724
  }
@@ -2377,7 +2744,7 @@ _wrap_MemcachedStatSt_rusage_user_microseconds_get(int argc, VALUE *argv, VALUE
2377
2744
  }
2378
2745
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2379
2746
  if (!SWIG_IsOK(res1)) {
2380
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_user_microseconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2747
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_microseconds", 1, self ));
2381
2748
  }
2382
2749
  arg1 = (struct memcached_stat_st *)(argp1);
2383
2750
  result = ((arg1)->rusage_user_microseconds);
@@ -2402,16 +2769,16 @@ _wrap_MemcachedStatSt_rusage_system_seconds_set(int argc, VALUE *argv, VALUE sel
2402
2769
  }
2403
2770
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2404
2771
  if (!SWIG_IsOK(res1)) {
2405
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_system_seconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2772
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_seconds", 1, self ));
2406
2773
  }
2407
2774
  arg1 = (struct memcached_stat_st *)(argp1);
2408
2775
  {
2409
2776
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2410
2777
  if (!SWIG_IsOK(res2)) {
2411
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rusage_system_seconds" "', argument " "2"" of type '" "uint32_t""'");
2778
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_system_seconds", 2, argv[0] ));
2412
2779
  }
2413
2780
  if (!argp2) {
2414
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rusage_system_seconds" "', argument " "2"" of type '" "uint32_t""'");
2781
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_system_seconds", 2, argv[0]));
2415
2782
  } else {
2416
2783
  arg2 = *((uint32_t *)(argp2));
2417
2784
  }
@@ -2437,7 +2804,7 @@ _wrap_MemcachedStatSt_rusage_system_seconds_get(int argc, VALUE *argv, VALUE sel
2437
2804
  }
2438
2805
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2439
2806
  if (!SWIG_IsOK(res1)) {
2440
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_system_seconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2807
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_seconds", 1, self ));
2441
2808
  }
2442
2809
  arg1 = (struct memcached_stat_st *)(argp1);
2443
2810
  result = ((arg1)->rusage_system_seconds);
@@ -2462,16 +2829,16 @@ _wrap_MemcachedStatSt_rusage_system_microseconds_set(int argc, VALUE *argv, VALU
2462
2829
  }
2463
2830
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2464
2831
  if (!SWIG_IsOK(res1)) {
2465
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_system_microseconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2832
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_microseconds", 1, self ));
2466
2833
  }
2467
2834
  arg1 = (struct memcached_stat_st *)(argp1);
2468
2835
  {
2469
2836
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2470
2837
  if (!SWIG_IsOK(res2)) {
2471
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "rusage_system_microseconds" "', argument " "2"" of type '" "uint32_t""'");
2838
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_system_microseconds", 2, argv[0] ));
2472
2839
  }
2473
2840
  if (!argp2) {
2474
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "rusage_system_microseconds" "', argument " "2"" of type '" "uint32_t""'");
2841
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_system_microseconds", 2, argv[0]));
2475
2842
  } else {
2476
2843
  arg2 = *((uint32_t *)(argp2));
2477
2844
  }
@@ -2497,7 +2864,7 @@ _wrap_MemcachedStatSt_rusage_system_microseconds_get(int argc, VALUE *argv, VALU
2497
2864
  }
2498
2865
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2499
2866
  if (!SWIG_IsOK(res1)) {
2500
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rusage_system_microseconds" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2867
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_microseconds", 1, self ));
2501
2868
  }
2502
2869
  arg1 = (struct memcached_stat_st *)(argp1);
2503
2870
  result = ((arg1)->rusage_system_microseconds);
@@ -2522,16 +2889,16 @@ _wrap_MemcachedStatSt_curr_items_set(int argc, VALUE *argv, VALUE self) {
2522
2889
  }
2523
2890
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2524
2891
  if (!SWIG_IsOK(res1)) {
2525
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "curr_items" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2892
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_items", 1, self ));
2526
2893
  }
2527
2894
  arg1 = (struct memcached_stat_st *)(argp1);
2528
2895
  {
2529
2896
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2530
2897
  if (!SWIG_IsOK(res2)) {
2531
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "curr_items" "', argument " "2"" of type '" "uint32_t""'");
2898
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","curr_items", 2, argv[0] ));
2532
2899
  }
2533
2900
  if (!argp2) {
2534
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "curr_items" "', argument " "2"" of type '" "uint32_t""'");
2901
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","curr_items", 2, argv[0]));
2535
2902
  } else {
2536
2903
  arg2 = *((uint32_t *)(argp2));
2537
2904
  }
@@ -2557,7 +2924,7 @@ _wrap_MemcachedStatSt_curr_items_get(int argc, VALUE *argv, VALUE self) {
2557
2924
  }
2558
2925
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2559
2926
  if (!SWIG_IsOK(res1)) {
2560
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "curr_items" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2927
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_items", 1, self ));
2561
2928
  }
2562
2929
  arg1 = (struct memcached_stat_st *)(argp1);
2563
2930
  result = ((arg1)->curr_items);
@@ -2582,16 +2949,16 @@ _wrap_MemcachedStatSt_total_items_set(int argc, VALUE *argv, VALUE self) {
2582
2949
  }
2583
2950
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2584
2951
  if (!SWIG_IsOK(res1)) {
2585
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "total_items" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2952
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_items", 1, self ));
2586
2953
  }
2587
2954
  arg1 = (struct memcached_stat_st *)(argp1);
2588
2955
  {
2589
2956
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2590
2957
  if (!SWIG_IsOK(res2)) {
2591
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "total_items" "', argument " "2"" of type '" "uint32_t""'");
2958
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","total_items", 2, argv[0] ));
2592
2959
  }
2593
2960
  if (!argp2) {
2594
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "total_items" "', argument " "2"" of type '" "uint32_t""'");
2961
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","total_items", 2, argv[0]));
2595
2962
  } else {
2596
2963
  arg2 = *((uint32_t *)(argp2));
2597
2964
  }
@@ -2617,7 +2984,7 @@ _wrap_MemcachedStatSt_total_items_get(int argc, VALUE *argv, VALUE self) {
2617
2984
  }
2618
2985
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2619
2986
  if (!SWIG_IsOK(res1)) {
2620
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "total_items" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
2987
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_items", 1, self ));
2621
2988
  }
2622
2989
  arg1 = (struct memcached_stat_st *)(argp1);
2623
2990
  result = ((arg1)->total_items);
@@ -2642,16 +3009,16 @@ _wrap_MemcachedStatSt_limit_maxbytes_set(int argc, VALUE *argv, VALUE self) {
2642
3009
  }
2643
3010
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2644
3011
  if (!SWIG_IsOK(res1)) {
2645
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "limit_maxbytes" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3012
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","limit_maxbytes", 1, self ));
2646
3013
  }
2647
3014
  arg1 = (struct memcached_stat_st *)(argp1);
2648
3015
  {
2649
3016
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
2650
3017
  if (!SWIG_IsOK(res2)) {
2651
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "limit_maxbytes" "', argument " "2"" of type '" "uint64_t""'");
3018
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","limit_maxbytes", 2, argv[0] ));
2652
3019
  }
2653
3020
  if (!argp2) {
2654
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "limit_maxbytes" "', argument " "2"" of type '" "uint64_t""'");
3021
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","limit_maxbytes", 2, argv[0]));
2655
3022
  } else {
2656
3023
  arg2 = *((uint64_t *)(argp2));
2657
3024
  }
@@ -2677,7 +3044,7 @@ _wrap_MemcachedStatSt_limit_maxbytes_get(int argc, VALUE *argv, VALUE self) {
2677
3044
  }
2678
3045
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2679
3046
  if (!SWIG_IsOK(res1)) {
2680
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "limit_maxbytes" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3047
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","limit_maxbytes", 1, self ));
2681
3048
  }
2682
3049
  arg1 = (struct memcached_stat_st *)(argp1);
2683
3050
  result = ((arg1)->limit_maxbytes);
@@ -2704,16 +3071,16 @@ _wrap_MemcachedStatSt_curr_connections_set(int argc, VALUE *argv, VALUE self) {
2704
3071
  }
2705
3072
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2706
3073
  if (!SWIG_IsOK(res1)) {
2707
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "curr_connections" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3074
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_connections", 1, self ));
2708
3075
  }
2709
3076
  arg1 = (struct memcached_stat_st *)(argp1);
2710
3077
  {
2711
3078
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2712
3079
  if (!SWIG_IsOK(res2)) {
2713
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "curr_connections" "', argument " "2"" of type '" "uint32_t""'");
3080
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","curr_connections", 2, argv[0] ));
2714
3081
  }
2715
3082
  if (!argp2) {
2716
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "curr_connections" "', argument " "2"" of type '" "uint32_t""'");
3083
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","curr_connections", 2, argv[0]));
2717
3084
  } else {
2718
3085
  arg2 = *((uint32_t *)(argp2));
2719
3086
  }
@@ -2739,7 +3106,7 @@ _wrap_MemcachedStatSt_curr_connections_get(int argc, VALUE *argv, VALUE self) {
2739
3106
  }
2740
3107
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2741
3108
  if (!SWIG_IsOK(res1)) {
2742
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "curr_connections" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3109
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_connections", 1, self ));
2743
3110
  }
2744
3111
  arg1 = (struct memcached_stat_st *)(argp1);
2745
3112
  result = ((arg1)->curr_connections);
@@ -2764,16 +3131,16 @@ _wrap_MemcachedStatSt_total_connections_set(int argc, VALUE *argv, VALUE self) {
2764
3131
  }
2765
3132
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2766
3133
  if (!SWIG_IsOK(res1)) {
2767
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "total_connections" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3134
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_connections", 1, self ));
2768
3135
  }
2769
3136
  arg1 = (struct memcached_stat_st *)(argp1);
2770
3137
  {
2771
3138
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2772
3139
  if (!SWIG_IsOK(res2)) {
2773
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "total_connections" "', argument " "2"" of type '" "uint32_t""'");
3140
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","total_connections", 2, argv[0] ));
2774
3141
  }
2775
3142
  if (!argp2) {
2776
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "total_connections" "', argument " "2"" of type '" "uint32_t""'");
3143
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","total_connections", 2, argv[0]));
2777
3144
  } else {
2778
3145
  arg2 = *((uint32_t *)(argp2));
2779
3146
  }
@@ -2799,7 +3166,7 @@ _wrap_MemcachedStatSt_total_connections_get(int argc, VALUE *argv, VALUE self) {
2799
3166
  }
2800
3167
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2801
3168
  if (!SWIG_IsOK(res1)) {
2802
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "total_connections" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3169
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_connections", 1, self ));
2803
3170
  }
2804
3171
  arg1 = (struct memcached_stat_st *)(argp1);
2805
3172
  result = ((arg1)->total_connections);
@@ -2824,16 +3191,16 @@ _wrap_MemcachedStatSt_connection_structures_set(int argc, VALUE *argv, VALUE sel
2824
3191
  }
2825
3192
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2826
3193
  if (!SWIG_IsOK(res1)) {
2827
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connection_structures" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3194
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","connection_structures", 1, self ));
2828
3195
  }
2829
3196
  arg1 = (struct memcached_stat_st *)(argp1);
2830
3197
  {
2831
3198
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
2832
3199
  if (!SWIG_IsOK(res2)) {
2833
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "connection_structures" "', argument " "2"" of type '" "uint32_t""'");
3200
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","connection_structures", 2, argv[0] ));
2834
3201
  }
2835
3202
  if (!argp2) {
2836
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "connection_structures" "', argument " "2"" of type '" "uint32_t""'");
3203
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","connection_structures", 2, argv[0]));
2837
3204
  } else {
2838
3205
  arg2 = *((uint32_t *)(argp2));
2839
3206
  }
@@ -2859,7 +3226,7 @@ _wrap_MemcachedStatSt_connection_structures_get(int argc, VALUE *argv, VALUE sel
2859
3226
  }
2860
3227
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2861
3228
  if (!SWIG_IsOK(res1)) {
2862
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connection_structures" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3229
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","connection_structures", 1, self ));
2863
3230
  }
2864
3231
  arg1 = (struct memcached_stat_st *)(argp1);
2865
3232
  result = ((arg1)->connection_structures);
@@ -2884,16 +3251,16 @@ _wrap_MemcachedStatSt_bytes_set(int argc, VALUE *argv, VALUE self) {
2884
3251
  }
2885
3252
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2886
3253
  if (!SWIG_IsOK(res1)) {
2887
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3254
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes", 1, self ));
2888
3255
  }
2889
3256
  arg1 = (struct memcached_stat_st *)(argp1);
2890
3257
  {
2891
3258
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
2892
3259
  if (!SWIG_IsOK(res2)) {
2893
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bytes" "', argument " "2"" of type '" "uint64_t""'");
3260
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","bytes", 2, argv[0] ));
2894
3261
  }
2895
3262
  if (!argp2) {
2896
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "bytes" "', argument " "2"" of type '" "uint64_t""'");
3263
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","bytes", 2, argv[0]));
2897
3264
  } else {
2898
3265
  arg2 = *((uint64_t *)(argp2));
2899
3266
  }
@@ -2919,7 +3286,7 @@ _wrap_MemcachedStatSt_bytes_get(int argc, VALUE *argv, VALUE self) {
2919
3286
  }
2920
3287
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2921
3288
  if (!SWIG_IsOK(res1)) {
2922
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3289
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes", 1, self ));
2923
3290
  }
2924
3291
  arg1 = (struct memcached_stat_st *)(argp1);
2925
3292
  result = ((arg1)->bytes);
@@ -2946,16 +3313,16 @@ _wrap_MemcachedStatSt_cmd_get_set(int argc, VALUE *argv, VALUE self) {
2946
3313
  }
2947
3314
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2948
3315
  if (!SWIG_IsOK(res1)) {
2949
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_get" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3316
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_get", 1, self ));
2950
3317
  }
2951
3318
  arg1 = (struct memcached_stat_st *)(argp1);
2952
3319
  {
2953
3320
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
2954
3321
  if (!SWIG_IsOK(res2)) {
2955
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmd_get" "', argument " "2"" of type '" "uint64_t""'");
3322
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","cmd_get", 2, argv[0] ));
2956
3323
  }
2957
3324
  if (!argp2) {
2958
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmd_get" "', argument " "2"" of type '" "uint64_t""'");
3325
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","cmd_get", 2, argv[0]));
2959
3326
  } else {
2960
3327
  arg2 = *((uint64_t *)(argp2));
2961
3328
  }
@@ -2981,7 +3348,7 @@ _wrap_MemcachedStatSt_cmd_get_get(int argc, VALUE *argv, VALUE self) {
2981
3348
  }
2982
3349
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
2983
3350
  if (!SWIG_IsOK(res1)) {
2984
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_get" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3351
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_get", 1, self ));
2985
3352
  }
2986
3353
  arg1 = (struct memcached_stat_st *)(argp1);
2987
3354
  result = ((arg1)->cmd_get);
@@ -3008,16 +3375,16 @@ _wrap_MemcachedStatSt_cmd_set_set(int argc, VALUE *argv, VALUE self) {
3008
3375
  }
3009
3376
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3010
3377
  if (!SWIG_IsOK(res1)) {
3011
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_set" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3378
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_set", 1, self ));
3012
3379
  }
3013
3380
  arg1 = (struct memcached_stat_st *)(argp1);
3014
3381
  {
3015
3382
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
3016
3383
  if (!SWIG_IsOK(res2)) {
3017
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cmd_set" "', argument " "2"" of type '" "uint64_t""'");
3384
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","cmd_set", 2, argv[0] ));
3018
3385
  }
3019
3386
  if (!argp2) {
3020
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cmd_set" "', argument " "2"" of type '" "uint64_t""'");
3387
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","cmd_set", 2, argv[0]));
3021
3388
  } else {
3022
3389
  arg2 = *((uint64_t *)(argp2));
3023
3390
  }
@@ -3043,7 +3410,7 @@ _wrap_MemcachedStatSt_cmd_set_get(int argc, VALUE *argv, VALUE self) {
3043
3410
  }
3044
3411
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3045
3412
  if (!SWIG_IsOK(res1)) {
3046
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_set" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3413
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_set", 1, self ));
3047
3414
  }
3048
3415
  arg1 = (struct memcached_stat_st *)(argp1);
3049
3416
  result = ((arg1)->cmd_set);
@@ -3070,16 +3437,16 @@ _wrap_MemcachedStatSt_get_hits_set(int argc, VALUE *argv, VALUE self) {
3070
3437
  }
3071
3438
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3072
3439
  if (!SWIG_IsOK(res1)) {
3073
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_hits" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3440
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_hits", 1, self ));
3074
3441
  }
3075
3442
  arg1 = (struct memcached_stat_st *)(argp1);
3076
3443
  {
3077
3444
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
3078
3445
  if (!SWIG_IsOK(res2)) {
3079
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "get_hits" "', argument " "2"" of type '" "uint64_t""'");
3446
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","get_hits", 2, argv[0] ));
3080
3447
  }
3081
3448
  if (!argp2) {
3082
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_hits" "', argument " "2"" of type '" "uint64_t""'");
3449
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","get_hits", 2, argv[0]));
3083
3450
  } else {
3084
3451
  arg2 = *((uint64_t *)(argp2));
3085
3452
  }
@@ -3105,7 +3472,7 @@ _wrap_MemcachedStatSt_get_hits_get(int argc, VALUE *argv, VALUE self) {
3105
3472
  }
3106
3473
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3107
3474
  if (!SWIG_IsOK(res1)) {
3108
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_hits" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3475
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_hits", 1, self ));
3109
3476
  }
3110
3477
  arg1 = (struct memcached_stat_st *)(argp1);
3111
3478
  result = ((arg1)->get_hits);
@@ -3132,16 +3499,16 @@ _wrap_MemcachedStatSt_get_misses_set(int argc, VALUE *argv, VALUE self) {
3132
3499
  }
3133
3500
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3134
3501
  if (!SWIG_IsOK(res1)) {
3135
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_misses" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3502
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_misses", 1, self ));
3136
3503
  }
3137
3504
  arg1 = (struct memcached_stat_st *)(argp1);
3138
3505
  {
3139
3506
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
3140
3507
  if (!SWIG_IsOK(res2)) {
3141
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "get_misses" "', argument " "2"" of type '" "uint64_t""'");
3508
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","get_misses", 2, argv[0] ));
3142
3509
  }
3143
3510
  if (!argp2) {
3144
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_misses" "', argument " "2"" of type '" "uint64_t""'");
3511
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","get_misses", 2, argv[0]));
3145
3512
  } else {
3146
3513
  arg2 = *((uint64_t *)(argp2));
3147
3514
  }
@@ -3167,7 +3534,7 @@ _wrap_MemcachedStatSt_get_misses_get(int argc, VALUE *argv, VALUE self) {
3167
3534
  }
3168
3535
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3169
3536
  if (!SWIG_IsOK(res1)) {
3170
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_misses" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3537
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_misses", 1, self ));
3171
3538
  }
3172
3539
  arg1 = (struct memcached_stat_st *)(argp1);
3173
3540
  result = ((arg1)->get_misses);
@@ -3194,16 +3561,16 @@ _wrap_MemcachedStatSt_evictions_set(int argc, VALUE *argv, VALUE self) {
3194
3561
  }
3195
3562
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3196
3563
  if (!SWIG_IsOK(res1)) {
3197
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "evictions" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3564
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","evictions", 1, self ));
3198
3565
  }
3199
3566
  arg1 = (struct memcached_stat_st *)(argp1);
3200
3567
  {
3201
3568
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
3202
3569
  if (!SWIG_IsOK(res2)) {
3203
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "evictions" "', argument " "2"" of type '" "uint64_t""'");
3570
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","evictions", 2, argv[0] ));
3204
3571
  }
3205
3572
  if (!argp2) {
3206
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "evictions" "', argument " "2"" of type '" "uint64_t""'");
3573
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","evictions", 2, argv[0]));
3207
3574
  } else {
3208
3575
  arg2 = *((uint64_t *)(argp2));
3209
3576
  }
@@ -3229,7 +3596,7 @@ _wrap_MemcachedStatSt_evictions_get(int argc, VALUE *argv, VALUE self) {
3229
3596
  }
3230
3597
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3231
3598
  if (!SWIG_IsOK(res1)) {
3232
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "evictions" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3599
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","evictions", 1, self ));
3233
3600
  }
3234
3601
  arg1 = (struct memcached_stat_st *)(argp1);
3235
3602
  result = ((arg1)->evictions);
@@ -3256,16 +3623,16 @@ _wrap_MemcachedStatSt_bytes_read_set(int argc, VALUE *argv, VALUE self) {
3256
3623
  }
3257
3624
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3258
3625
  if (!SWIG_IsOK(res1)) {
3259
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes_read" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3626
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_read", 1, self ));
3260
3627
  }
3261
3628
  arg1 = (struct memcached_stat_st *)(argp1);
3262
3629
  {
3263
3630
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
3264
3631
  if (!SWIG_IsOK(res2)) {
3265
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bytes_read" "', argument " "2"" of type '" "uint64_t""'");
3632
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","bytes_read", 2, argv[0] ));
3266
3633
  }
3267
3634
  if (!argp2) {
3268
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "bytes_read" "', argument " "2"" of type '" "uint64_t""'");
3635
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","bytes_read", 2, argv[0]));
3269
3636
  } else {
3270
3637
  arg2 = *((uint64_t *)(argp2));
3271
3638
  }
@@ -3291,7 +3658,7 @@ _wrap_MemcachedStatSt_bytes_read_get(int argc, VALUE *argv, VALUE self) {
3291
3658
  }
3292
3659
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3293
3660
  if (!SWIG_IsOK(res1)) {
3294
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes_read" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3661
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_read", 1, self ));
3295
3662
  }
3296
3663
  arg1 = (struct memcached_stat_st *)(argp1);
3297
3664
  result = ((arg1)->bytes_read);
@@ -3318,16 +3685,16 @@ _wrap_MemcachedStatSt_bytes_written_set(int argc, VALUE *argv, VALUE self) {
3318
3685
  }
3319
3686
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3320
3687
  if (!SWIG_IsOK(res1)) {
3321
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes_written" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3688
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_written", 1, self ));
3322
3689
  }
3323
3690
  arg1 = (struct memcached_stat_st *)(argp1);
3324
3691
  {
3325
3692
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
3326
3693
  if (!SWIG_IsOK(res2)) {
3327
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bytes_written" "', argument " "2"" of type '" "uint64_t""'");
3694
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","bytes_written", 2, argv[0] ));
3328
3695
  }
3329
3696
  if (!argp2) {
3330
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "bytes_written" "', argument " "2"" of type '" "uint64_t""'");
3697
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","bytes_written", 2, argv[0]));
3331
3698
  } else {
3332
3699
  arg2 = *((uint64_t *)(argp2));
3333
3700
  }
@@ -3353,7 +3720,7 @@ _wrap_MemcachedStatSt_bytes_written_get(int argc, VALUE *argv, VALUE self) {
3353
3720
  }
3354
3721
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3355
3722
  if (!SWIG_IsOK(res1)) {
3356
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bytes_written" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3723
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_written", 1, self ));
3357
3724
  }
3358
3725
  arg1 = (struct memcached_stat_st *)(argp1);
3359
3726
  result = ((arg1)->bytes_written);
@@ -3380,14 +3747,14 @@ _wrap_MemcachedStatSt_version_set(int argc, VALUE *argv, VALUE self) {
3380
3747
  }
3381
3748
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3382
3749
  if (!SWIG_IsOK(res1)) {
3383
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "version" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3750
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","version", 1, self ));
3384
3751
  }
3385
3752
  arg1 = (struct memcached_stat_st *)(argp1);
3386
3753
  res2 = SWIG_AsCharArray(argv[0], temp2, 12);
3387
3754
  if (!SWIG_IsOK(res2)) {
3388
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "version" "', argument " "2"" of type '" "char [12]""'");
3755
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [12]","version", 2, argv[0] ));
3389
3756
  }
3390
- arg2 = temp2;
3757
+ arg2 = (char *)(temp2);
3391
3758
  if (arg2) memcpy(arg1->version,arg2,12*sizeof(char));
3392
3759
  else memset(arg1->version,0,12*sizeof(char));
3393
3760
  return Qnil;
@@ -3409,7 +3776,7 @@ _wrap_MemcachedStatSt_version_get(int argc, VALUE *argv, VALUE self) {
3409
3776
  }
3410
3777
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
3411
3778
  if (!SWIG_IsOK(res1)) {
3412
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "version" "', argument " "1"" of type '" "struct memcached_stat_st *""'");
3779
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","version", 1, self ));
3413
3780
  }
3414
3781
  arg1 = (struct memcached_stat_st *)(argp1);
3415
3782
  result = (char *)(char *) ((arg1)->version);
@@ -3479,12 +3846,12 @@ _wrap_MemcachedSt_is_allocated_set(int argc, VALUE *argv, VALUE self) {
3479
3846
  }
3480
3847
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3481
3848
  if (!SWIG_IsOK(res1)) {
3482
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_st *""'");
3849
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","is_allocated", 1, self ));
3483
3850
  }
3484
3851
  arg1 = (struct memcached_st *)(argp1);
3485
3852
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
3486
3853
  if (!SWIG_IsOK(ecode2)) {
3487
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "is_allocated" "', argument " "2"" of type '" "memcached_allocated""'");
3854
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_allocated","is_allocated", 2, argv[0] ));
3488
3855
  }
3489
3856
  arg2 = (memcached_allocated)(val2);
3490
3857
  if (arg1) (arg1)->is_allocated = arg2;
@@ -3508,7 +3875,7 @@ _wrap_MemcachedSt_is_allocated_get(int argc, VALUE *argv, VALUE self) {
3508
3875
  }
3509
3876
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3510
3877
  if (!SWIG_IsOK(res1)) {
3511
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_st *""'");
3878
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","is_allocated", 1, self ));
3512
3879
  }
3513
3880
  arg1 = (struct memcached_st *)(argp1);
3514
3881
  result = (memcached_allocated) ((arg1)->is_allocated);
@@ -3533,12 +3900,12 @@ _wrap_MemcachedSt_hosts_set(int argc, VALUE *argv, VALUE self) {
3533
3900
  }
3534
3901
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3535
3902
  if (!SWIG_IsOK(res1)) {
3536
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hosts" "', argument " "1"" of type '" "struct memcached_st *""'");
3903
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hosts", 1, self ));
3537
3904
  }
3538
3905
  arg1 = (struct memcached_st *)(argp1);
3539
3906
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_server_st, SWIG_POINTER_DISOWN | 0 );
3540
3907
  if (!SWIG_IsOK(res2)) {
3541
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hosts" "', argument " "2"" of type '" "memcached_server_st *""'");
3908
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","hosts", 2, argv[0] ));
3542
3909
  }
3543
3910
  arg2 = (memcached_server_st *)(argp2);
3544
3911
  if (arg1) (arg1)->hosts = arg2;
@@ -3562,7 +3929,7 @@ _wrap_MemcachedSt_hosts_get(int argc, VALUE *argv, VALUE self) {
3562
3929
  }
3563
3930
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3564
3931
  if (!SWIG_IsOK(res1)) {
3565
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hosts" "', argument " "1"" of type '" "struct memcached_st *""'");
3932
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hosts", 1, self ));
3566
3933
  }
3567
3934
  arg1 = (struct memcached_st *)(argp1);
3568
3935
  result = (memcached_server_st *) ((arg1)->hosts);
@@ -3587,12 +3954,12 @@ _wrap_MemcachedSt_number_of_hosts_set(int argc, VALUE *argv, VALUE self) {
3587
3954
  }
3588
3955
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3589
3956
  if (!SWIG_IsOK(res1)) {
3590
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "number_of_hosts" "', argument " "1"" of type '" "struct memcached_st *""'");
3957
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_hosts", 1, self ));
3591
3958
  }
3592
3959
  arg1 = (struct memcached_st *)(argp1);
3593
3960
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
3594
3961
  if (!SWIG_IsOK(ecode2)) {
3595
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "number_of_hosts" "', argument " "2"" of type '" "unsigned int""'");
3962
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","number_of_hosts", 2, argv[0] ));
3596
3963
  }
3597
3964
  arg2 = (unsigned int)(val2);
3598
3965
  if (arg1) (arg1)->number_of_hosts = arg2;
@@ -3616,7 +3983,7 @@ _wrap_MemcachedSt_number_of_hosts_get(int argc, VALUE *argv, VALUE self) {
3616
3983
  }
3617
3984
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3618
3985
  if (!SWIG_IsOK(res1)) {
3619
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "number_of_hosts" "', argument " "1"" of type '" "struct memcached_st *""'");
3986
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_hosts", 1, self ));
3620
3987
  }
3621
3988
  arg1 = (struct memcached_st *)(argp1);
3622
3989
  result = (unsigned int) ((arg1)->number_of_hosts);
@@ -3641,12 +4008,12 @@ _wrap_MemcachedSt_cursor_server_set(int argc, VALUE *argv, VALUE self) {
3641
4008
  }
3642
4009
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3643
4010
  if (!SWIG_IsOK(res1)) {
3644
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cursor_server" "', argument " "1"" of type '" "struct memcached_st *""'");
4011
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cursor_server", 1, self ));
3645
4012
  }
3646
4013
  arg1 = (struct memcached_st *)(argp1);
3647
4014
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
3648
4015
  if (!SWIG_IsOK(ecode2)) {
3649
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cursor_server" "', argument " "2"" of type '" "unsigned int""'");
4016
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","cursor_server", 2, argv[0] ));
3650
4017
  }
3651
4018
  arg2 = (unsigned int)(val2);
3652
4019
  if (arg1) (arg1)->cursor_server = arg2;
@@ -3670,7 +4037,7 @@ _wrap_MemcachedSt_cursor_server_get(int argc, VALUE *argv, VALUE self) {
3670
4037
  }
3671
4038
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3672
4039
  if (!SWIG_IsOK(res1)) {
3673
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cursor_server" "', argument " "1"" of type '" "struct memcached_st *""'");
4040
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cursor_server", 1, self ));
3674
4041
  }
3675
4042
  arg1 = (struct memcached_st *)(argp1);
3676
4043
  result = (unsigned int) ((arg1)->cursor_server);
@@ -3695,12 +4062,12 @@ _wrap_MemcachedSt_cached_errno_set(int argc, VALUE *argv, VALUE self) {
3695
4062
  }
3696
4063
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3697
4064
  if (!SWIG_IsOK(res1)) {
3698
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_errno" "', argument " "1"" of type '" "struct memcached_st *""'");
4065
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cached_errno", 1, self ));
3699
4066
  }
3700
4067
  arg1 = (struct memcached_st *)(argp1);
3701
4068
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
3702
4069
  if (!SWIG_IsOK(ecode2)) {
3703
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cached_errno" "', argument " "2"" of type '" "int""'");
4070
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","cached_errno", 2, argv[0] ));
3704
4071
  }
3705
4072
  arg2 = (int)(val2);
3706
4073
  if (arg1) (arg1)->cached_errno = arg2;
@@ -3724,7 +4091,7 @@ _wrap_MemcachedSt_cached_errno_get(int argc, VALUE *argv, VALUE self) {
3724
4091
  }
3725
4092
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3726
4093
  if (!SWIG_IsOK(res1)) {
3727
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_errno" "', argument " "1"" of type '" "struct memcached_st *""'");
4094
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cached_errno", 1, self ));
3728
4095
  }
3729
4096
  arg1 = (struct memcached_st *)(argp1);
3730
4097
  result = (int) ((arg1)->cached_errno);
@@ -3749,12 +4116,12 @@ _wrap_MemcachedSt_flags_set(int argc, VALUE *argv, VALUE self) {
3749
4116
  }
3750
4117
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3751
4118
  if (!SWIG_IsOK(res1)) {
3752
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "struct memcached_st *""'");
4119
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","flags", 1, self ));
3753
4120
  }
3754
4121
  arg1 = (struct memcached_st *)(argp1);
3755
4122
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
3756
4123
  if (!SWIG_IsOK(ecode2)) {
3757
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "flags" "', argument " "2"" of type '" "uint32_t""'");
4124
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","flags", 2, argv[0] ));
3758
4125
  }
3759
4126
  arg2 = (uint32_t)(val2);
3760
4127
  if (arg1) (arg1)->flags = arg2;
@@ -3778,7 +4145,7 @@ _wrap_MemcachedSt_flags_get(int argc, VALUE *argv, VALUE self) {
3778
4145
  }
3779
4146
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3780
4147
  if (!SWIG_IsOK(res1)) {
3781
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "struct memcached_st *""'");
4148
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","flags", 1, self ));
3782
4149
  }
3783
4150
  arg1 = (struct memcached_st *)(argp1);
3784
4151
  result = ((arg1)->flags);
@@ -3803,12 +4170,12 @@ _wrap_MemcachedSt_send_size_set(int argc, VALUE *argv, VALUE self) {
3803
4170
  }
3804
4171
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3805
4172
  if (!SWIG_IsOK(res1)) {
3806
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "send_size" "', argument " "1"" of type '" "struct memcached_st *""'");
4173
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","send_size", 1, self ));
3807
4174
  }
3808
4175
  arg1 = (struct memcached_st *)(argp1);
3809
4176
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
3810
4177
  if (!SWIG_IsOK(ecode2)) {
3811
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "send_size" "', argument " "2"" of type '" "int""'");
4178
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","send_size", 2, argv[0] ));
3812
4179
  }
3813
4180
  arg2 = (int)(val2);
3814
4181
  if (arg1) (arg1)->send_size = arg2;
@@ -3832,7 +4199,7 @@ _wrap_MemcachedSt_send_size_get(int argc, VALUE *argv, VALUE self) {
3832
4199
  }
3833
4200
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3834
4201
  if (!SWIG_IsOK(res1)) {
3835
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "send_size" "', argument " "1"" of type '" "struct memcached_st *""'");
4202
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","send_size", 1, self ));
3836
4203
  }
3837
4204
  arg1 = (struct memcached_st *)(argp1);
3838
4205
  result = (int) ((arg1)->send_size);
@@ -3857,12 +4224,12 @@ _wrap_MemcachedSt_recv_size_set(int argc, VALUE *argv, VALUE self) {
3857
4224
  }
3858
4225
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3859
4226
  if (!SWIG_IsOK(res1)) {
3860
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "recv_size" "', argument " "1"" of type '" "struct memcached_st *""'");
4227
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","recv_size", 1, self ));
3861
4228
  }
3862
4229
  arg1 = (struct memcached_st *)(argp1);
3863
4230
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
3864
4231
  if (!SWIG_IsOK(ecode2)) {
3865
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "recv_size" "', argument " "2"" of type '" "int""'");
4232
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","recv_size", 2, argv[0] ));
3866
4233
  }
3867
4234
  arg2 = (int)(val2);
3868
4235
  if (arg1) (arg1)->recv_size = arg2;
@@ -3886,7 +4253,7 @@ _wrap_MemcachedSt_recv_size_get(int argc, VALUE *argv, VALUE self) {
3886
4253
  }
3887
4254
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3888
4255
  if (!SWIG_IsOK(res1)) {
3889
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "recv_size" "', argument " "1"" of type '" "struct memcached_st *""'");
4256
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","recv_size", 1, self ));
3890
4257
  }
3891
4258
  arg1 = (struct memcached_st *)(argp1);
3892
4259
  result = (int) ((arg1)->recv_size);
@@ -3911,16 +4278,16 @@ _wrap_MemcachedSt_poll_timeout_set(int argc, VALUE *argv, VALUE self) {
3911
4278
  }
3912
4279
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3913
4280
  if (!SWIG_IsOK(res1)) {
3914
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "poll_timeout" "', argument " "1"" of type '" "struct memcached_st *""'");
4281
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_timeout", 1, self ));
3915
4282
  }
3916
4283
  arg1 = (struct memcached_st *)(argp1);
3917
4284
  {
3918
4285
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 );
3919
4286
  if (!SWIG_IsOK(res2)) {
3920
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "poll_timeout" "', argument " "2"" of type '" "int32_t""'");
4287
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","poll_timeout", 2, argv[0] ));
3921
4288
  }
3922
4289
  if (!argp2) {
3923
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "poll_timeout" "', argument " "2"" of type '" "int32_t""'");
4290
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","poll_timeout", 2, argv[0]));
3924
4291
  } else {
3925
4292
  arg2 = *((int32_t *)(argp2));
3926
4293
  }
@@ -3946,7 +4313,7 @@ _wrap_MemcachedSt_poll_timeout_get(int argc, VALUE *argv, VALUE self) {
3946
4313
  }
3947
4314
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3948
4315
  if (!SWIG_IsOK(res1)) {
3949
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "poll_timeout" "', argument " "1"" of type '" "struct memcached_st *""'");
4316
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_timeout", 1, self ));
3950
4317
  }
3951
4318
  arg1 = (struct memcached_st *)(argp1);
3952
4319
  result = ((arg1)->poll_timeout);
@@ -3971,16 +4338,16 @@ _wrap_MemcachedSt_connect_timeout_set(int argc, VALUE *argv, VALUE self) {
3971
4338
  }
3972
4339
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
3973
4340
  if (!SWIG_IsOK(res1)) {
3974
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connect_timeout" "', argument " "1"" of type '" "struct memcached_st *""'");
4341
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","connect_timeout", 1, self ));
3975
4342
  }
3976
4343
  arg1 = (struct memcached_st *)(argp1);
3977
4344
  {
3978
4345
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 );
3979
4346
  if (!SWIG_IsOK(res2)) {
3980
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "connect_timeout" "', argument " "2"" of type '" "int32_t""'");
4347
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","connect_timeout", 2, argv[0] ));
3981
4348
  }
3982
4349
  if (!argp2) {
3983
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "connect_timeout" "', argument " "2"" of type '" "int32_t""'");
4350
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","connect_timeout", 2, argv[0]));
3984
4351
  } else {
3985
4352
  arg2 = *((int32_t *)(argp2));
3986
4353
  }
@@ -4006,7 +4373,7 @@ _wrap_MemcachedSt_connect_timeout_get(int argc, VALUE *argv, VALUE self) {
4006
4373
  }
4007
4374
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4008
4375
  if (!SWIG_IsOK(res1)) {
4009
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connect_timeout" "', argument " "1"" of type '" "struct memcached_st *""'");
4376
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","connect_timeout", 1, self ));
4010
4377
  }
4011
4378
  arg1 = (struct memcached_st *)(argp1);
4012
4379
  result = ((arg1)->connect_timeout);
@@ -4031,16 +4398,16 @@ _wrap_MemcachedSt_retry_timeout_set(int argc, VALUE *argv, VALUE self) {
4031
4398
  }
4032
4399
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4033
4400
  if (!SWIG_IsOK(res1)) {
4034
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "retry_timeout" "', argument " "1"" of type '" "struct memcached_st *""'");
4401
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","retry_timeout", 1, self ));
4035
4402
  }
4036
4403
  arg1 = (struct memcached_st *)(argp1);
4037
4404
  {
4038
4405
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 );
4039
4406
  if (!SWIG_IsOK(res2)) {
4040
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "retry_timeout" "', argument " "2"" of type '" "int32_t""'");
4407
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","retry_timeout", 2, argv[0] ));
4041
4408
  }
4042
4409
  if (!argp2) {
4043
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "retry_timeout" "', argument " "2"" of type '" "int32_t""'");
4410
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","retry_timeout", 2, argv[0]));
4044
4411
  } else {
4045
4412
  arg2 = *((int32_t *)(argp2));
4046
4413
  }
@@ -4066,7 +4433,7 @@ _wrap_MemcachedSt_retry_timeout_get(int argc, VALUE *argv, VALUE self) {
4066
4433
  }
4067
4434
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4068
4435
  if (!SWIG_IsOK(res1)) {
4069
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "retry_timeout" "', argument " "1"" of type '" "struct memcached_st *""'");
4436
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","retry_timeout", 1, self ));
4070
4437
  }
4071
4438
  arg1 = (struct memcached_st *)(argp1);
4072
4439
  result = ((arg1)->retry_timeout);
@@ -4091,16 +4458,16 @@ _wrap_MemcachedSt_result_set(int argc, VALUE *argv, VALUE self) {
4091
4458
  }
4092
4459
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4093
4460
  if (!SWIG_IsOK(res1)) {
4094
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "result" "', argument " "1"" of type '" "struct memcached_st *""'");
4461
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","result", 1, self ));
4095
4462
  }
4096
4463
  arg1 = (struct memcached_st *)(argp1);
4097
4464
  {
4098
4465
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_result_st, 0 );
4099
4466
  if (!SWIG_IsOK(res2)) {
4100
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "result" "', argument " "2"" of type '" "memcached_result_st""'");
4467
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st","result", 2, argv[0] ));
4101
4468
  }
4102
4469
  if (!argp2) {
4103
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "result" "', argument " "2"" of type '" "memcached_result_st""'");
4470
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_result_st","result", 2, argv[0]));
4104
4471
  } else {
4105
4472
  arg2 = *((memcached_result_st *)(argp2));
4106
4473
  }
@@ -4126,7 +4493,7 @@ _wrap_MemcachedSt_result_get(int argc, VALUE *argv, VALUE self) {
4126
4493
  }
4127
4494
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4128
4495
  if (!SWIG_IsOK(res1)) {
4129
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "result" "', argument " "1"" of type '" "struct memcached_st *""'");
4496
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","result", 1, self ));
4130
4497
  }
4131
4498
  arg1 = (struct memcached_st *)(argp1);
4132
4499
  result = ((arg1)->result);
@@ -4137,6 +4504,24 @@ fail:
4137
4504
  }
4138
4505
 
4139
4506
 
4507
+
4508
+ /*
4509
+ Document-method: Rlibmemcached::MemcachedSt.hash
4510
+
4511
+ call-seq:
4512
+ hash -> int
4513
+
4514
+ Hashing function for class.
4515
+ */
4516
+
4517
+ /*
4518
+ Document-method: Rlibmemcached::MemcachedSt.hash=
4519
+
4520
+ call-seq:
4521
+ hash=(x) -> int
4522
+
4523
+ Hashing function for class.
4524
+ */
4140
4525
  SWIGINTERN VALUE
4141
4526
  _wrap_MemcachedSt_hash_set(int argc, VALUE *argv, VALUE self) {
4142
4527
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
@@ -4151,12 +4536,12 @@ _wrap_MemcachedSt_hash_set(int argc, VALUE *argv, VALUE self) {
4151
4536
  }
4152
4537
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4153
4538
  if (!SWIG_IsOK(res1)) {
4154
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hash" "', argument " "1"" of type '" "struct memcached_st *""'");
4539
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash", 1, self ));
4155
4540
  }
4156
4541
  arg1 = (struct memcached_st *)(argp1);
4157
4542
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
4158
4543
  if (!SWIG_IsOK(ecode2)) {
4159
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "hash" "', argument " "2"" of type '" "memcached_hash""'");
4544
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_hash","hash", 2, argv[0] ));
4160
4545
  }
4161
4546
  arg2 = (memcached_hash)(val2);
4162
4547
  if (arg1) (arg1)->hash = arg2;
@@ -4180,7 +4565,7 @@ _wrap_MemcachedSt_hash_get(int argc, VALUE *argv, VALUE self) {
4180
4565
  }
4181
4566
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4182
4567
  if (!SWIG_IsOK(res1)) {
4183
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hash" "', argument " "1"" of type '" "struct memcached_st *""'");
4568
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hash", 1, self ));
4184
4569
  }
4185
4570
  arg1 = (struct memcached_st *)(argp1);
4186
4571
  result = (memcached_hash) ((arg1)->hash);
@@ -4205,12 +4590,12 @@ _wrap_MemcachedSt_distribution_set(int argc, VALUE *argv, VALUE self) {
4205
4590
  }
4206
4591
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4207
4592
  if (!SWIG_IsOK(res1)) {
4208
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "distribution" "', argument " "1"" of type '" "struct memcached_st *""'");
4593
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution", 1, self ));
4209
4594
  }
4210
4595
  arg1 = (struct memcached_st *)(argp1);
4211
4596
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
4212
4597
  if (!SWIG_IsOK(ecode2)) {
4213
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "distribution" "', argument " "2"" of type '" "memcached_server_distribution""'");
4598
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_server_distribution","distribution", 2, argv[0] ));
4214
4599
  }
4215
4600
  arg2 = (memcached_server_distribution)(val2);
4216
4601
  if (arg1) (arg1)->distribution = arg2;
@@ -4234,7 +4619,7 @@ _wrap_MemcachedSt_distribution_get(int argc, VALUE *argv, VALUE self) {
4234
4619
  }
4235
4620
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4236
4621
  if (!SWIG_IsOK(res1)) {
4237
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "distribution" "', argument " "1"" of type '" "struct memcached_st *""'");
4622
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution", 1, self ));
4238
4623
  }
4239
4624
  arg1 = (struct memcached_st *)(argp1);
4240
4625
  result = (memcached_server_distribution) ((arg1)->distribution);
@@ -4258,12 +4643,12 @@ _wrap_MemcachedSt_user_data_set(int argc, VALUE *argv, VALUE self) {
4258
4643
  }
4259
4644
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4260
4645
  if (!SWIG_IsOK(res1)) {
4261
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "user_data" "', argument " "1"" of type '" "struct memcached_st *""'");
4646
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","user_data", 1, self ));
4262
4647
  }
4263
4648
  arg1 = (struct memcached_st *)(argp1);
4264
4649
  res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
4265
4650
  if (!SWIG_IsOK(res2)) {
4266
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "user_data" "', argument " "2"" of type '" "void *""'");
4651
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","user_data", 2, argv[0] ));
4267
4652
  }
4268
4653
  if (arg1) (arg1)->user_data = arg2;
4269
4654
 
@@ -4286,7 +4671,7 @@ _wrap_MemcachedSt_user_data_get(int argc, VALUE *argv, VALUE self) {
4286
4671
  }
4287
4672
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4288
4673
  if (!SWIG_IsOK(res1)) {
4289
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "user_data" "', argument " "1"" of type '" "struct memcached_st *""'");
4674
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","user_data", 1, self ));
4290
4675
  }
4291
4676
  arg1 = (struct memcached_st *)(argp1);
4292
4677
  result = (void *) ((arg1)->user_data);
@@ -4300,7 +4685,7 @@ fail:
4300
4685
  SWIGINTERN VALUE
4301
4686
  _wrap_MemcachedSt_wheel_set(int argc, VALUE *argv, VALUE self) {
4302
4687
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
4303
- unsigned int *arg2 ;
4688
+ unsigned int *arg2 = (unsigned int *) 0 ;
4304
4689
  void *argp1 = 0 ;
4305
4690
  int res1 = 0 ;
4306
4691
  void *argp2 = 0 ;
@@ -4311,22 +4696,76 @@ _wrap_MemcachedSt_wheel_set(int argc, VALUE *argv, VALUE self) {
4311
4696
  }
4312
4697
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4313
4698
  if (!SWIG_IsOK(res1)) {
4314
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wheel" "', argument " "1"" of type '" "struct memcached_st *""'");
4699
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","wheel", 1, self ));
4315
4700
  }
4316
4701
  arg1 = (struct memcached_st *)(argp1);
4317
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_int, 0 | 0 );
4702
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_int, SWIG_POINTER_DISOWN | 0 );
4318
4703
  if (!SWIG_IsOK(res2)) {
4319
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "wheel" "', argument " "2"" of type '" "unsigned int [MEMCACHED_WHEEL_SIZE]""'");
4320
- }
4704
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned int *","wheel", 2, argv[0] ));
4705
+ }
4321
4706
  arg2 = (unsigned int *)(argp2);
4707
+ if (arg1) (arg1)->wheel = arg2;
4708
+
4709
+ return Qnil;
4710
+ fail:
4711
+ return Qnil;
4712
+ }
4713
+
4714
+
4715
+ SWIGINTERN VALUE
4716
+ _wrap_MemcachedSt_wheel_get(int argc, VALUE *argv, VALUE self) {
4717
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
4718
+ unsigned int *result = 0 ;
4719
+ void *argp1 = 0 ;
4720
+ int res1 = 0 ;
4721
+ VALUE vresult = Qnil;
4722
+
4723
+ if ((argc < 0) || (argc > 0)) {
4724
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4725
+ }
4726
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4727
+ if (!SWIG_IsOK(res1)) {
4728
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","wheel", 1, self ));
4729
+ }
4730
+ arg1 = (struct memcached_st *)(argp1);
4731
+ result = (unsigned int *) ((arg1)->wheel);
4732
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
4733
+ return vresult;
4734
+ fail:
4735
+ return Qnil;
4736
+ }
4737
+
4738
+
4739
+ SWIGINTERN VALUE
4740
+ _wrap_MemcachedSt_wheel_count_set(int argc, VALUE *argv, VALUE self) {
4741
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
4742
+ uint32_t arg2 ;
4743
+ void *argp1 = 0 ;
4744
+ int res1 = 0 ;
4745
+ void *argp2 ;
4746
+ int res2 = 0 ;
4747
+
4748
+ if ((argc < 1) || (argc > 1)) {
4749
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4750
+ }
4751
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4752
+ if (!SWIG_IsOK(res1)) {
4753
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","wheel_count", 1, self ));
4754
+ }
4755
+ arg1 = (struct memcached_st *)(argp1);
4322
4756
  {
4323
- if (arg2) {
4324
- size_t ii = 0;
4325
- for (; ii < (size_t)MEMCACHED_WHEEL_SIZE; ++ii) arg1->wheel[ii] = arg2[ii];
4757
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
4758
+ if (!SWIG_IsOK(res2)) {
4759
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","wheel_count", 2, argv[0] ));
4760
+ }
4761
+ if (!argp2) {
4762
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","wheel_count", 2, argv[0]));
4326
4763
  } else {
4327
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wheel""' of type '""unsigned int [MEMCACHED_WHEEL_SIZE]""'");
4764
+ arg2 = *((uint32_t *)(argp2));
4328
4765
  }
4329
4766
  }
4767
+ if (arg1) (arg1)->wheel_count = arg2;
4768
+
4330
4769
  return Qnil;
4331
4770
  fail:
4332
4771
  return Qnil;
@@ -4334,9 +4773,9 @@ fail:
4334
4773
 
4335
4774
 
4336
4775
  SWIGINTERN VALUE
4337
- _wrap_MemcachedSt_wheel_get(int argc, VALUE *argv, VALUE self) {
4776
+ _wrap_MemcachedSt_wheel_count_get(int argc, VALUE *argv, VALUE self) {
4338
4777
  struct memcached_st *arg1 = (struct memcached_st *) 0 ;
4339
- unsigned int *result = 0 ;
4778
+ uint32_t result;
4340
4779
  void *argp1 = 0 ;
4341
4780
  int res1 = 0 ;
4342
4781
  VALUE vresult = Qnil;
@@ -4346,11 +4785,125 @@ _wrap_MemcachedSt_wheel_get(int argc, VALUE *argv, VALUE self) {
4346
4785
  }
4347
4786
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4348
4787
  if (!SWIG_IsOK(res1)) {
4349
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "wheel" "', argument " "1"" of type '" "struct memcached_st *""'");
4788
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","wheel_count", 1, self ));
4350
4789
  }
4351
4790
  arg1 = (struct memcached_st *)(argp1);
4352
- result = (unsigned int *)(unsigned int *) ((arg1)->wheel);
4353
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_int, 0 | 0 );
4791
+ result = ((arg1)->wheel_count);
4792
+ vresult = SWIG_NewPointerObj((uint32_t *)memcpy((uint32_t *)malloc(sizeof(uint32_t)),&result,sizeof(uint32_t)), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 );
4793
+ return vresult;
4794
+ fail:
4795
+ return Qnil;
4796
+ }
4797
+
4798
+
4799
+ SWIGINTERN VALUE
4800
+ _wrap_MemcachedSt_continuum_count_set(int argc, VALUE *argv, VALUE self) {
4801
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
4802
+ uint32_t arg2 ;
4803
+ void *argp1 = 0 ;
4804
+ int res1 = 0 ;
4805
+ void *argp2 ;
4806
+ int res2 = 0 ;
4807
+
4808
+ if ((argc < 1) || (argc > 1)) {
4809
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4810
+ }
4811
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4812
+ if (!SWIG_IsOK(res1)) {
4813
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_count", 1, self ));
4814
+ }
4815
+ arg1 = (struct memcached_st *)(argp1);
4816
+ {
4817
+ res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
4818
+ if (!SWIG_IsOK(res2)) {
4819
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","continuum_count", 2, argv[0] ));
4820
+ }
4821
+ if (!argp2) {
4822
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","continuum_count", 2, argv[0]));
4823
+ } else {
4824
+ arg2 = *((uint32_t *)(argp2));
4825
+ }
4826
+ }
4827
+ if (arg1) (arg1)->continuum_count = arg2;
4828
+
4829
+ return Qnil;
4830
+ fail:
4831
+ return Qnil;
4832
+ }
4833
+
4834
+
4835
+ SWIGINTERN VALUE
4836
+ _wrap_MemcachedSt_continuum_count_get(int argc, VALUE *argv, VALUE self) {
4837
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
4838
+ uint32_t result;
4839
+ void *argp1 = 0 ;
4840
+ int res1 = 0 ;
4841
+ VALUE vresult = Qnil;
4842
+
4843
+ if ((argc < 0) || (argc > 0)) {
4844
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4845
+ }
4846
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4847
+ if (!SWIG_IsOK(res1)) {
4848
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_count", 1, self ));
4849
+ }
4850
+ arg1 = (struct memcached_st *)(argp1);
4851
+ result = ((arg1)->continuum_count);
4852
+ vresult = SWIG_NewPointerObj((uint32_t *)memcpy((uint32_t *)malloc(sizeof(uint32_t)),&result,sizeof(uint32_t)), SWIGTYPE_p_uint32_t, SWIG_POINTER_OWN | 0 );
4853
+ return vresult;
4854
+ fail:
4855
+ return Qnil;
4856
+ }
4857
+
4858
+
4859
+ SWIGINTERN VALUE
4860
+ _wrap_MemcachedSt_continuum_set(int argc, VALUE *argv, VALUE self) {
4861
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
4862
+ memcached_continuum_item_st *arg2 = (memcached_continuum_item_st *) 0 ;
4863
+ void *argp1 = 0 ;
4864
+ int res1 = 0 ;
4865
+ void *argp2 = 0 ;
4866
+ int res2 = 0 ;
4867
+
4868
+ if ((argc < 1) || (argc > 1)) {
4869
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4870
+ }
4871
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4872
+ if (!SWIG_IsOK(res1)) {
4873
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum", 1, self ));
4874
+ }
4875
+ arg1 = (struct memcached_st *)(argp1);
4876
+ res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_continuum_item_st, SWIG_POINTER_DISOWN | 0 );
4877
+ if (!SWIG_IsOK(res2)) {
4878
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_continuum_item_st *","continuum", 2, argv[0] ));
4879
+ }
4880
+ arg2 = (memcached_continuum_item_st *)(argp2);
4881
+ if (arg1) (arg1)->continuum = arg2;
4882
+
4883
+ return Qnil;
4884
+ fail:
4885
+ return Qnil;
4886
+ }
4887
+
4888
+
4889
+ SWIGINTERN VALUE
4890
+ _wrap_MemcachedSt_continuum_get(int argc, VALUE *argv, VALUE self) {
4891
+ struct memcached_st *arg1 = (struct memcached_st *) 0 ;
4892
+ memcached_continuum_item_st *result = 0 ;
4893
+ void *argp1 = 0 ;
4894
+ int res1 = 0 ;
4895
+ VALUE vresult = Qnil;
4896
+
4897
+ if ((argc < 0) || (argc > 0)) {
4898
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4899
+ }
4900
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4901
+ if (!SWIG_IsOK(res1)) {
4902
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum", 1, self ));
4903
+ }
4904
+ arg1 = (struct memcached_st *)(argp1);
4905
+ result = (memcached_continuum_item_st *) ((arg1)->continuum);
4906
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 );
4354
4907
  return vresult;
4355
4908
  fail:
4356
4909
  return Qnil;
@@ -4371,16 +4924,16 @@ _wrap_MemcachedSt_on_clone_set(int argc, VALUE *argv, VALUE self) {
4371
4924
  }
4372
4925
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4373
4926
  if (!SWIG_IsOK(res1)) {
4374
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "on_clone" "', argument " "1"" of type '" "struct memcached_st *""'");
4927
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_clone", 1, self ));
4375
4928
  }
4376
4929
  arg1 = (struct memcached_st *)(argp1);
4377
4930
  {
4378
4931
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_clone_func, 0 );
4379
4932
  if (!SWIG_IsOK(res2)) {
4380
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "on_clone" "', argument " "2"" of type '" "memcached_clone_func""'");
4933
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_clone_func","on_clone", 2, argv[0] ));
4381
4934
  }
4382
4935
  if (!argp2) {
4383
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "on_clone" "', argument " "2"" of type '" "memcached_clone_func""'");
4936
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_clone_func","on_clone", 2, argv[0]));
4384
4937
  } else {
4385
4938
  arg2 = *((memcached_clone_func *)(argp2));
4386
4939
  }
@@ -4406,7 +4959,7 @@ _wrap_MemcachedSt_on_clone_get(int argc, VALUE *argv, VALUE self) {
4406
4959
  }
4407
4960
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4408
4961
  if (!SWIG_IsOK(res1)) {
4409
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "on_clone" "', argument " "1"" of type '" "struct memcached_st *""'");
4962
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_clone", 1, self ));
4410
4963
  }
4411
4964
  arg1 = (struct memcached_st *)(argp1);
4412
4965
  result = ((arg1)->on_clone);
@@ -4431,16 +4984,16 @@ _wrap_MemcachedSt_on_cleanup_set(int argc, VALUE *argv, VALUE self) {
4431
4984
  }
4432
4985
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4433
4986
  if (!SWIG_IsOK(res1)) {
4434
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "on_cleanup" "', argument " "1"" of type '" "struct memcached_st *""'");
4987
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_cleanup", 1, self ));
4435
4988
  }
4436
4989
  arg1 = (struct memcached_st *)(argp1);
4437
4990
  {
4438
4991
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_cleanup_func, 0 );
4439
4992
  if (!SWIG_IsOK(res2)) {
4440
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "on_cleanup" "', argument " "2"" of type '" "memcached_cleanup_func""'");
4993
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_cleanup_func","on_cleanup", 2, argv[0] ));
4441
4994
  }
4442
4995
  if (!argp2) {
4443
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "on_cleanup" "', argument " "2"" of type '" "memcached_cleanup_func""'");
4996
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_cleanup_func","on_cleanup", 2, argv[0]));
4444
4997
  } else {
4445
4998
  arg2 = *((memcached_cleanup_func *)(argp2));
4446
4999
  }
@@ -4466,7 +5019,7 @@ _wrap_MemcachedSt_on_cleanup_get(int argc, VALUE *argv, VALUE self) {
4466
5019
  }
4467
5020
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4468
5021
  if (!SWIG_IsOK(res1)) {
4469
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "on_cleanup" "', argument " "1"" of type '" "struct memcached_st *""'");
5022
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_cleanup", 1, self ));
4470
5023
  }
4471
5024
  arg1 = (struct memcached_st *)(argp1);
4472
5025
  result = ((arg1)->on_cleanup);
@@ -4491,16 +5044,16 @@ _wrap_MemcachedSt_call_free_set(int argc, VALUE *argv, VALUE self) {
4491
5044
  }
4492
5045
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4493
5046
  if (!SWIG_IsOK(res1)) {
4494
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_free" "', argument " "1"" of type '" "struct memcached_st *""'");
5047
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_free", 1, self ));
4495
5048
  }
4496
5049
  arg1 = (struct memcached_st *)(argp1);
4497
5050
  {
4498
5051
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_free_function, 0 );
4499
5052
  if (!SWIG_IsOK(res2)) {
4500
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "call_free" "', argument " "2"" of type '" "memcached_free_function""'");
5053
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_free_function","call_free", 2, argv[0] ));
4501
5054
  }
4502
5055
  if (!argp2) {
4503
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "call_free" "', argument " "2"" of type '" "memcached_free_function""'");
5056
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_free_function","call_free", 2, argv[0]));
4504
5057
  } else {
4505
5058
  arg2 = *((memcached_free_function *)(argp2));
4506
5059
  }
@@ -4526,7 +5079,7 @@ _wrap_MemcachedSt_call_free_get(int argc, VALUE *argv, VALUE self) {
4526
5079
  }
4527
5080
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4528
5081
  if (!SWIG_IsOK(res1)) {
4529
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_free" "', argument " "1"" of type '" "struct memcached_st *""'");
5082
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_free", 1, self ));
4530
5083
  }
4531
5084
  arg1 = (struct memcached_st *)(argp1);
4532
5085
  result = ((arg1)->call_free);
@@ -4551,16 +5104,16 @@ _wrap_MemcachedSt_call_malloc_set(int argc, VALUE *argv, VALUE self) {
4551
5104
  }
4552
5105
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4553
5106
  if (!SWIG_IsOK(res1)) {
4554
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_malloc" "', argument " "1"" of type '" "struct memcached_st *""'");
5107
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_malloc", 1, self ));
4555
5108
  }
4556
5109
  arg1 = (struct memcached_st *)(argp1);
4557
5110
  {
4558
5111
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_malloc_function, 0 );
4559
5112
  if (!SWIG_IsOK(res2)) {
4560
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "call_malloc" "', argument " "2"" of type '" "memcached_malloc_function""'");
5113
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_malloc_function","call_malloc", 2, argv[0] ));
4561
5114
  }
4562
5115
  if (!argp2) {
4563
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "call_malloc" "', argument " "2"" of type '" "memcached_malloc_function""'");
5116
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_malloc_function","call_malloc", 2, argv[0]));
4564
5117
  } else {
4565
5118
  arg2 = *((memcached_malloc_function *)(argp2));
4566
5119
  }
@@ -4586,7 +5139,7 @@ _wrap_MemcachedSt_call_malloc_get(int argc, VALUE *argv, VALUE self) {
4586
5139
  }
4587
5140
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4588
5141
  if (!SWIG_IsOK(res1)) {
4589
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_malloc" "', argument " "1"" of type '" "struct memcached_st *""'");
5142
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_malloc", 1, self ));
4590
5143
  }
4591
5144
  arg1 = (struct memcached_st *)(argp1);
4592
5145
  result = ((arg1)->call_malloc);
@@ -4611,16 +5164,16 @@ _wrap_MemcachedSt_call_realloc_set(int argc, VALUE *argv, VALUE self) {
4611
5164
  }
4612
5165
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4613
5166
  if (!SWIG_IsOK(res1)) {
4614
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_realloc" "', argument " "1"" of type '" "struct memcached_st *""'");
5167
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_realloc", 1, self ));
4615
5168
  }
4616
5169
  arg1 = (struct memcached_st *)(argp1);
4617
5170
  {
4618
5171
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_realloc_function, 0 );
4619
5172
  if (!SWIG_IsOK(res2)) {
4620
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "call_realloc" "', argument " "2"" of type '" "memcached_realloc_function""'");
5173
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_realloc_function","call_realloc", 2, argv[0] ));
4621
5174
  }
4622
5175
  if (!argp2) {
4623
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "call_realloc" "', argument " "2"" of type '" "memcached_realloc_function""'");
5176
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_realloc_function","call_realloc", 2, argv[0]));
4624
5177
  } else {
4625
5178
  arg2 = *((memcached_realloc_function *)(argp2));
4626
5179
  }
@@ -4646,7 +5199,7 @@ _wrap_MemcachedSt_call_realloc_get(int argc, VALUE *argv, VALUE self) {
4646
5199
  }
4647
5200
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4648
5201
  if (!SWIG_IsOK(res1)) {
4649
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "call_realloc" "', argument " "1"" of type '" "struct memcached_st *""'");
5202
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","call_realloc", 1, self ));
4650
5203
  }
4651
5204
  arg1 = (struct memcached_st *)(argp1);
4652
5205
  result = ((arg1)->call_realloc);
@@ -4671,16 +5224,16 @@ _wrap_MemcachedSt_get_key_failure_set(int argc, VALUE *argv, VALUE self) {
4671
5224
  }
4672
5225
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4673
5226
  if (!SWIG_IsOK(res1)) {
4674
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_key_failure" "', argument " "1"" of type '" "struct memcached_st *""'");
5227
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","get_key_failure", 1, self ));
4675
5228
  }
4676
5229
  arg1 = (struct memcached_st *)(argp1);
4677
5230
  {
4678
5231
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_trigger_key, 0 );
4679
5232
  if (!SWIG_IsOK(res2)) {
4680
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "get_key_failure" "', argument " "2"" of type '" "memcached_trigger_key""'");
5233
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_trigger_key","get_key_failure", 2, argv[0] ));
4681
5234
  }
4682
5235
  if (!argp2) {
4683
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "get_key_failure" "', argument " "2"" of type '" "memcached_trigger_key""'");
5236
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_trigger_key","get_key_failure", 2, argv[0]));
4684
5237
  } else {
4685
5238
  arg2 = *((memcached_trigger_key *)(argp2));
4686
5239
  }
@@ -4706,7 +5259,7 @@ _wrap_MemcachedSt_get_key_failure_get(int argc, VALUE *argv, VALUE self) {
4706
5259
  }
4707
5260
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4708
5261
  if (!SWIG_IsOK(res1)) {
4709
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "get_key_failure" "', argument " "1"" of type '" "struct memcached_st *""'");
5262
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","get_key_failure", 1, self ));
4710
5263
  }
4711
5264
  arg1 = (struct memcached_st *)(argp1);
4712
5265
  result = ((arg1)->get_key_failure);
@@ -4731,16 +5284,16 @@ _wrap_MemcachedSt_delete_trigger_set(int argc, VALUE *argv, VALUE self) {
4731
5284
  }
4732
5285
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4733
5286
  if (!SWIG_IsOK(res1)) {
4734
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_trigger" "', argument " "1"" of type '" "struct memcached_st *""'");
5287
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","delete_trigger", 1, self ));
4735
5288
  }
4736
5289
  arg1 = (struct memcached_st *)(argp1);
4737
5290
  {
4738
5291
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_trigger_delete_key, 0 );
4739
5292
  if (!SWIG_IsOK(res2)) {
4740
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "delete_trigger" "', argument " "2"" of type '" "memcached_trigger_delete_key""'");
5293
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_trigger_delete_key","delete_trigger", 2, argv[0] ));
4741
5294
  }
4742
5295
  if (!argp2) {
4743
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "delete_trigger" "', argument " "2"" of type '" "memcached_trigger_delete_key""'");
5296
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_trigger_delete_key","delete_trigger", 2, argv[0]));
4744
5297
  } else {
4745
5298
  arg2 = *((memcached_trigger_delete_key *)(argp2));
4746
5299
  }
@@ -4766,7 +5319,7 @@ _wrap_MemcachedSt_delete_trigger_get(int argc, VALUE *argv, VALUE self) {
4766
5319
  }
4767
5320
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4768
5321
  if (!SWIG_IsOK(res1)) {
4769
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_trigger" "', argument " "1"" of type '" "struct memcached_st *""'");
5322
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","delete_trigger", 1, self ));
4770
5323
  }
4771
5324
  arg1 = (struct memcached_st *)(argp1);
4772
5325
  result = ((arg1)->delete_trigger);
@@ -4823,7 +5376,7 @@ _wrap_memcached_lib_version(int argc, VALUE *argv, VALUE self) {
4823
5376
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4824
5377
  }
4825
5378
  result = (char *)memcached_lib_version();
4826
- vresult = SWIG_FromCharPtr(result);
5379
+ vresult = SWIG_FromCharPtr((const char *)result);
4827
5380
  return vresult;
4828
5381
  fail:
4829
5382
  return Qnil;
@@ -4843,7 +5396,7 @@ _wrap_memcached_create(int argc, VALUE *argv, VALUE self) {
4843
5396
  }
4844
5397
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4845
5398
  if (!SWIG_IsOK(res1)) {
4846
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_create" "', argument " "1"" of type '" "memcached_st *""'");
5399
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_create", 1, argv[0] ));
4847
5400
  }
4848
5401
  arg1 = (memcached_st *)(argp1);
4849
5402
  result = (memcached_st *)memcached_create(arg1);
@@ -4865,7 +5418,7 @@ _wrap_memcached_free(int argc, VALUE *argv, VALUE self) {
4865
5418
  }
4866
5419
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4867
5420
  if (!SWIG_IsOK(res1)) {
4868
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_free" "', argument " "1"" of type '" "memcached_st *""'");
5421
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_free", 1, argv[0] ));
4869
5422
  }
4870
5423
  arg1 = (memcached_st *)(argp1);
4871
5424
  memcached_free(arg1);
@@ -4891,12 +5444,12 @@ _wrap_memcached_clone(int argc, VALUE *argv, VALUE self) {
4891
5444
  }
4892
5445
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4893
5446
  if (!SWIG_IsOK(res1)) {
4894
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_clone" "', argument " "1"" of type '" "memcached_st *""'");
5447
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_clone", 1, argv[0] ));
4895
5448
  }
4896
5449
  arg1 = (memcached_st *)(argp1);
4897
5450
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_st, 0 | 0 );
4898
5451
  if (!SWIG_IsOK(res2)) {
4899
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_clone" "', argument " "2"" of type '" "memcached_st *""'");
5452
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st *","memcached_clone", 2, argv[1] ));
4900
5453
  }
4901
5454
  arg2 = (memcached_st *)(argp2);
4902
5455
  result = (memcached_st *)memcached_clone(arg1,arg2);
@@ -4923,7 +5476,7 @@ _wrap_memcached_delete(int argc, VALUE *argv, VALUE self) {
4923
5476
  }
4924
5477
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4925
5478
  if (!SWIG_IsOK(res1)) {
4926
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_delete" "', argument " "1"" of type '" "memcached_st *""'");
5479
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_delete", 1, argv[0] ));
4927
5480
  }
4928
5481
  arg1 = (memcached_st *)(argp1);
4929
5482
  {
@@ -4966,7 +5519,7 @@ _wrap_memcached_increment(int argc, VALUE *argv, VALUE self) {
4966
5519
  }
4967
5520
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
4968
5521
  if (!SWIG_IsOK(res1)) {
4969
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_increment" "', argument " "1"" of type '" "memcached_st *""'");
5522
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_increment", 1, argv[0] ));
4970
5523
  }
4971
5524
  arg1 = (memcached_st *)(argp1);
4972
5525
  {
@@ -4975,7 +5528,7 @@ _wrap_memcached_increment(int argc, VALUE *argv, VALUE self) {
4975
5528
  }
4976
5529
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
4977
5530
  if (!SWIG_IsOK(ecode4)) {
4978
- SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_increment" "', argument " "4"" of type '" "uint32_t""'");
5531
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_increment", 4, argv[2] ));
4979
5532
  }
4980
5533
  arg4 = (uint32_t)(val4);
4981
5534
  result = (memcached_return)memcached_increment(arg1,arg2,arg3,arg4,arg5);
@@ -5014,7 +5567,7 @@ _wrap_memcached_decrement(int argc, VALUE *argv, VALUE self) {
5014
5567
  }
5015
5568
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5016
5569
  if (!SWIG_IsOK(res1)) {
5017
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_decrement" "', argument " "1"" of type '" "memcached_st *""'");
5570
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_decrement", 1, argv[0] ));
5018
5571
  }
5019
5572
  arg1 = (memcached_st *)(argp1);
5020
5573
  {
@@ -5023,7 +5576,7 @@ _wrap_memcached_decrement(int argc, VALUE *argv, VALUE self) {
5023
5576
  }
5024
5577
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
5025
5578
  if (!SWIG_IsOK(ecode4)) {
5026
- SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_decrement" "', argument " "4"" of type '" "uint32_t""'");
5579
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_decrement", 4, argv[2] ));
5027
5580
  }
5028
5581
  arg4 = (uint32_t)(val4);
5029
5582
  result = (memcached_return)memcached_decrement(arg1,arg2,arg3,arg4,arg5);
@@ -5054,12 +5607,12 @@ _wrap_memcached_stat_free(int argc, VALUE *argv, VALUE self) {
5054
5607
  }
5055
5608
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5056
5609
  if (!SWIG_IsOK(res1)) {
5057
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_free" "', argument " "1"" of type '" "memcached_st *""'");
5610
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_free", 1, argv[0] ));
5058
5611
  }
5059
5612
  arg1 = (memcached_st *)(argp1);
5060
5613
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
5061
5614
  if (!SWIG_IsOK(res2)) {
5062
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_free" "', argument " "2"" of type '" "memcached_stat_st *""'");
5615
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_free", 2, argv[1] ));
5063
5616
  }
5064
5617
  arg2 = (memcached_stat_st *)(argp2);
5065
5618
  memcached_stat_free(arg1,arg2);
@@ -5090,14 +5643,14 @@ _wrap_memcached_stat(int argc, VALUE *argv, VALUE self) {
5090
5643
  }
5091
5644
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5092
5645
  if (!SWIG_IsOK(res1)) {
5093
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat" "', argument " "1"" of type '" "memcached_st *""'");
5646
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat", 1, argv[0] ));
5094
5647
  }
5095
5648
  arg1 = (memcached_st *)(argp1);
5096
5649
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5097
5650
  if (!SWIG_IsOK(res2)) {
5098
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat" "', argument " "2"" of type '" "char *""'");
5651
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_stat", 2, argv[1] ));
5099
5652
  }
5100
- arg2 = buf2;
5653
+ arg2 = (char *)(buf2);
5101
5654
  result = (memcached_stat_st *)memcached_stat(arg1,arg2,arg3);
5102
5655
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_stat_st, 0 | 0 );
5103
5656
  if (SWIG_IsTmpObj(res3)) {
@@ -5138,22 +5691,22 @@ _wrap_memcached_stat_servername(int argc, VALUE *argv, VALUE self) {
5138
5691
  }
5139
5692
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
5140
5693
  if (!SWIG_IsOK(res1)) {
5141
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_servername" "', argument " "1"" of type '" "memcached_stat_st *""'");
5694
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_servername", 1, argv[0] ));
5142
5695
  }
5143
5696
  arg1 = (memcached_stat_st *)(argp1);
5144
5697
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5145
5698
  if (!SWIG_IsOK(res2)) {
5146
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_servername" "', argument " "2"" of type '" "char *""'");
5699
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_stat_servername", 2, argv[1] ));
5147
5700
  }
5148
- arg2 = buf2;
5701
+ arg2 = (char *)(buf2);
5149
5702
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
5150
5703
  if (!SWIG_IsOK(res3)) {
5151
- SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_stat_servername" "', argument " "3"" of type '" "char *""'");
5704
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","memcached_stat_servername", 3, argv[2] ));
5152
5705
  }
5153
- arg3 = buf3;
5706
+ arg3 = (char *)(buf3);
5154
5707
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
5155
5708
  if (!SWIG_IsOK(ecode4)) {
5156
- SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_stat_servername" "', argument " "4"" of type '" "unsigned int""'");
5709
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_stat_servername", 4, argv[3] ));
5157
5710
  }
5158
5711
  arg4 = (unsigned int)(val4);
5159
5712
  result = (memcached_return)memcached_stat_servername(arg1,arg2,arg3,arg4);
@@ -5182,7 +5735,7 @@ _wrap_memcached_flush(int argc, VALUE *argv, VALUE self) {
5182
5735
  }
5183
5736
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5184
5737
  if (!SWIG_IsOK(res1)) {
5185
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_flush" "', argument " "1"" of type '" "memcached_st *""'");
5738
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_flush", 1, argv[0] ));
5186
5739
  }
5187
5740
  arg1 = (memcached_st *)(argp1);
5188
5741
  {
@@ -5215,12 +5768,12 @@ _wrap_memcached_verbosity(int argc, VALUE *argv, VALUE self) {
5215
5768
  }
5216
5769
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5217
5770
  if (!SWIG_IsOK(res1)) {
5218
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_verbosity" "', argument " "1"" of type '" "memcached_st *""'");
5771
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_verbosity", 1, argv[0] ));
5219
5772
  }
5220
5773
  arg1 = (memcached_st *)(argp1);
5221
5774
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
5222
5775
  if (!SWIG_IsOK(ecode2)) {
5223
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_verbosity" "', argument " "2"" of type '" "unsigned int""'");
5776
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","memcached_verbosity", 2, argv[1] ));
5224
5777
  }
5225
5778
  arg2 = (unsigned int)(val2);
5226
5779
  result = (memcached_return)memcached_verbosity(arg1,arg2);
@@ -5242,7 +5795,7 @@ _wrap_memcached_quit(int argc, VALUE *argv, VALUE self) {
5242
5795
  }
5243
5796
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5244
5797
  if (!SWIG_IsOK(res1)) {
5245
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_quit" "', argument " "1"" of type '" "memcached_st *""'");
5798
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_quit", 1, argv[0] ));
5246
5799
  }
5247
5800
  arg1 = (memcached_st *)(argp1);
5248
5801
  memcached_quit(arg1);
@@ -5268,16 +5821,16 @@ _wrap_memcached_strerror(int argc, VALUE *argv, VALUE self) {
5268
5821
  }
5269
5822
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5270
5823
  if (!SWIG_IsOK(res1)) {
5271
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_strerror" "', argument " "1"" of type '" "memcached_st *""'");
5824
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_strerror", 1, argv[0] ));
5272
5825
  }
5273
5826
  arg1 = (memcached_st *)(argp1);
5274
5827
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
5275
5828
  if (!SWIG_IsOK(ecode2)) {
5276
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_strerror" "', argument " "2"" of type '" "memcached_return""'");
5829
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_return","memcached_strerror", 2, argv[1] ));
5277
5830
  }
5278
5831
  arg2 = (memcached_return)(val2);
5279
5832
  result = (char *)memcached_strerror(arg1,arg2);
5280
- vresult = SWIG_FromCharPtr(result);
5833
+ vresult = SWIG_FromCharPtr((const char *)result);
5281
5834
  return vresult;
5282
5835
  fail:
5283
5836
  return Qnil;
@@ -5303,17 +5856,17 @@ _wrap_memcached_behavior_set(int argc, VALUE *argv, VALUE self) {
5303
5856
  }
5304
5857
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5305
5858
  if (!SWIG_IsOK(res1)) {
5306
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_behavior_set" "', argument " "1"" of type '" "memcached_st *""'");
5859
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_set", 1, argv[0] ));
5307
5860
  }
5308
5861
  arg1 = (memcached_st *)(argp1);
5309
5862
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
5310
5863
  if (!SWIG_IsOK(ecode2)) {
5311
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_behavior_set" "', argument " "2"" of type '" "memcached_behavior""'");
5864
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_behavior","memcached_behavior_set", 2, argv[1] ));
5312
5865
  }
5313
5866
  arg2 = (memcached_behavior)(val2);
5314
5867
  ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[2], &val3);
5315
5868
  if (!SWIG_IsOK(ecode3)) {
5316
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_behavior_set" "', argument " "3"" of type '" "uint64_t""'");
5869
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","memcached_behavior_set", 3, argv[2] ));
5317
5870
  }
5318
5871
  arg3 = (uint64_t)(val3);
5319
5872
  result = (memcached_return)memcached_behavior_set(arg1,arg2,arg3);
@@ -5340,12 +5893,12 @@ _wrap_memcached_behavior_get(int argc, VALUE *argv, VALUE self) {
5340
5893
  }
5341
5894
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5342
5895
  if (!SWIG_IsOK(res1)) {
5343
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_behavior_get" "', argument " "1"" of type '" "memcached_st *""'");
5896
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_get", 1, argv[0] ));
5344
5897
  }
5345
5898
  arg1 = (memcached_st *)(argp1);
5346
5899
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
5347
5900
  if (!SWIG_IsOK(ecode2)) {
5348
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_behavior_get" "', argument " "2"" of type '" "memcached_behavior""'");
5901
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_behavior","memcached_behavior_get", 2, argv[1] ));
5349
5902
  }
5350
5903
  arg2 = (memcached_behavior)(val2);
5351
5904
  result = memcached_behavior_get(arg1,arg2);
@@ -5385,7 +5938,7 @@ _wrap_memcached_get(int argc, VALUE *argv, VALUE self) {
5385
5938
  }
5386
5939
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5387
5940
  if (!SWIG_IsOK(res1)) {
5388
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_get" "', argument " "1"" of type '" "memcached_st *""'");
5941
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get", 1, argv[0] ));
5389
5942
  }
5390
5943
  arg1 = (memcached_st *)(argp1);
5391
5944
  {
@@ -5393,7 +5946,7 @@ _wrap_memcached_get(int argc, VALUE *argv, VALUE self) {
5393
5946
  arg3 = (size_t) RSTRING(argv[1])->len;
5394
5947
  }
5395
5948
  result = (char *)memcached_get(arg1,arg2,arg3,arg4,arg5,arg6);
5396
- vresult = SWIG_FromCharPtr(result);
5949
+ vresult = SWIG_FromCharPtr((const char *)result);
5397
5950
  if (SWIG_IsTmpObj(res4)) {
5398
5951
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg4)));
5399
5952
  } else {
@@ -5434,7 +5987,7 @@ _wrap_memcached_mget(int argc, VALUE *argv, VALUE self) {
5434
5987
  }
5435
5988
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5436
5989
  if (!SWIG_IsOK(res1)) {
5437
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_mget" "', argument " "1"" of type '" "memcached_st *""'");
5990
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget", 1, argv[0] ));
5438
5991
  }
5439
5992
  arg1 = (memcached_st *)(argp1);
5440
5993
  {
@@ -5497,11 +6050,11 @@ _wrap_memcached_fetch(int argc, VALUE *argv, VALUE self) {
5497
6050
  }
5498
6051
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5499
6052
  if (!SWIG_IsOK(res1)) {
5500
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_fetch" "', argument " "1"" of type '" "memcached_st *""'");
6053
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch", 1, argv[0] ));
5501
6054
  }
5502
6055
  arg1 = (memcached_st *)(argp1);
5503
6056
  result = (char *)memcached_fetch(arg1,arg2,arg3,arg4,arg5,arg6);
5504
- vresult = SWIG_FromCharPtr(result);
6057
+ vresult = SWIG_FromCharPtr((const char *)result);
5505
6058
  {
5506
6059
  // Pushes an empty string when *key_length == 0
5507
6060
  rb_ary_push(vresult, rb_str_new(arg2, *arg3));
@@ -5550,12 +6103,12 @@ _wrap_memcached_fetch_result(int argc, VALUE *argv, VALUE self) {
5550
6103
  }
5551
6104
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5552
6105
  if (!SWIG_IsOK(res1)) {
5553
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_fetch_result" "', argument " "1"" of type '" "memcached_st *""'");
6106
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_result", 1, argv[0] ));
5554
6107
  }
5555
6108
  arg1 = (memcached_st *)(argp1);
5556
6109
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_result_st, 0 | 0 );
5557
6110
  if (!SWIG_IsOK(res2)) {
5558
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_fetch_result" "', argument " "2"" of type '" "memcached_result_st *""'");
6111
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_fetch_result", 2, argv[1] ));
5559
6112
  }
5560
6113
  arg2 = (memcached_result_st *)(argp2);
5561
6114
  result = (memcached_result_st *)memcached_fetch_result(arg1,arg2,arg3);
@@ -5592,17 +6145,17 @@ _wrap_memcached_server_add_udp(int argc, VALUE *argv, VALUE self) {
5592
6145
  }
5593
6146
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5594
6147
  if (!SWIG_IsOK(res1)) {
5595
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_add_udp" "', argument " "1"" of type '" "memcached_st *""'");
6148
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_udp", 1, argv[0] ));
5596
6149
  }
5597
6150
  arg1 = (memcached_st *)(argp1);
5598
6151
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5599
6152
  if (!SWIG_IsOK(res2)) {
5600
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_add_udp" "', argument " "2"" of type '" "char *""'");
6153
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_server_add_udp", 2, argv[1] ));
5601
6154
  }
5602
- arg2 = buf2;
6155
+ arg2 = (char *)(buf2);
5603
6156
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
5604
6157
  if (!SWIG_IsOK(ecode3)) {
5605
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_add_udp" "', argument " "3"" of type '" "unsigned int""'");
6158
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add_udp", 3, argv[2] ));
5606
6159
  }
5607
6160
  arg3 = (unsigned int)(val3);
5608
6161
  result = (memcached_return)memcached_server_add_udp(arg1,arg2,arg3);
@@ -5632,14 +6185,14 @@ _wrap_memcached_server_add_unix_socket(int argc, VALUE *argv, VALUE self) {
5632
6185
  }
5633
6186
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5634
6187
  if (!SWIG_IsOK(res1)) {
5635
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_add_unix_socket" "', argument " "1"" of type '" "memcached_st *""'");
6188
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_unix_socket", 1, argv[0] ));
5636
6189
  }
5637
6190
  arg1 = (memcached_st *)(argp1);
5638
6191
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5639
6192
  if (!SWIG_IsOK(res2)) {
5640
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_add_unix_socket" "', argument " "2"" of type '" "char *""'");
6193
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_server_add_unix_socket", 2, argv[1] ));
5641
6194
  }
5642
- arg2 = buf2;
6195
+ arg2 = (char *)(buf2);
5643
6196
  result = (memcached_return)memcached_server_add_unix_socket(arg1,arg2);
5644
6197
  vresult = SWIG_From_int((int)(result));
5645
6198
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
@@ -5670,17 +6223,17 @@ _wrap_memcached_server_add(int argc, VALUE *argv, VALUE self) {
5670
6223
  }
5671
6224
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5672
6225
  if (!SWIG_IsOK(res1)) {
5673
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_add" "', argument " "1"" of type '" "memcached_st *""'");
6226
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add", 1, argv[0] ));
5674
6227
  }
5675
6228
  arg1 = (memcached_st *)(argp1);
5676
6229
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5677
6230
  if (!SWIG_IsOK(res2)) {
5678
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_add" "', argument " "2"" of type '" "char *""'");
6231
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_server_add", 2, argv[1] ));
5679
6232
  }
5680
- arg2 = buf2;
6233
+ arg2 = (char *)(buf2);
5681
6234
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
5682
6235
  if (!SWIG_IsOK(ecode3)) {
5683
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_add" "', argument " "3"" of type '" "unsigned int""'");
6236
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add", 3, argv[2] ));
5684
6237
  }
5685
6238
  arg3 = (unsigned int)(val3);
5686
6239
  result = (memcached_return)memcached_server_add(arg1,arg2,arg3);
@@ -5704,7 +6257,7 @@ _wrap_memcached_server_list_free(int argc, VALUE *argv, VALUE self) {
5704
6257
  }
5705
6258
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
5706
6259
  if (!SWIG_IsOK(res1)) {
5707
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_list_free" "', argument " "1"" of type '" "memcached_server_st *""'");
6260
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_free", 1, argv[0] ));
5708
6261
  }
5709
6262
  arg1 = (memcached_server_st *)(argp1);
5710
6263
  memcached_server_list_free(arg1);
@@ -5730,12 +6283,12 @@ _wrap_memcached_server_push(int argc, VALUE *argv, VALUE self) {
5730
6283
  }
5731
6284
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5732
6285
  if (!SWIG_IsOK(res1)) {
5733
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_push" "', argument " "1"" of type '" "memcached_st *""'");
6286
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_push", 1, argv[0] ));
5734
6287
  }
5735
6288
  arg1 = (memcached_st *)(argp1);
5736
6289
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_st, 0 | 0 );
5737
6290
  if (!SWIG_IsOK(res2)) {
5738
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_push" "', argument " "2"" of type '" "memcached_server_st *""'");
6291
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_push", 2, argv[1] ));
5739
6292
  }
5740
6293
  arg2 = (memcached_server_st *)(argp2);
5741
6294
  result = (memcached_return)memcached_server_push(arg1,arg2);
@@ -5770,17 +6323,17 @@ _wrap_memcached_server_list_append(int argc, VALUE *argv, VALUE self) {
5770
6323
  }
5771
6324
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
5772
6325
  if (!SWIG_IsOK(res1)) {
5773
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_list_append" "', argument " "1"" of type '" "memcached_server_st *""'");
6326
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_append", 1, argv[0] ));
5774
6327
  }
5775
6328
  arg1 = (memcached_server_st *)(argp1);
5776
6329
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
5777
6330
  if (!SWIG_IsOK(res2)) {
5778
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_list_append" "', argument " "2"" of type '" "char *""'");
6331
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_server_list_append", 2, argv[1] ));
5779
6332
  }
5780
- arg2 = buf2;
6333
+ arg2 = (char *)(buf2);
5781
6334
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
5782
6335
  if (!SWIG_IsOK(ecode3)) {
5783
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_server_list_append" "', argument " "3"" of type '" "unsigned int""'");
6336
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_list_append", 3, argv[2] ));
5784
6337
  }
5785
6338
  arg3 = (unsigned int)(val3);
5786
6339
  result = (memcached_server_st *)memcached_server_list_append(arg1,arg2,arg3,arg4);
@@ -5812,7 +6365,7 @@ _wrap_memcached_server_list_count(int argc, VALUE *argv, VALUE self) {
5812
6365
  }
5813
6366
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
5814
6367
  if (!SWIG_IsOK(res1)) {
5815
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_list_count" "', argument " "1"" of type '" "memcached_server_st *""'");
6368
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_list_count", 1, argv[0] ));
5816
6369
  }
5817
6370
  arg1 = (memcached_server_st *)(argp1);
5818
6371
  result = (unsigned int)memcached_server_list_count(arg1);
@@ -5837,9 +6390,9 @@ _wrap_memcached_servers_parse(int argc, VALUE *argv, VALUE self) {
5837
6390
  }
5838
6391
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
5839
6392
  if (!SWIG_IsOK(res1)) {
5840
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_servers_parse" "', argument " "1"" of type '" "char *""'");
6393
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","memcached_servers_parse", 1, argv[0] ));
5841
6394
  }
5842
- arg1 = buf1;
6395
+ arg1 = (char *)(buf1);
5843
6396
  result = (memcached_server_st *)memcached_servers_parse(arg1);
5844
6397
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
5845
6398
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
@@ -5874,21 +6427,21 @@ _wrap_memcached_stat_get_value(int argc, VALUE *argv, VALUE self) {
5874
6427
  }
5875
6428
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5876
6429
  if (!SWIG_IsOK(res1)) {
5877
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_get_value" "', argument " "1"" of type '" "memcached_st *""'");
6430
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_get_value", 1, argv[0] ));
5878
6431
  }
5879
6432
  arg1 = (memcached_st *)(argp1);
5880
6433
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
5881
6434
  if (!SWIG_IsOK(res2)) {
5882
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_get_value" "', argument " "2"" of type '" "memcached_stat_st *""'");
6435
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_value", 2, argv[1] ));
5883
6436
  }
5884
6437
  arg2 = (memcached_stat_st *)(argp2);
5885
6438
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
5886
6439
  if (!SWIG_IsOK(res3)) {
5887
- SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_stat_get_value" "', argument " "3"" of type '" "char *""'");
6440
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","memcached_stat_get_value", 3, argv[2] ));
5888
6441
  }
5889
- arg3 = buf3;
6442
+ arg3 = (char *)(buf3);
5890
6443
  result = (char *)memcached_stat_get_value(arg1,arg2,arg3,arg4);
5891
- vresult = SWIG_FromCharPtr(result);
6444
+ vresult = SWIG_FromCharPtr((const char *)result);
5892
6445
  if (SWIG_IsTmpObj(res4)) {
5893
6446
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg4)));
5894
6447
  } else {
@@ -5923,12 +6476,12 @@ _wrap_memcached_stat_get_keys(int argc, VALUE *argv, VALUE self) {
5923
6476
  }
5924
6477
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5925
6478
  if (!SWIG_IsOK(res1)) {
5926
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_get_keys" "', argument " "1"" of type '" "memcached_st *""'");
6479
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_get_keys", 1, argv[0] ));
5927
6480
  }
5928
6481
  arg1 = (memcached_st *)(argp1);
5929
6482
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
5930
6483
  if (!SWIG_IsOK(res2)) {
5931
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_get_keys" "', argument " "2"" of type '" "memcached_stat_st *""'");
6484
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_keys", 2, argv[1] ));
5932
6485
  }
5933
6486
  arg2 = (memcached_stat_st *)(argp2);
5934
6487
  result = (char **)memcached_stat_get_keys(arg1,arg2,arg3);
@@ -5984,7 +6537,7 @@ _wrap_memcached_get_by_key(int argc, VALUE *argv, VALUE self) {
5984
6537
  }
5985
6538
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
5986
6539
  if (!SWIG_IsOK(res1)) {
5987
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_get_by_key" "', argument " "1"" of type '" "memcached_st *""'");
6540
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_by_key", 1, argv[0] ));
5988
6541
  }
5989
6542
  arg1 = (memcached_st *)(argp1);
5990
6543
  {
@@ -5992,7 +6545,7 @@ _wrap_memcached_get_by_key(int argc, VALUE *argv, VALUE self) {
5992
6545
  arg5 = arg3 = (size_t) RSTRING(argv[1])->len;
5993
6546
  }
5994
6547
  result = (char *)memcached_get_by_key(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
5995
- vresult = SWIG_FromCharPtr(result);
6548
+ vresult = SWIG_FromCharPtr((const char *)result);
5996
6549
  if (SWIG_IsTmpObj(res6)) {
5997
6550
  vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg6)));
5998
6551
  } else {
@@ -6040,17 +6593,17 @@ _wrap_memcached_mget_by_key(int argc, VALUE *argv, VALUE self) {
6040
6593
  }
6041
6594
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6042
6595
  if (!SWIG_IsOK(res1)) {
6043
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_mget_by_key" "', argument " "1"" of type '" "memcached_st *""'");
6596
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget_by_key", 1, argv[0] ));
6044
6597
  }
6045
6598
  arg1 = (memcached_st *)(argp1);
6046
6599
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
6047
6600
  if (!SWIG_IsOK(res2)) {
6048
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_mget_by_key" "', argument " "2"" of type '" "char *""'");
6601
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_mget_by_key", 2, argv[1] ));
6049
6602
  }
6050
- arg2 = buf2;
6603
+ arg2 = (char *)(buf2);
6051
6604
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
6052
6605
  if (!SWIG_IsOK(ecode3)) {
6053
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_mget_by_key" "', argument " "3"" of type '" "size_t""'");
6606
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_mget_by_key", 3, argv[2] ));
6054
6607
  }
6055
6608
  arg3 = (size_t)(val3);
6056
6609
  {
@@ -6100,7 +6653,7 @@ _wrap_memcached_delete_by_key(int argc, VALUE *argv, VALUE self) {
6100
6653
  }
6101
6654
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6102
6655
  if (!SWIG_IsOK(res1)) {
6103
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_delete_by_key" "', argument " "1"" of type '" "memcached_st *""'");
6656
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_delete_by_key", 1, argv[0] ));
6104
6657
  }
6105
6658
  arg1 = (memcached_st *)(argp1);
6106
6659
  {
@@ -6124,7 +6677,7 @@ fail:
6124
6677
  SWIGINTERN VALUE
6125
6678
  _wrap_memcached_fetch_execute(int argc, VALUE *argv, VALUE self) {
6126
6679
  memcached_st *arg1 = (memcached_st *) 0 ;
6127
- unsigned int (**arg2)(memcached_st *,memcached_result_st *,void *) ;
6680
+ memcached_execute_function *arg2 = (memcached_execute_function *) 0 ;
6128
6681
  void *arg3 = (void *) 0 ;
6129
6682
  unsigned int arg4 ;
6130
6683
  memcached_return result;
@@ -6142,21 +6695,21 @@ _wrap_memcached_fetch_execute(int argc, VALUE *argv, VALUE self) {
6142
6695
  }
6143
6696
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6144
6697
  if (!SWIG_IsOK(res1)) {
6145
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_fetch_execute" "', argument " "1"" of type '" "memcached_st *""'");
6698
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_execute", 1, argv[0] ));
6146
6699
  }
6147
6700
  arg1 = (memcached_st *)(argp1);
6148
- res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_f_p_memcached_st_p_memcached_result_st_p_void__unsigned_int, 0 | 0 );
6701
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_execute_function, 0 | 0 );
6149
6702
  if (!SWIG_IsOK(res2)) {
6150
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_fetch_execute" "', argument " "2"" of type '" "unsigned int (*[])(memcached_st *,memcached_result_st *,void *)""'");
6151
- }
6152
- arg2 = (unsigned int (**)(memcached_st *,memcached_result_st *,void *))(argp2);
6703
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_execute_function *","memcached_fetch_execute", 2, argv[1] ));
6704
+ }
6705
+ arg2 = (memcached_execute_function *)(argp2);
6153
6706
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
6154
6707
  if (!SWIG_IsOK(res3)) {
6155
- SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_fetch_execute" "', argument " "3"" of type '" "void *""'");
6708
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_fetch_execute", 3, argv[2] ));
6156
6709
  }
6157
6710
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
6158
6711
  if (!SWIG_IsOK(ecode4)) {
6159
- SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_fetch_execute" "', argument " "4"" of type '" "unsigned int""'");
6712
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_fetch_execute", 4, argv[3] ));
6160
6713
  }
6161
6714
  arg4 = (unsigned int)(val4);
6162
6715
  result = (memcached_return)memcached_fetch_execute(arg1,arg2,arg3,arg4);
@@ -6185,17 +6738,17 @@ _wrap_memcached_callback_set(int argc, VALUE *argv, VALUE self) {
6185
6738
  }
6186
6739
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6187
6740
  if (!SWIG_IsOK(res1)) {
6188
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_callback_set" "', argument " "1"" of type '" "memcached_st *""'");
6741
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_callback_set", 1, argv[0] ));
6189
6742
  }
6190
6743
  arg1 = (memcached_st *)(argp1);
6191
6744
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
6192
6745
  if (!SWIG_IsOK(ecode2)) {
6193
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_callback_set" "', argument " "2"" of type '" "memcached_callback""'");
6746
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_callback","memcached_callback_set", 2, argv[1] ));
6194
6747
  }
6195
6748
  arg2 = (memcached_callback)(val2);
6196
6749
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
6197
6750
  if (!SWIG_IsOK(res3)) {
6198
- SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_callback_set" "', argument " "3"" of type '" "void *""'");
6751
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_callback_set", 3, argv[2] ));
6199
6752
  }
6200
6753
  result = (memcached_return)memcached_callback_set(arg1,arg2,arg3);
6201
6754
  vresult = SWIG_From_int((int)(result));
@@ -6225,12 +6778,12 @@ _wrap_memcached_callback_get(int argc, VALUE *argv, VALUE self) {
6225
6778
  }
6226
6779
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6227
6780
  if (!SWIG_IsOK(res1)) {
6228
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_callback_get" "', argument " "1"" of type '" "memcached_st *""'");
6781
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_callback_get", 1, argv[0] ));
6229
6782
  }
6230
6783
  arg1 = (memcached_st *)(argp1);
6231
6784
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
6232
6785
  if (!SWIG_IsOK(ecode2)) {
6233
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_callback_get" "', argument " "2"" of type '" "memcached_callback""'");
6786
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_callback","memcached_callback_get", 2, argv[1] ));
6234
6787
  }
6235
6788
  arg2 = (memcached_callback)(val2);
6236
6789
  result = (void *)memcached_callback_get(arg1,arg2,arg3);
@@ -6268,21 +6821,21 @@ _wrap_memcached_server_cursor(int argc, VALUE *argv, VALUE self) {
6268
6821
  }
6269
6822
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6270
6823
  if (!SWIG_IsOK(res1)) {
6271
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_server_cursor" "', argument " "1"" of type '" "memcached_st *""'");
6824
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_cursor", 1, argv[0] ));
6272
6825
  }
6273
6826
  arg1 = (memcached_st *)(argp1);
6274
6827
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_function, 0 | 0 );
6275
6828
  if (!SWIG_IsOK(res2)) {
6276
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_server_cursor" "', argument " "2"" of type '" "memcached_server_function *""'");
6829
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_function *","memcached_server_cursor", 2, argv[1] ));
6277
6830
  }
6278
6831
  arg2 = (memcached_server_function *)(argp2);
6279
6832
  res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
6280
6833
  if (!SWIG_IsOK(res3)) {
6281
- SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_server_cursor" "', argument " "3"" of type '" "void *""'");
6834
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_server_cursor", 3, argv[2] ));
6282
6835
  }
6283
6836
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
6284
6837
  if (!SWIG_IsOK(ecode4)) {
6285
- SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "memcached_server_cursor" "', argument " "4"" of type '" "unsigned int""'");
6838
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_server_cursor", 4, argv[3] ));
6286
6839
  }
6287
6840
  arg4 = (unsigned int)(val4);
6288
6841
  result = (memcached_return)memcached_server_cursor(arg1,arg2,arg3,arg4);
@@ -6314,7 +6867,7 @@ _wrap_memcached_set(int argc, VALUE *argv, VALUE self) {
6314
6867
  }
6315
6868
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6316
6869
  if (!SWIG_IsOK(res1)) {
6317
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_set" "', argument " "1"" of type '" "memcached_st *""'");
6870
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set", 1, argv[0] ));
6318
6871
  }
6319
6872
  arg1 = (memcached_st *)(argp1);
6320
6873
  {
@@ -6333,7 +6886,7 @@ _wrap_memcached_set(int argc, VALUE *argv, VALUE self) {
6333
6886
  }
6334
6887
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
6335
6888
  if (!SWIG_IsOK(ecode7)) {
6336
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_set" "', argument " "7"" of type '" "uint32_t""'");
6889
+ SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_set", 7, argv[4] ));
6337
6890
  }
6338
6891
  arg7 = (uint32_t)(val7);
6339
6892
  result = (memcached_return)memcached_set(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
@@ -6365,7 +6918,7 @@ _wrap_memcached_add(int argc, VALUE *argv, VALUE self) {
6365
6918
  }
6366
6919
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6367
6920
  if (!SWIG_IsOK(res1)) {
6368
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_add" "', argument " "1"" of type '" "memcached_st *""'");
6921
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_add", 1, argv[0] ));
6369
6922
  }
6370
6923
  arg1 = (memcached_st *)(argp1);
6371
6924
  {
@@ -6384,7 +6937,7 @@ _wrap_memcached_add(int argc, VALUE *argv, VALUE self) {
6384
6937
  }
6385
6938
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
6386
6939
  if (!SWIG_IsOK(ecode7)) {
6387
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_add" "', argument " "7"" of type '" "uint32_t""'");
6940
+ SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_add", 7, argv[4] ));
6388
6941
  }
6389
6942
  arg7 = (uint32_t)(val7);
6390
6943
  result = (memcached_return)memcached_add(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
@@ -6416,7 +6969,7 @@ _wrap_memcached_replace(int argc, VALUE *argv, VALUE self) {
6416
6969
  }
6417
6970
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6418
6971
  if (!SWIG_IsOK(res1)) {
6419
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_replace" "', argument " "1"" of type '" "memcached_st *""'");
6972
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_replace", 1, argv[0] ));
6420
6973
  }
6421
6974
  arg1 = (memcached_st *)(argp1);
6422
6975
  {
@@ -6435,7 +6988,7 @@ _wrap_memcached_replace(int argc, VALUE *argv, VALUE self) {
6435
6988
  }
6436
6989
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
6437
6990
  if (!SWIG_IsOK(ecode7)) {
6438
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_replace" "', argument " "7"" of type '" "uint32_t""'");
6991
+ SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_replace", 7, argv[4] ));
6439
6992
  }
6440
6993
  arg7 = (uint32_t)(val7);
6441
6994
  result = (memcached_return)memcached_replace(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
@@ -6467,7 +7020,7 @@ _wrap_memcached_append(int argc, VALUE *argv, VALUE self) {
6467
7020
  }
6468
7021
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6469
7022
  if (!SWIG_IsOK(res1)) {
6470
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_append" "', argument " "1"" of type '" "memcached_st *""'");
7023
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_append", 1, argv[0] ));
6471
7024
  }
6472
7025
  arg1 = (memcached_st *)(argp1);
6473
7026
  {
@@ -6486,7 +7039,7 @@ _wrap_memcached_append(int argc, VALUE *argv, VALUE self) {
6486
7039
  }
6487
7040
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
6488
7041
  if (!SWIG_IsOK(ecode7)) {
6489
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_append" "', argument " "7"" of type '" "uint32_t""'");
7042
+ SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_append", 7, argv[4] ));
6490
7043
  }
6491
7044
  arg7 = (uint32_t)(val7);
6492
7045
  result = (memcached_return)memcached_append(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
@@ -6518,7 +7071,7 @@ _wrap_memcached_prepend(int argc, VALUE *argv, VALUE self) {
6518
7071
  }
6519
7072
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6520
7073
  if (!SWIG_IsOK(res1)) {
6521
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_prepend" "', argument " "1"" of type '" "memcached_st *""'");
7074
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_prepend", 1, argv[0] ));
6522
7075
  }
6523
7076
  arg1 = (memcached_st *)(argp1);
6524
7077
  {
@@ -6537,7 +7090,7 @@ _wrap_memcached_prepend(int argc, VALUE *argv, VALUE self) {
6537
7090
  }
6538
7091
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
6539
7092
  if (!SWIG_IsOK(ecode7)) {
6540
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_prepend" "', argument " "7"" of type '" "uint32_t""'");
7093
+ SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_prepend", 7, argv[4] ));
6541
7094
  }
6542
7095
  arg7 = (uint32_t)(val7);
6543
7096
  result = (memcached_return)memcached_prepend(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
@@ -6572,7 +7125,7 @@ _wrap_memcached_cas(int argc, VALUE *argv, VALUE self) {
6572
7125
  }
6573
7126
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6574
7127
  if (!SWIG_IsOK(res1)) {
6575
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_cas" "', argument " "1"" of type '" "memcached_st *""'");
7128
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_cas", 1, argv[0] ));
6576
7129
  }
6577
7130
  arg1 = (memcached_st *)(argp1);
6578
7131
  {
@@ -6591,12 +7144,12 @@ _wrap_memcached_cas(int argc, VALUE *argv, VALUE self) {
6591
7144
  }
6592
7145
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
6593
7146
  if (!SWIG_IsOK(ecode7)) {
6594
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "memcached_cas" "', argument " "7"" of type '" "uint32_t""'");
7147
+ SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_cas", 7, argv[4] ));
6595
7148
  }
6596
7149
  arg7 = (uint32_t)(val7);
6597
7150
  ecode8 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], &val8);
6598
7151
  if (!SWIG_IsOK(ecode8)) {
6599
- SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "memcached_cas" "', argument " "8"" of type '" "uint64_t""'");
7152
+ SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "uint64_t","memcached_cas", 8, argv[5] ));
6600
7153
  }
6601
7154
  arg8 = (uint64_t)(val8);
6602
7155
  result = (memcached_return)memcached_cas(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
@@ -6630,7 +7183,7 @@ _wrap_memcached_set_by_key(int argc, VALUE *argv, VALUE self) {
6630
7183
  }
6631
7184
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6632
7185
  if (!SWIG_IsOK(res1)) {
6633
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_set_by_key" "', argument " "1"" of type '" "memcached_st *""'");
7186
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_by_key", 1, argv[0] ));
6634
7187
  }
6635
7188
  arg1 = (memcached_st *)(argp1);
6636
7189
  {
@@ -6649,7 +7202,7 @@ _wrap_memcached_set_by_key(int argc, VALUE *argv, VALUE self) {
6649
7202
  }
6650
7203
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
6651
7204
  if (!SWIG_IsOK(ecode9)) {
6652
- SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_set_by_key" "', argument " "9"" of type '" "uint32_t""'");
7205
+ SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_set_by_key", 9, argv[4] ));
6653
7206
  }
6654
7207
  arg9 = (uint32_t)(val9);
6655
7208
  result = (memcached_return)memcached_set_by_key(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
@@ -6683,7 +7236,7 @@ _wrap_memcached_add_by_key(int argc, VALUE *argv, VALUE self) {
6683
7236
  }
6684
7237
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6685
7238
  if (!SWIG_IsOK(res1)) {
6686
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_add_by_key" "', argument " "1"" of type '" "memcached_st *""'");
7239
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_add_by_key", 1, argv[0] ));
6687
7240
  }
6688
7241
  arg1 = (memcached_st *)(argp1);
6689
7242
  {
@@ -6702,7 +7255,7 @@ _wrap_memcached_add_by_key(int argc, VALUE *argv, VALUE self) {
6702
7255
  }
6703
7256
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
6704
7257
  if (!SWIG_IsOK(ecode9)) {
6705
- SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_add_by_key" "', argument " "9"" of type '" "uint32_t""'");
7258
+ SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_add_by_key", 9, argv[4] ));
6706
7259
  }
6707
7260
  arg9 = (uint32_t)(val9);
6708
7261
  result = (memcached_return)memcached_add_by_key(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
@@ -6736,7 +7289,7 @@ _wrap_memcached_replace_by_key(int argc, VALUE *argv, VALUE self) {
6736
7289
  }
6737
7290
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6738
7291
  if (!SWIG_IsOK(res1)) {
6739
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_replace_by_key" "', argument " "1"" of type '" "memcached_st *""'");
7292
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_replace_by_key", 1, argv[0] ));
6740
7293
  }
6741
7294
  arg1 = (memcached_st *)(argp1);
6742
7295
  {
@@ -6755,7 +7308,7 @@ _wrap_memcached_replace_by_key(int argc, VALUE *argv, VALUE self) {
6755
7308
  }
6756
7309
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
6757
7310
  if (!SWIG_IsOK(ecode9)) {
6758
- SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_replace_by_key" "', argument " "9"" of type '" "uint32_t""'");
7311
+ SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_replace_by_key", 9, argv[4] ));
6759
7312
  }
6760
7313
  arg9 = (uint32_t)(val9);
6761
7314
  result = (memcached_return)memcached_replace_by_key(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
@@ -6789,7 +7342,7 @@ _wrap_memcached_prepend_by_key(int argc, VALUE *argv, VALUE self) {
6789
7342
  }
6790
7343
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6791
7344
  if (!SWIG_IsOK(res1)) {
6792
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_prepend_by_key" "', argument " "1"" of type '" "memcached_st *""'");
7345
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_prepend_by_key", 1, argv[0] ));
6793
7346
  }
6794
7347
  arg1 = (memcached_st *)(argp1);
6795
7348
  {
@@ -6808,7 +7361,7 @@ _wrap_memcached_prepend_by_key(int argc, VALUE *argv, VALUE self) {
6808
7361
  }
6809
7362
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
6810
7363
  if (!SWIG_IsOK(ecode9)) {
6811
- SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_prepend_by_key" "', argument " "9"" of type '" "uint32_t""'");
7364
+ SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_prepend_by_key", 9, argv[4] ));
6812
7365
  }
6813
7366
  arg9 = (uint32_t)(val9);
6814
7367
  result = (memcached_return)memcached_prepend_by_key(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
@@ -6842,7 +7395,7 @@ _wrap_memcached_append_by_key(int argc, VALUE *argv, VALUE self) {
6842
7395
  }
6843
7396
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6844
7397
  if (!SWIG_IsOK(res1)) {
6845
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_append_by_key" "', argument " "1"" of type '" "memcached_st *""'");
7398
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_append_by_key", 1, argv[0] ));
6846
7399
  }
6847
7400
  arg1 = (memcached_st *)(argp1);
6848
7401
  {
@@ -6861,7 +7414,7 @@ _wrap_memcached_append_by_key(int argc, VALUE *argv, VALUE self) {
6861
7414
  }
6862
7415
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
6863
7416
  if (!SWIG_IsOK(ecode9)) {
6864
- SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_append_by_key" "', argument " "9"" of type '" "uint32_t""'");
7417
+ SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_append_by_key", 9, argv[4] ));
6865
7418
  }
6866
7419
  arg9 = (uint32_t)(val9);
6867
7420
  result = (memcached_return)memcached_append_by_key(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
@@ -6898,7 +7451,7 @@ _wrap_memcached_cas_by_key(int argc, VALUE *argv, VALUE self) {
6898
7451
  }
6899
7452
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
6900
7453
  if (!SWIG_IsOK(res1)) {
6901
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_cas_by_key" "', argument " "1"" of type '" "memcached_st *""'");
7454
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_cas_by_key", 1, argv[0] ));
6902
7455
  }
6903
7456
  arg1 = (memcached_st *)(argp1);
6904
7457
  {
@@ -6917,12 +7470,12 @@ _wrap_memcached_cas_by_key(int argc, VALUE *argv, VALUE self) {
6917
7470
  }
6918
7471
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
6919
7472
  if (!SWIG_IsOK(ecode9)) {
6920
- SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "memcached_cas_by_key" "', argument " "9"" of type '" "uint32_t""'");
7473
+ SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_cas_by_key", 9, argv[4] ));
6921
7474
  }
6922
7475
  arg9 = (uint32_t)(val9);
6923
7476
  ecode10 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], &val10);
6924
7477
  if (!SWIG_IsOK(ecode10)) {
6925
- SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "memcached_cas_by_key" "', argument " "10"" of type '" "uint64_t""'");
7478
+ SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "uint64_t","memcached_cas_by_key", 10, argv[5] ));
6926
7479
  }
6927
7480
  arg10 = (uint64_t)(val10);
6928
7481
  result = (memcached_return)memcached_cas_by_key(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
@@ -6949,12 +7502,12 @@ _wrap_MemcachedResultSt_is_allocated_set(int argc, VALUE *argv, VALUE self) {
6949
7502
  }
6950
7503
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
6951
7504
  if (!SWIG_IsOK(res1)) {
6952
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7505
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","is_allocated", 1, self ));
6953
7506
  }
6954
7507
  arg1 = (struct memcached_result_st *)(argp1);
6955
7508
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
6956
7509
  if (!SWIG_IsOK(ecode2)) {
6957
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "is_allocated" "', argument " "2"" of type '" "memcached_allocated""'");
7510
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_allocated","is_allocated", 2, argv[0] ));
6958
7511
  }
6959
7512
  arg2 = (memcached_allocated)(val2);
6960
7513
  if (arg1) (arg1)->is_allocated = arg2;
@@ -6978,7 +7531,7 @@ _wrap_MemcachedResultSt_is_allocated_get(int argc, VALUE *argv, VALUE self) {
6978
7531
  }
6979
7532
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
6980
7533
  if (!SWIG_IsOK(res1)) {
6981
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_allocated" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7534
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","is_allocated", 1, self ));
6982
7535
  }
6983
7536
  arg1 = (struct memcached_result_st *)(argp1);
6984
7537
  result = (memcached_allocated) ((arg1)->is_allocated);
@@ -7003,12 +7556,12 @@ _wrap_MemcachedResultSt_root_set(int argc, VALUE *argv, VALUE self) {
7003
7556
  }
7004
7557
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7005
7558
  if (!SWIG_IsOK(res1)) {
7006
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "root" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7559
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","root", 1, self ));
7007
7560
  }
7008
7561
  arg1 = (struct memcached_result_st *)(argp1);
7009
7562
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_st, SWIG_POINTER_DISOWN | 0 );
7010
7563
  if (!SWIG_IsOK(res2)) {
7011
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "root" "', argument " "2"" of type '" "memcached_st *""'");
7564
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st *","root", 2, argv[0] ));
7012
7565
  }
7013
7566
  arg2 = (memcached_st *)(argp2);
7014
7567
  if (arg1) (arg1)->root = arg2;
@@ -7032,7 +7585,7 @@ _wrap_MemcachedResultSt_root_get(int argc, VALUE *argv, VALUE self) {
7032
7585
  }
7033
7586
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7034
7587
  if (!SWIG_IsOK(res1)) {
7035
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "root" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7588
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","root", 1, self ));
7036
7589
  }
7037
7590
  arg1 = (struct memcached_result_st *)(argp1);
7038
7591
  result = (memcached_st *) ((arg1)->root);
@@ -7057,14 +7610,14 @@ _wrap_MemcachedResultSt_key_set(int argc, VALUE *argv, VALUE self) {
7057
7610
  }
7058
7611
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7059
7612
  if (!SWIG_IsOK(res1)) {
7060
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "key" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7613
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key", 1, self ));
7061
7614
  }
7062
7615
  arg1 = (struct memcached_result_st *)(argp1);
7063
7616
  res2 = SWIG_AsCharArray(argv[0], temp2, 251);
7064
7617
  if (!SWIG_IsOK(res2)) {
7065
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "key" "', argument " "2"" of type '" "char [251]""'");
7618
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [251]","key", 2, argv[0] ));
7066
7619
  }
7067
- arg2 = temp2;
7620
+ arg2 = (char *)(temp2);
7068
7621
  if (arg2) memcpy(arg1->key,arg2,251*sizeof(char));
7069
7622
  else memset(arg1->key,0,251*sizeof(char));
7070
7623
  return Qnil;
@@ -7086,7 +7639,7 @@ _wrap_MemcachedResultSt_key_get(int argc, VALUE *argv, VALUE self) {
7086
7639
  }
7087
7640
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7088
7641
  if (!SWIG_IsOK(res1)) {
7089
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "key" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7642
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key", 1, self ));
7090
7643
  }
7091
7644
  arg1 = (struct memcached_result_st *)(argp1);
7092
7645
  result = (char *)(char *) ((arg1)->key);
@@ -7117,12 +7670,12 @@ _wrap_MemcachedResultSt_key_length_set(int argc, VALUE *argv, VALUE self) {
7117
7670
  }
7118
7671
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7119
7672
  if (!SWIG_IsOK(res1)) {
7120
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "key_length" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7673
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key_length", 1, self ));
7121
7674
  }
7122
7675
  arg1 = (struct memcached_result_st *)(argp1);
7123
7676
  ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
7124
7677
  if (!SWIG_IsOK(ecode2)) {
7125
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "key_length" "', argument " "2"" of type '" "size_t""'");
7678
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","key_length", 2, argv[0] ));
7126
7679
  }
7127
7680
  arg2 = (size_t)(val2);
7128
7681
  if (arg1) (arg1)->key_length = arg2;
@@ -7146,7 +7699,7 @@ _wrap_MemcachedResultSt_key_length_get(int argc, VALUE *argv, VALUE self) {
7146
7699
  }
7147
7700
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7148
7701
  if (!SWIG_IsOK(res1)) {
7149
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "key_length" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7702
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key_length", 1, self ));
7150
7703
  }
7151
7704
  arg1 = (struct memcached_result_st *)(argp1);
7152
7705
  result = ((arg1)->key_length);
@@ -7171,16 +7724,16 @@ _wrap_MemcachedResultSt_value_set(int argc, VALUE *argv, VALUE self) {
7171
7724
  }
7172
7725
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7173
7726
  if (!SWIG_IsOK(res1)) {
7174
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "value" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7727
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","value", 1, self ));
7175
7728
  }
7176
7729
  arg1 = (struct memcached_result_st *)(argp1);
7177
7730
  {
7178
7731
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_memcached_string_st, 0 );
7179
7732
  if (!SWIG_IsOK(res2)) {
7180
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "value" "', argument " "2"" of type '" "memcached_string_st""'");
7733
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_string_st","value", 2, argv[0] ));
7181
7734
  }
7182
7735
  if (!argp2) {
7183
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "value" "', argument " "2"" of type '" "memcached_string_st""'");
7736
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "memcached_string_st","value", 2, argv[0]));
7184
7737
  } else {
7185
7738
  arg2 = *((memcached_string_st *)(argp2));
7186
7739
  }
@@ -7206,7 +7759,7 @@ _wrap_MemcachedResultSt_value_get(int argc, VALUE *argv, VALUE self) {
7206
7759
  }
7207
7760
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7208
7761
  if (!SWIG_IsOK(res1)) {
7209
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "value" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7762
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","value", 1, self ));
7210
7763
  }
7211
7764
  arg1 = (struct memcached_result_st *)(argp1);
7212
7765
  result = ((arg1)->value);
@@ -7231,12 +7784,12 @@ _wrap_MemcachedResultSt_flags_set(int argc, VALUE *argv, VALUE self) {
7231
7784
  }
7232
7785
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7233
7786
  if (!SWIG_IsOK(res1)) {
7234
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7787
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","flags", 1, self ));
7235
7788
  }
7236
7789
  arg1 = (struct memcached_result_st *)(argp1);
7237
7790
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
7238
7791
  if (!SWIG_IsOK(ecode2)) {
7239
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "flags" "', argument " "2"" of type '" "uint32_t""'");
7792
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","flags", 2, argv[0] ));
7240
7793
  }
7241
7794
  arg2 = (uint32_t)(val2);
7242
7795
  if (arg1) (arg1)->flags = arg2;
@@ -7260,7 +7813,7 @@ _wrap_MemcachedResultSt_flags_get(int argc, VALUE *argv, VALUE self) {
7260
7813
  }
7261
7814
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7262
7815
  if (!SWIG_IsOK(res1)) {
7263
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7816
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","flags", 1, self ));
7264
7817
  }
7265
7818
  arg1 = (struct memcached_result_st *)(argp1);
7266
7819
  result = ((arg1)->flags);
@@ -7285,12 +7838,12 @@ _wrap_MemcachedResultSt_cas_set(int argc, VALUE *argv, VALUE self) {
7285
7838
  }
7286
7839
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7287
7840
  if (!SWIG_IsOK(res1)) {
7288
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cas" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7841
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","cas", 1, self ));
7289
7842
  }
7290
7843
  arg1 = (struct memcached_result_st *)(argp1);
7291
7844
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
7292
7845
  if (!SWIG_IsOK(ecode2)) {
7293
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cas" "', argument " "2"" of type '" "uint64_t""'");
7846
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","cas", 2, argv[0] ));
7294
7847
  }
7295
7848
  arg2 = (uint64_t)(val2);
7296
7849
  if (arg1) (arg1)->cas = arg2;
@@ -7314,7 +7867,7 @@ _wrap_MemcachedResultSt_cas_get(int argc, VALUE *argv, VALUE self) {
7314
7867
  }
7315
7868
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7316
7869
  if (!SWIG_IsOK(res1)) {
7317
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cas" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7870
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","cas", 1, self ));
7318
7871
  }
7319
7872
  arg1 = (struct memcached_result_st *)(argp1);
7320
7873
  result = ((arg1)->cas);
@@ -7337,7 +7890,7 @@ _wrap_MemcachedResultSt_expiration_set(int argc, VALUE *argv, VALUE self) {
7337
7890
  }
7338
7891
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7339
7892
  if (!SWIG_IsOK(res1)) {
7340
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "expiration" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7893
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","expiration", 1, self ));
7341
7894
  }
7342
7895
  arg1 = (struct memcached_result_st *)(argp1);
7343
7896
  {
@@ -7367,7 +7920,7 @@ _wrap_MemcachedResultSt_expiration_get(int argc, VALUE *argv, VALUE self) {
7367
7920
  }
7368
7921
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7369
7922
  if (!SWIG_IsOK(res1)) {
7370
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "expiration" "', argument " "1"" of type '" "struct memcached_result_st *""'");
7923
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","expiration", 1, self ));
7371
7924
  }
7372
7925
  arg1 = (struct memcached_result_st *)(argp1);
7373
7926
  result = ((arg1)->expiration);
@@ -7428,7 +7981,7 @@ _wrap_memcached_result_free(int argc, VALUE *argv, VALUE self) {
7428
7981
  }
7429
7982
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7430
7983
  if (!SWIG_IsOK(res1)) {
7431
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_free" "', argument " "1"" of type '" "memcached_result_st *""'");
7984
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_free", 1, argv[0] ));
7432
7985
  }
7433
7986
  arg1 = (memcached_result_st *)(argp1);
7434
7987
  memcached_result_free(arg1);
@@ -7449,7 +8002,7 @@ _wrap_memcached_result_reset(int argc, VALUE *argv, VALUE self) {
7449
8002
  }
7450
8003
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7451
8004
  if (!SWIG_IsOK(res1)) {
7452
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_reset" "', argument " "1"" of type '" "memcached_result_st *""'");
8005
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_reset", 1, argv[0] ));
7453
8006
  }
7454
8007
  arg1 = (memcached_result_st *)(argp1);
7455
8008
  memcached_result_reset(arg1);
@@ -7475,12 +8028,12 @@ _wrap_memcached_result_create(int argc, VALUE *argv, VALUE self) {
7475
8028
  }
7476
8029
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
7477
8030
  if (!SWIG_IsOK(res1)) {
7478
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_create" "', argument " "1"" of type '" "memcached_st *""'");
8031
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_result_create", 1, argv[0] ));
7479
8032
  }
7480
8033
  arg1 = (memcached_st *)(argp1);
7481
8034
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7482
8035
  if (!SWIG_IsOK(res2)) {
7483
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_result_create" "', argument " "2"" of type '" "memcached_result_st *""'");
8036
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_create", 2, argv[1] ));
7484
8037
  }
7485
8038
  arg2 = (memcached_result_st *)(argp2);
7486
8039
  result = (memcached_result_st *)memcached_result_create(arg1,arg2);
@@ -7504,11 +8057,11 @@ _wrap_memcached_result_value(int argc, VALUE *argv, VALUE self) {
7504
8057
  }
7505
8058
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7506
8059
  if (!SWIG_IsOK(res1)) {
7507
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_value" "', argument " "1"" of type '" "memcached_result_st *""'");
8060
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_value", 1, argv[0] ));
7508
8061
  }
7509
8062
  arg1 = (memcached_result_st *)(argp1);
7510
8063
  result = (char *)memcached_result_value(arg1);
7511
- vresult = SWIG_FromCharPtr(result);
8064
+ vresult = SWIG_FromCharPtr((const char *)result);
7512
8065
  return vresult;
7513
8066
  fail:
7514
8067
  return Qnil;
@@ -7528,7 +8081,7 @@ _wrap_memcached_result_length(int argc, VALUE *argv, VALUE self) {
7528
8081
  }
7529
8082
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7530
8083
  if (!SWIG_IsOK(res1)) {
7531
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_length" "', argument " "1"" of type '" "memcached_result_st *""'");
8084
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_length", 1, argv[0] ));
7532
8085
  }
7533
8086
  arg1 = (memcached_result_st *)(argp1);
7534
8087
  result = memcached_result_length(arg1);
@@ -7559,17 +8112,17 @@ _wrap_memcached_result_set_value(int argc, VALUE *argv, VALUE self) {
7559
8112
  }
7560
8113
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
7561
8114
  if (!SWIG_IsOK(res1)) {
7562
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_result_set_value" "', argument " "1"" of type '" "memcached_result_st *""'");
8115
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_set_value", 1, argv[0] ));
7563
8116
  }
7564
8117
  arg1 = (memcached_result_st *)(argp1);
7565
8118
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
7566
8119
  if (!SWIG_IsOK(res2)) {
7567
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_result_set_value" "', argument " "2"" of type '" "char *""'");
8120
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_result_set_value", 2, argv[1] ));
7568
8121
  }
7569
- arg2 = buf2;
8122
+ arg2 = (char *)(buf2);
7570
8123
  ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
7571
8124
  if (!SWIG_IsOK(ecode3)) {
7572
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_result_set_value" "', argument " "3"" of type '" "size_t""'");
8125
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_result_set_value", 3, argv[2] ));
7573
8126
  }
7574
8127
  arg3 = (size_t)(val3);
7575
8128
  result = (memcached_return)memcached_result_set_value(arg1,arg2,arg3);
@@ -7598,14 +8151,14 @@ _wrap_MemcachedServerSt_hostname_set(int argc, VALUE *argv, VALUE self) {
7598
8151
  }
7599
8152
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7600
8153
  if (!SWIG_IsOK(res1)) {
7601
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hostname" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8154
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","hostname", 1, self ));
7602
8155
  }
7603
8156
  arg1 = (struct memcached_server_st *)(argp1);
7604
8157
  res2 = SWIG_AsCharArray(argv[0], temp2, 64);
7605
8158
  if (!SWIG_IsOK(res2)) {
7606
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "hostname" "', argument " "2"" of type '" "char [64]""'");
8159
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [64]","hostname", 2, argv[0] ));
7607
8160
  }
7608
- arg2 = temp2;
8161
+ arg2 = (char *)(temp2);
7609
8162
  if (arg2) memcpy(arg1->hostname,arg2,64*sizeof(char));
7610
8163
  else memset(arg1->hostname,0,64*sizeof(char));
7611
8164
  return Qnil;
@@ -7627,7 +8180,7 @@ _wrap_MemcachedServerSt_hostname_get(int argc, VALUE *argv, VALUE self) {
7627
8180
  }
7628
8181
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7629
8182
  if (!SWIG_IsOK(res1)) {
7630
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "hostname" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8183
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","hostname", 1, self ));
7631
8184
  }
7632
8185
  arg1 = (struct memcached_server_st *)(argp1);
7633
8186
  result = (char *)(char *) ((arg1)->hostname);
@@ -7658,12 +8211,12 @@ _wrap_MemcachedServerSt_port_set(int argc, VALUE *argv, VALUE self) {
7658
8211
  }
7659
8212
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7660
8213
  if (!SWIG_IsOK(res1)) {
7661
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "port" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8214
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","port", 1, self ));
7662
8215
  }
7663
8216
  arg1 = (struct memcached_server_st *)(argp1);
7664
8217
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
7665
8218
  if (!SWIG_IsOK(ecode2)) {
7666
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "port" "', argument " "2"" of type '" "unsigned int""'");
8219
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","port", 2, argv[0] ));
7667
8220
  }
7668
8221
  arg2 = (unsigned int)(val2);
7669
8222
  if (arg1) (arg1)->port = arg2;
@@ -7687,7 +8240,7 @@ _wrap_MemcachedServerSt_port_get(int argc, VALUE *argv, VALUE self) {
7687
8240
  }
7688
8241
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7689
8242
  if (!SWIG_IsOK(res1)) {
7690
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "port" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8243
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","port", 1, self ));
7691
8244
  }
7692
8245
  arg1 = (struct memcached_server_st *)(argp1);
7693
8246
  result = (unsigned int) ((arg1)->port);
@@ -7712,12 +8265,12 @@ _wrap_MemcachedServerSt_fd_set(int argc, VALUE *argv, VALUE self) {
7712
8265
  }
7713
8266
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7714
8267
  if (!SWIG_IsOK(res1)) {
7715
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fd" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8268
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","fd", 1, self ));
7716
8269
  }
7717
8270
  arg1 = (struct memcached_server_st *)(argp1);
7718
8271
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
7719
8272
  if (!SWIG_IsOK(ecode2)) {
7720
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fd" "', argument " "2"" of type '" "int""'");
8273
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","fd", 2, argv[0] ));
7721
8274
  }
7722
8275
  arg2 = (int)(val2);
7723
8276
  if (arg1) (arg1)->fd = arg2;
@@ -7741,7 +8294,7 @@ _wrap_MemcachedServerSt_fd_get(int argc, VALUE *argv, VALUE self) {
7741
8294
  }
7742
8295
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7743
8296
  if (!SWIG_IsOK(res1)) {
7744
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fd" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8297
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","fd", 1, self ));
7745
8298
  }
7746
8299
  arg1 = (struct memcached_server_st *)(argp1);
7747
8300
  result = (int) ((arg1)->fd);
@@ -7766,12 +8319,12 @@ _wrap_MemcachedServerSt_cached_errno_set(int argc, VALUE *argv, VALUE self) {
7766
8319
  }
7767
8320
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7768
8321
  if (!SWIG_IsOK(res1)) {
7769
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_errno" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8322
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_errno", 1, self ));
7770
8323
  }
7771
8324
  arg1 = (struct memcached_server_st *)(argp1);
7772
8325
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
7773
8326
  if (!SWIG_IsOK(ecode2)) {
7774
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cached_errno" "', argument " "2"" of type '" "int""'");
8327
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","cached_errno", 2, argv[0] ));
7775
8328
  }
7776
8329
  arg2 = (int)(val2);
7777
8330
  if (arg1) (arg1)->cached_errno = arg2;
@@ -7795,7 +8348,7 @@ _wrap_MemcachedServerSt_cached_errno_get(int argc, VALUE *argv, VALUE self) {
7795
8348
  }
7796
8349
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7797
8350
  if (!SWIG_IsOK(res1)) {
7798
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cached_errno" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8351
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_errno", 1, self ));
7799
8352
  }
7800
8353
  arg1 = (struct memcached_server_st *)(argp1);
7801
8354
  result = (int) ((arg1)->cached_errno);
@@ -7820,12 +8373,12 @@ _wrap_MemcachedServerSt_cursor_active_set(int argc, VALUE *argv, VALUE self) {
7820
8373
  }
7821
8374
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7822
8375
  if (!SWIG_IsOK(res1)) {
7823
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cursor_active" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8376
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cursor_active", 1, self ));
7824
8377
  }
7825
8378
  arg1 = (struct memcached_server_st *)(argp1);
7826
8379
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
7827
8380
  if (!SWIG_IsOK(ecode2)) {
7828
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cursor_active" "', argument " "2"" of type '" "unsigned int""'");
8381
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","cursor_active", 2, argv[0] ));
7829
8382
  }
7830
8383
  arg2 = (unsigned int)(val2);
7831
8384
  if (arg1) (arg1)->cursor_active = arg2;
@@ -7849,7 +8402,7 @@ _wrap_MemcachedServerSt_cursor_active_get(int argc, VALUE *argv, VALUE self) {
7849
8402
  }
7850
8403
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7851
8404
  if (!SWIG_IsOK(res1)) {
7852
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cursor_active" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8405
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cursor_active", 1, self ));
7853
8406
  }
7854
8407
  arg1 = (struct memcached_server_st *)(argp1);
7855
8408
  result = (unsigned int) ((arg1)->cursor_active);
@@ -7874,14 +8427,14 @@ _wrap_MemcachedServerSt_write_buffer_set(int argc, VALUE *argv, VALUE self) {
7874
8427
  }
7875
8428
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7876
8429
  if (!SWIG_IsOK(res1)) {
7877
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write_buffer" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8430
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer", 1, self ));
7878
8431
  }
7879
8432
  arg1 = (struct memcached_server_st *)(argp1);
7880
8433
  res2 = SWIG_AsCharArray(argv[0], temp2, 8196);
7881
8434
  if (!SWIG_IsOK(res2)) {
7882
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "write_buffer" "', argument " "2"" of type '" "char [8196]""'");
8435
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [8196]","write_buffer", 2, argv[0] ));
7883
8436
  }
7884
- arg2 = temp2;
8437
+ arg2 = (char *)(temp2);
7885
8438
  if (arg2) memcpy(arg1->write_buffer,arg2,8196*sizeof(char));
7886
8439
  else memset(arg1->write_buffer,0,8196*sizeof(char));
7887
8440
  return Qnil;
@@ -7903,7 +8456,7 @@ _wrap_MemcachedServerSt_write_buffer_get(int argc, VALUE *argv, VALUE self) {
7903
8456
  }
7904
8457
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7905
8458
  if (!SWIG_IsOK(res1)) {
7906
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write_buffer" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8459
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer", 1, self ));
7907
8460
  }
7908
8461
  arg1 = (struct memcached_server_st *)(argp1);
7909
8462
  result = (char *)(char *) ((arg1)->write_buffer);
@@ -7934,12 +8487,12 @@ _wrap_MemcachedServerSt_write_buffer_offset_set(int argc, VALUE *argv, VALUE sel
7934
8487
  }
7935
8488
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7936
8489
  if (!SWIG_IsOK(res1)) {
7937
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write_buffer_offset" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8490
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer_offset", 1, self ));
7938
8491
  }
7939
8492
  arg1 = (struct memcached_server_st *)(argp1);
7940
8493
  ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
7941
8494
  if (!SWIG_IsOK(ecode2)) {
7942
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "write_buffer_offset" "', argument " "2"" of type '" "size_t""'");
8495
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","write_buffer_offset", 2, argv[0] ));
7943
8496
  }
7944
8497
  arg2 = (size_t)(val2);
7945
8498
  if (arg1) (arg1)->write_buffer_offset = arg2;
@@ -7963,7 +8516,7 @@ _wrap_MemcachedServerSt_write_buffer_offset_get(int argc, VALUE *argv, VALUE sel
7963
8516
  }
7964
8517
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7965
8518
  if (!SWIG_IsOK(res1)) {
7966
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "write_buffer_offset" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8519
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer_offset", 1, self ));
7967
8520
  }
7968
8521
  arg1 = (struct memcached_server_st *)(argp1);
7969
8522
  result = ((arg1)->write_buffer_offset);
@@ -7988,14 +8541,14 @@ _wrap_MemcachedServerSt_read_buffer_set(int argc, VALUE *argv, VALUE self) {
7988
8541
  }
7989
8542
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
7990
8543
  if (!SWIG_IsOK(res1)) {
7991
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_buffer" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8544
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer", 1, self ));
7992
8545
  }
7993
8546
  arg1 = (struct memcached_server_st *)(argp1);
7994
8547
  res2 = SWIG_AsCharArray(argv[0], temp2, 8196);
7995
8548
  if (!SWIG_IsOK(res2)) {
7996
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "read_buffer" "', argument " "2"" of type '" "char [8196]""'");
8549
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [8196]","read_buffer", 2, argv[0] ));
7997
8550
  }
7998
- arg2 = temp2;
8551
+ arg2 = (char *)(temp2);
7999
8552
  if (arg2) memcpy(arg1->read_buffer,arg2,8196*sizeof(char));
8000
8553
  else memset(arg1->read_buffer,0,8196*sizeof(char));
8001
8554
  return Qnil;
@@ -8017,7 +8570,7 @@ _wrap_MemcachedServerSt_read_buffer_get(int argc, VALUE *argv, VALUE self) {
8017
8570
  }
8018
8571
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8019
8572
  if (!SWIG_IsOK(res1)) {
8020
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_buffer" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8573
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer", 1, self ));
8021
8574
  }
8022
8575
  arg1 = (struct memcached_server_st *)(argp1);
8023
8576
  result = (char *)(char *) ((arg1)->read_buffer);
@@ -8048,12 +8601,12 @@ _wrap_MemcachedServerSt_read_data_length_set(int argc, VALUE *argv, VALUE self)
8048
8601
  }
8049
8602
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8050
8603
  if (!SWIG_IsOK(res1)) {
8051
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_data_length" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8604
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_data_length", 1, self ));
8052
8605
  }
8053
8606
  arg1 = (struct memcached_server_st *)(argp1);
8054
8607
  ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
8055
8608
  if (!SWIG_IsOK(ecode2)) {
8056
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "read_data_length" "', argument " "2"" of type '" "size_t""'");
8609
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","read_data_length", 2, argv[0] ));
8057
8610
  }
8058
8611
  arg2 = (size_t)(val2);
8059
8612
  if (arg1) (arg1)->read_data_length = arg2;
@@ -8077,7 +8630,7 @@ _wrap_MemcachedServerSt_read_data_length_get(int argc, VALUE *argv, VALUE self)
8077
8630
  }
8078
8631
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8079
8632
  if (!SWIG_IsOK(res1)) {
8080
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_data_length" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8633
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_data_length", 1, self ));
8081
8634
  }
8082
8635
  arg1 = (struct memcached_server_st *)(argp1);
8083
8636
  result = ((arg1)->read_data_length);
@@ -8102,12 +8655,12 @@ _wrap_MemcachedServerSt_read_buffer_length_set(int argc, VALUE *argv, VALUE self
8102
8655
  }
8103
8656
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8104
8657
  if (!SWIG_IsOK(res1)) {
8105
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_buffer_length" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8658
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer_length", 1, self ));
8106
8659
  }
8107
8660
  arg1 = (struct memcached_server_st *)(argp1);
8108
8661
  ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
8109
8662
  if (!SWIG_IsOK(ecode2)) {
8110
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "read_buffer_length" "', argument " "2"" of type '" "size_t""'");
8663
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","read_buffer_length", 2, argv[0] ));
8111
8664
  }
8112
8665
  arg2 = (size_t)(val2);
8113
8666
  if (arg1) (arg1)->read_buffer_length = arg2;
@@ -8131,7 +8684,7 @@ _wrap_MemcachedServerSt_read_buffer_length_get(int argc, VALUE *argv, VALUE self
8131
8684
  }
8132
8685
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8133
8686
  if (!SWIG_IsOK(res1)) {
8134
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_buffer_length" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8687
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer_length", 1, self ));
8135
8688
  }
8136
8689
  arg1 = (struct memcached_server_st *)(argp1);
8137
8690
  result = ((arg1)->read_buffer_length);
@@ -8157,18 +8710,18 @@ _wrap_MemcachedServerSt_read_ptr_set(int argc, VALUE *argv, VALUE self) {
8157
8710
  }
8158
8711
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8159
8712
  if (!SWIG_IsOK(res1)) {
8160
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_ptr" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8713
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_ptr", 1, self ));
8161
8714
  }
8162
8715
  arg1 = (struct memcached_server_st *)(argp1);
8163
8716
  res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
8164
8717
  if (!SWIG_IsOK(res2)) {
8165
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "read_ptr" "', argument " "2"" of type '" "char *""'");
8718
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","read_ptr", 2, argv[0] ));
8166
8719
  }
8167
- arg2 = buf2;
8720
+ arg2 = (char *)(buf2);
8168
8721
  if (arg1->read_ptr) free((char*)arg1->read_ptr);
8169
8722
  if (arg2) {
8170
- size_t size = strlen(arg2) + 1;
8171
- arg1->read_ptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
8723
+ size_t size = strlen((const char *)(arg2)) + 1;
8724
+ arg1->read_ptr = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
8172
8725
  } else {
8173
8726
  arg1->read_ptr = 0;
8174
8727
  }
@@ -8193,11 +8746,11 @@ _wrap_MemcachedServerSt_read_ptr_get(int argc, VALUE *argv, VALUE self) {
8193
8746
  }
8194
8747
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8195
8748
  if (!SWIG_IsOK(res1)) {
8196
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_ptr" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8749
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_ptr", 1, self ));
8197
8750
  }
8198
8751
  arg1 = (struct memcached_server_st *)(argp1);
8199
8752
  result = (char *) ((arg1)->read_ptr);
8200
- vresult = SWIG_FromCharPtr(result);
8753
+ vresult = SWIG_FromCharPtr((const char *)result);
8201
8754
  return vresult;
8202
8755
  fail:
8203
8756
  return Qnil;
@@ -8218,12 +8771,12 @@ _wrap_MemcachedServerSt_sockaddr_inited_set(int argc, VALUE *argv, VALUE self) {
8218
8771
  }
8219
8772
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8220
8773
  if (!SWIG_IsOK(res1)) {
8221
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sockaddr_inited" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8774
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","sockaddr_inited", 1, self ));
8222
8775
  }
8223
8776
  arg1 = (struct memcached_server_st *)(argp1);
8224
8777
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
8225
8778
  if (!SWIG_IsOK(ecode2)) {
8226
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "sockaddr_inited" "', argument " "2"" of type '" "memcached_allocated""'");
8779
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_allocated","sockaddr_inited", 2, argv[0] ));
8227
8780
  }
8228
8781
  arg2 = (memcached_allocated)(val2);
8229
8782
  if (arg1) (arg1)->sockaddr_inited = arg2;
@@ -8247,7 +8800,7 @@ _wrap_MemcachedServerSt_sockaddr_inited_get(int argc, VALUE *argv, VALUE self) {
8247
8800
  }
8248
8801
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8249
8802
  if (!SWIG_IsOK(res1)) {
8250
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sockaddr_inited" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8803
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","sockaddr_inited", 1, self ));
8251
8804
  }
8252
8805
  arg1 = (struct memcached_server_st *)(argp1);
8253
8806
  result = (memcached_allocated) ((arg1)->sockaddr_inited);
@@ -8272,12 +8825,12 @@ _wrap_MemcachedServerSt_address_info_set(int argc, VALUE *argv, VALUE self) {
8272
8825
  }
8273
8826
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8274
8827
  if (!SWIG_IsOK(res1)) {
8275
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "address_info" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8828
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","address_info", 1, self ));
8276
8829
  }
8277
8830
  arg1 = (struct memcached_server_st *)(argp1);
8278
8831
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_addrinfo, SWIG_POINTER_DISOWN | 0 );
8279
8832
  if (!SWIG_IsOK(res2)) {
8280
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "address_info" "', argument " "2"" of type '" "struct addrinfo *""'");
8833
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct addrinfo *","address_info", 2, argv[0] ));
8281
8834
  }
8282
8835
  arg2 = (struct addrinfo *)(argp2);
8283
8836
  if (arg1) (arg1)->address_info = arg2;
@@ -8301,7 +8854,7 @@ _wrap_MemcachedServerSt_address_info_get(int argc, VALUE *argv, VALUE self) {
8301
8854
  }
8302
8855
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8303
8856
  if (!SWIG_IsOK(res1)) {
8304
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "address_info" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8857
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","address_info", 1, self ));
8305
8858
  }
8306
8859
  arg1 = (struct memcached_server_st *)(argp1);
8307
8860
  result = (struct addrinfo *) ((arg1)->address_info);
@@ -8326,12 +8879,12 @@ _wrap_MemcachedServerSt_type_set(int argc, VALUE *argv, VALUE self) {
8326
8879
  }
8327
8880
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8328
8881
  if (!SWIG_IsOK(res1)) {
8329
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "type" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8882
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","type", 1, self ));
8330
8883
  }
8331
8884
  arg1 = (struct memcached_server_st *)(argp1);
8332
8885
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
8333
8886
  if (!SWIG_IsOK(ecode2)) {
8334
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "type" "', argument " "2"" of type '" "memcached_connection""'");
8887
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_connection","type", 2, argv[0] ));
8335
8888
  }
8336
8889
  arg2 = (memcached_connection)(val2);
8337
8890
  if (arg1) (arg1)->type = arg2;
@@ -8355,7 +8908,7 @@ _wrap_MemcachedServerSt_type_get(int argc, VALUE *argv, VALUE self) {
8355
8908
  }
8356
8909
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8357
8910
  if (!SWIG_IsOK(res1)) {
8358
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "type" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8911
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","type", 1, self ));
8359
8912
  }
8360
8913
  arg1 = (struct memcached_server_st *)(argp1);
8361
8914
  result = (memcached_connection) ((arg1)->type);
@@ -8380,12 +8933,12 @@ _wrap_MemcachedServerSt_major_version_set(int argc, VALUE *argv, VALUE self) {
8380
8933
  }
8381
8934
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8382
8935
  if (!SWIG_IsOK(res1)) {
8383
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "major_version" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8936
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","major_version", 1, self ));
8384
8937
  }
8385
8938
  arg1 = (struct memcached_server_st *)(argp1);
8386
8939
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
8387
8940
  if (!SWIG_IsOK(ecode2)) {
8388
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "major_version" "', argument " "2"" of type '" "uint8_t""'");
8941
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","major_version", 2, argv[0] ));
8389
8942
  }
8390
8943
  arg2 = (uint8_t)(val2);
8391
8944
  if (arg1) (arg1)->major_version = arg2;
@@ -8409,7 +8962,7 @@ _wrap_MemcachedServerSt_major_version_get(int argc, VALUE *argv, VALUE self) {
8409
8962
  }
8410
8963
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8411
8964
  if (!SWIG_IsOK(res1)) {
8412
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "major_version" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8965
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","major_version", 1, self ));
8413
8966
  }
8414
8967
  arg1 = (struct memcached_server_st *)(argp1);
8415
8968
  result = ((arg1)->major_version);
@@ -8434,12 +8987,12 @@ _wrap_MemcachedServerSt_minor_version_set(int argc, VALUE *argv, VALUE self) {
8434
8987
  }
8435
8988
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8436
8989
  if (!SWIG_IsOK(res1)) {
8437
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "minor_version" "', argument " "1"" of type '" "struct memcached_server_st *""'");
8990
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","minor_version", 1, self ));
8438
8991
  }
8439
8992
  arg1 = (struct memcached_server_st *)(argp1);
8440
8993
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
8441
8994
  if (!SWIG_IsOK(ecode2)) {
8442
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "minor_version" "', argument " "2"" of type '" "uint8_t""'");
8995
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","minor_version", 2, argv[0] ));
8443
8996
  }
8444
8997
  arg2 = (uint8_t)(val2);
8445
8998
  if (arg1) (arg1)->minor_version = arg2;
@@ -8463,7 +9016,7 @@ _wrap_MemcachedServerSt_minor_version_get(int argc, VALUE *argv, VALUE self) {
8463
9016
  }
8464
9017
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8465
9018
  if (!SWIG_IsOK(res1)) {
8466
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "minor_version" "', argument " "1"" of type '" "struct memcached_server_st *""'");
9019
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","minor_version", 1, self ));
8467
9020
  }
8468
9021
  arg1 = (struct memcached_server_st *)(argp1);
8469
9022
  result = ((arg1)->minor_version);
@@ -8488,12 +9041,12 @@ _wrap_MemcachedServerSt_micro_version_set(int argc, VALUE *argv, VALUE self) {
8488
9041
  }
8489
9042
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8490
9043
  if (!SWIG_IsOK(res1)) {
8491
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "micro_version" "', argument " "1"" of type '" "struct memcached_server_st *""'");
9044
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","micro_version", 1, self ));
8492
9045
  }
8493
9046
  arg1 = (struct memcached_server_st *)(argp1);
8494
9047
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
8495
9048
  if (!SWIG_IsOK(ecode2)) {
8496
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "micro_version" "', argument " "2"" of type '" "uint8_t""'");
9049
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","micro_version", 2, argv[0] ));
8497
9050
  }
8498
9051
  arg2 = (uint8_t)(val2);
8499
9052
  if (arg1) (arg1)->micro_version = arg2;
@@ -8517,7 +9070,7 @@ _wrap_MemcachedServerSt_micro_version_get(int argc, VALUE *argv, VALUE self) {
8517
9070
  }
8518
9071
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8519
9072
  if (!SWIG_IsOK(res1)) {
8520
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "micro_version" "', argument " "1"" of type '" "struct memcached_server_st *""'");
9073
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","micro_version", 1, self ));
8521
9074
  }
8522
9075
  arg1 = (struct memcached_server_st *)(argp1);
8523
9076
  result = ((arg1)->micro_version);
@@ -8542,12 +9095,12 @@ _wrap_MemcachedServerSt_count_set(int argc, VALUE *argv, VALUE self) {
8542
9095
  }
8543
9096
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8544
9097
  if (!SWIG_IsOK(res1)) {
8545
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "count" "', argument " "1"" of type '" "struct memcached_server_st *""'");
9098
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","count", 1, self ));
8546
9099
  }
8547
9100
  arg1 = (struct memcached_server_st *)(argp1);
8548
9101
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
8549
9102
  if (!SWIG_IsOK(ecode2)) {
8550
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "count" "', argument " "2"" of type '" "uint16_t""'");
9103
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","count", 2, argv[0] ));
8551
9104
  }
8552
9105
  arg2 = (uint16_t)(val2);
8553
9106
  if (arg1) (arg1)->count = arg2;
@@ -8571,7 +9124,7 @@ _wrap_MemcachedServerSt_count_get(int argc, VALUE *argv, VALUE self) {
8571
9124
  }
8572
9125
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8573
9126
  if (!SWIG_IsOK(res1)) {
8574
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "count" "', argument " "1"" of type '" "struct memcached_server_st *""'");
9127
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","count", 1, self ));
8575
9128
  }
8576
9129
  arg1 = (struct memcached_server_st *)(argp1);
8577
9130
  result = ((arg1)->count);
@@ -8594,7 +9147,7 @@ _wrap_MemcachedServerSt_next_retry_set(int argc, VALUE *argv, VALUE self) {
8594
9147
  }
8595
9148
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8596
9149
  if (!SWIG_IsOK(res1)) {
8597
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_retry" "', argument " "1"" of type '" "struct memcached_server_st *""'");
9150
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","next_retry", 1, self ));
8598
9151
  }
8599
9152
  arg1 = (struct memcached_server_st *)(argp1);
8600
9153
  {
@@ -8624,7 +9177,7 @@ _wrap_MemcachedServerSt_next_retry_get(int argc, VALUE *argv, VALUE self) {
8624
9177
  }
8625
9178
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8626
9179
  if (!SWIG_IsOK(res1)) {
8627
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_retry" "', argument " "1"" of type '" "struct memcached_server_st *""'");
9180
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","next_retry", 1, self ));
8628
9181
  }
8629
9182
  arg1 = (struct memcached_server_st *)(argp1);
8630
9183
  result = ((arg1)->next_retry);
@@ -8651,12 +9204,12 @@ _wrap_MemcachedServerSt_root_set(int argc, VALUE *argv, VALUE self) {
8651
9204
  }
8652
9205
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8653
9206
  if (!SWIG_IsOK(res1)) {
8654
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "root" "', argument " "1"" of type '" "struct memcached_server_st *""'");
9207
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","root", 1, self ));
8655
9208
  }
8656
9209
  arg1 = (struct memcached_server_st *)(argp1);
8657
9210
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_st, SWIG_POINTER_DISOWN | 0 );
8658
9211
  if (!SWIG_IsOK(res2)) {
8659
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "root" "', argument " "2"" of type '" "memcached_st *""'");
9212
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st *","root", 2, argv[0] ));
8660
9213
  }
8661
9214
  arg2 = (memcached_st *)(argp2);
8662
9215
  if (arg1) (arg1)->root = arg2;
@@ -8680,7 +9233,7 @@ _wrap_MemcachedServerSt_root_get(int argc, VALUE *argv, VALUE self) {
8680
9233
  }
8681
9234
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
8682
9235
  if (!SWIG_IsOK(res1)) {
8683
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "root" "', argument " "1"" of type '" "struct memcached_server_st *""'");
9236
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","root", 1, self ));
8684
9237
  }
8685
9238
  arg1 = (struct memcached_server_st *)(argp1);
8686
9239
  result = (memcached_st *) ((arg1)->root);
@@ -8779,7 +9332,7 @@ _wrap_memcached_get_rvalue(int argc, VALUE *argv, VALUE self) {
8779
9332
  }
8780
9333
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
8781
9334
  if (!SWIG_IsOK(res1)) {
8782
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_get_rvalue" "', argument " "1"" of type '" "memcached_st *""'");
9335
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_rvalue", 1, argv[0] ));
8783
9336
  }
8784
9337
  arg1 = (memcached_st *)(argp1);
8785
9338
  {
@@ -8835,7 +9388,7 @@ _wrap_memcached_fetch_rvalue(int argc, VALUE *argv, VALUE self) {
8835
9388
  }
8836
9389
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
8837
9390
  if (!SWIG_IsOK(res1)) {
8838
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_fetch_rvalue" "', argument " "1"" of type '" "memcached_st *""'");
9391
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_rvalue", 1, argv[0] ));
8839
9392
  }
8840
9393
  arg1 = (memcached_st *)(argp1);
8841
9394
  result = (VALUE)memcached_fetch_rvalue(arg1,arg2,arg3,arg4,arg5);
@@ -8886,19 +9439,19 @@ _wrap_memcached_stat_get_rvalue(int argc, VALUE *argv, VALUE self) {
8886
9439
  }
8887
9440
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
8888
9441
  if (!SWIG_IsOK(res1)) {
8889
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_stat_get_rvalue" "', argument " "1"" of type '" "memcached_st *""'");
9442
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_get_rvalue", 1, argv[0] ));
8890
9443
  }
8891
9444
  arg1 = (memcached_st *)(argp1);
8892
9445
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
8893
9446
  if (!SWIG_IsOK(res2)) {
8894
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_stat_get_rvalue" "', argument " "2"" of type '" "memcached_stat_st *""'");
9447
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_rvalue", 2, argv[1] ));
8895
9448
  }
8896
9449
  arg2 = (memcached_stat_st *)(argp2);
8897
9450
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
8898
9451
  if (!SWIG_IsOK(res3)) {
8899
- SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "memcached_stat_get_rvalue" "', argument " "3"" of type '" "char *""'");
9452
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","memcached_stat_get_rvalue", 3, argv[2] ));
8900
9453
  }
8901
- arg3 = buf3;
9454
+ arg3 = (char *)(buf3);
8902
9455
  result = (VALUE)memcached_stat_get_rvalue(arg1,arg2,arg3,arg4);
8903
9456
  vresult = result;
8904
9457
  if (SWIG_IsTmpObj(res4)) {
@@ -8931,12 +9484,12 @@ _wrap_memcached_select_server_at(int argc, VALUE *argv, VALUE self) {
8931
9484
  }
8932
9485
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
8933
9486
  if (!SWIG_IsOK(res1)) {
8934
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_select_server_at" "', argument " "1"" of type '" "memcached_st *""'");
9487
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_select_server_at", 1, argv[0] ));
8935
9488
  }
8936
9489
  arg1 = (memcached_st *)(argp1);
8937
9490
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
8938
9491
  if (!SWIG_IsOK(ecode2)) {
8939
- SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "memcached_select_server_at" "', argument " "2"" of type '" "int""'");
9492
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","memcached_select_server_at", 2, argv[1] ));
8940
9493
  }
8941
9494
  arg2 = (int)(val2);
8942
9495
  result = (memcached_server_st *)memcached_select_server_at(arg1,arg2);
@@ -8966,17 +9519,17 @@ _wrap_memcached_select_stat_at(int argc, VALUE *argv, VALUE self) {
8966
9519
  }
8967
9520
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
8968
9521
  if (!SWIG_IsOK(res1)) {
8969
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_select_stat_at" "', argument " "1"" of type '" "memcached_st *""'");
9522
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_select_stat_at", 1, argv[0] ));
8970
9523
  }
8971
9524
  arg1 = (memcached_st *)(argp1);
8972
9525
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
8973
9526
  if (!SWIG_IsOK(res2)) {
8974
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "memcached_select_stat_at" "', argument " "2"" of type '" "memcached_stat_st *""'");
9527
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_select_stat_at", 2, argv[1] ));
8975
9528
  }
8976
9529
  arg2 = (memcached_stat_st *)(argp2);
8977
9530
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
8978
9531
  if (!SWIG_IsOK(ecode3)) {
8979
- SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "memcached_select_stat_at" "', argument " "3"" of type '" "int""'");
9532
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","memcached_select_stat_at", 3, argv[2] ));
8980
9533
  }
8981
9534
  arg3 = (int)(val3);
8982
9535
  result = (memcached_stat_st *)memcached_select_stat_at(arg1,arg2,arg3);
@@ -9002,7 +9555,7 @@ _wrap_memcached_generate_hash(int argc, VALUE *argv, VALUE self) {
9002
9555
  }
9003
9556
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
9004
9557
  if (!SWIG_IsOK(res1)) {
9005
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "memcached_generate_hash" "', argument " "1"" of type '" "memcached_st *""'");
9558
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_generate_hash", 1, argv[0] ));
9006
9559
  }
9007
9560
  arg1 = (memcached_st *)(argp1);
9008
9561
  {
@@ -9029,22 +9582,23 @@ static swig_type_info _swigt__p_memcached_callback = {"_p_memcached_callback", "
9029
9582
  static swig_type_info _swigt__p_memcached_cleanup_func = {"_p_memcached_cleanup_func", "memcached_cleanup_func *", 0, 0, (void*)0, 0};
9030
9583
  static swig_type_info _swigt__p_memcached_clone_func = {"_p_memcached_clone_func", "memcached_clone_func *", 0, 0, (void*)0, 0};
9031
9584
  static swig_type_info _swigt__p_memcached_connection = {"_p_memcached_connection", "enum memcached_connection *|memcached_connection *", 0, 0, (void*)0, 0};
9585
+ 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};
9586
+ static swig_type_info _swigt__p_memcached_execute_function = {"_p_memcached_execute_function", "memcached_execute_function *", 0, 0, (void*)0, 0};
9032
9587
  static swig_type_info _swigt__p_memcached_free_function = {"_p_memcached_free_function", "memcached_free_function *", 0, 0, (void*)0, 0};
9033
9588
  static swig_type_info _swigt__p_memcached_hash = {"_p_memcached_hash", "enum memcached_hash *|memcached_hash *", 0, 0, (void*)0, 0};
9034
9589
  static swig_type_info _swigt__p_memcached_malloc_function = {"_p_memcached_malloc_function", "memcached_malloc_function *", 0, 0, (void*)0, 0};
9035
9590
  static swig_type_info _swigt__p_memcached_realloc_function = {"_p_memcached_realloc_function", "memcached_realloc_function *", 0, 0, (void*)0, 0};
9036
- static swig_type_info _swigt__p_memcached_result_st = {"_p_memcached_result_st", "memcached_result_st *", 0, 0, (void*)0, 0};
9591
+ 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};
9037
9592
  static swig_type_info _swigt__p_memcached_return = {"_p_memcached_return", "enum memcached_return *|memcached_return *", 0, 0, (void*)0, 0};
9038
9593
  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};
9039
9594
  static swig_type_info _swigt__p_memcached_server_function = {"_p_memcached_server_function", "memcached_server_function *", 0, 0, (void*)0, 0};
9040
- static swig_type_info _swigt__p_memcached_server_st = {"_p_memcached_server_st", "memcached_server_st *", 0, 0, (void*)0, 0};
9041
- static swig_type_info _swigt__p_memcached_st = {"_p_memcached_st", "memcached_st *", 0, 0, (void*)0, 0};
9042
- static swig_type_info _swigt__p_memcached_stat_st = {"_p_memcached_stat_st", "memcached_stat_st *", 0, 0, (void*)0, 0};
9595
+ 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};
9596
+ static swig_type_info _swigt__p_memcached_st = {"_p_memcached_st", "memcached_st *|struct memcached_st *", 0, 0, (void*)0, 0};
9597
+ 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};
9043
9598
  static swig_type_info _swigt__p_memcached_string_st = {"_p_memcached_string_st", "memcached_string_st *", 0, 0, (void*)0, 0};
9044
9599
  static swig_type_info _swigt__p_memcached_trigger_delete_key = {"_p_memcached_trigger_delete_key", "memcached_trigger_delete_key *", 0, 0, (void*)0, 0};
9045
9600
  static swig_type_info _swigt__p_memcached_trigger_key = {"_p_memcached_trigger_key", "memcached_trigger_key *", 0, 0, (void*)0, 0};
9046
9601
  static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
9047
- static swig_type_info _swigt__p_p_f_p_memcached_st_p_memcached_result_st_p_void__unsigned_int = {"_p_p_f_p_memcached_st_p_memcached_result_st_p_void__unsigned_int", "unsigned int (**)(memcached_st *,memcached_result_st *,void *)", 0, 0, (void*)0, 0};
9048
9602
  static swig_type_info _swigt__p_size_t = {"_p_size_t", "size_t *", 0, 0, (void*)0, 0};
9049
9603
  static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, (void*)0, 0};
9050
9604
  static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *", 0, 0, (void*)0, 0};
@@ -9062,6 +9616,8 @@ static swig_type_info *swig_type_initial[] = {
9062
9616
  &_swigt__p_memcached_cleanup_func,
9063
9617
  &_swigt__p_memcached_clone_func,
9064
9618
  &_swigt__p_memcached_connection,
9619
+ &_swigt__p_memcached_continuum_item_st,
9620
+ &_swigt__p_memcached_execute_function,
9065
9621
  &_swigt__p_memcached_free_function,
9066
9622
  &_swigt__p_memcached_hash,
9067
9623
  &_swigt__p_memcached_malloc_function,
@@ -9077,7 +9633,6 @@ static swig_type_info *swig_type_initial[] = {
9077
9633
  &_swigt__p_memcached_trigger_delete_key,
9078
9634
  &_swigt__p_memcached_trigger_key,
9079
9635
  &_swigt__p_p_char,
9080
- &_swigt__p_p_f_p_memcached_st_p_memcached_result_st_p_void__unsigned_int,
9081
9636
  &_swigt__p_size_t,
9082
9637
  &_swigt__p_time_t,
9083
9638
  &_swigt__p_uint32_t,
@@ -9095,6 +9650,8 @@ static swig_cast_info _swigc__p_memcached_callback[] = { {&_swigt__p_memcached_
9095
9650
  static swig_cast_info _swigc__p_memcached_cleanup_func[] = { {&_swigt__p_memcached_cleanup_func, 0, 0, 0},{0, 0, 0, 0}};
9096
9651
  static swig_cast_info _swigc__p_memcached_clone_func[] = { {&_swigt__p_memcached_clone_func, 0, 0, 0},{0, 0, 0, 0}};
9097
9652
  static swig_cast_info _swigc__p_memcached_connection[] = { {&_swigt__p_memcached_connection, 0, 0, 0},{0, 0, 0, 0}};
9653
+ static swig_cast_info _swigc__p_memcached_continuum_item_st[] = { {&_swigt__p_memcached_continuum_item_st, 0, 0, 0},{0, 0, 0, 0}};
9654
+ static swig_cast_info _swigc__p_memcached_execute_function[] = { {&_swigt__p_memcached_execute_function, 0, 0, 0},{0, 0, 0, 0}};
9098
9655
  static swig_cast_info _swigc__p_memcached_free_function[] = { {&_swigt__p_memcached_free_function, 0, 0, 0},{0, 0, 0, 0}};
9099
9656
  static swig_cast_info _swigc__p_memcached_hash[] = { {&_swigt__p_memcached_hash, 0, 0, 0},{0, 0, 0, 0}};
9100
9657
  static swig_cast_info _swigc__p_memcached_malloc_function[] = { {&_swigt__p_memcached_malloc_function, 0, 0, 0},{0, 0, 0, 0}};
@@ -9110,7 +9667,6 @@ static swig_cast_info _swigc__p_memcached_string_st[] = { {&_swigt__p_memcached
9110
9667
  static swig_cast_info _swigc__p_memcached_trigger_delete_key[] = { {&_swigt__p_memcached_trigger_delete_key, 0, 0, 0},{0, 0, 0, 0}};
9111
9668
  static swig_cast_info _swigc__p_memcached_trigger_key[] = { {&_swigt__p_memcached_trigger_key, 0, 0, 0},{0, 0, 0, 0}};
9112
9669
  static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
9113
- static swig_cast_info _swigc__p_p_f_p_memcached_st_p_memcached_result_st_p_void__unsigned_int[] = { {&_swigt__p_p_f_p_memcached_st_p_memcached_result_st_p_void__unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
9114
9670
  static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}};
9115
9671
  static swig_cast_info _swigc__p_time_t[] = { {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}};
9116
9672
  static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -9128,6 +9684,8 @@ static swig_cast_info *swig_cast_initial[] = {
9128
9684
  _swigc__p_memcached_cleanup_func,
9129
9685
  _swigc__p_memcached_clone_func,
9130
9686
  _swigc__p_memcached_connection,
9687
+ _swigc__p_memcached_continuum_item_st,
9688
+ _swigc__p_memcached_execute_function,
9131
9689
  _swigc__p_memcached_free_function,
9132
9690
  _swigc__p_memcached_hash,
9133
9691
  _swigc__p_memcached_malloc_function,
@@ -9143,7 +9701,6 @@ static swig_cast_info *swig_cast_initial[] = {
9143
9701
  _swigc__p_memcached_trigger_delete_key,
9144
9702
  _swigc__p_memcached_trigger_key,
9145
9703
  _swigc__p_p_char,
9146
- _swigc__p_p_f_p_memcached_st_p_memcached_result_st_p_void__unsigned_int,
9147
9704
  _swigc__p_size_t,
9148
9705
  _swigc__p_time_t,
9149
9706
  _swigc__p_uint32_t,
@@ -9169,7 +9726,7 @@ static swig_cast_info *swig_cast_initial[] = {
9169
9726
  * structures together.
9170
9727
  *
9171
9728
  * The generated swig_type_info structures are assigned staticly to an initial
9172
- * array. We just loop though that array, and handle each type individually.
9729
+ * array. We just loop through that array, and handle each type individually.
9173
9730
  * First we lookup if this type has been already loaded, and if so, use the
9174
9731
  * loaded structure instead of the generated one. Then we have to fill in the
9175
9732
  * cast linked list. The cast data is initially stored in something like a
@@ -9207,32 +9764,49 @@ extern "C" {
9207
9764
  #define SWIGRUNTIME_DEBUG
9208
9765
  #endif
9209
9766
 
9767
+
9210
9768
  SWIGRUNTIME void
9211
9769
  SWIG_InitializeModule(void *clientdata) {
9212
9770
  size_t i;
9213
- swig_module_info *module_head;
9214
- static int init_run = 0;
9771
+ swig_module_info *module_head, *iter;
9772
+ int found;
9215
9773
 
9216
9774
  clientdata = clientdata;
9217
9775
 
9218
- if (init_run) return;
9219
- init_run = 1;
9220
-
9221
- /* Initialize the swig_module */
9222
- swig_module.type_initial = swig_type_initial;
9223
- swig_module.cast_initial = swig_cast_initial;
9776
+ /* check to see if the circular list has been setup, if not, set it up */
9777
+ if (swig_module.next==0) {
9778
+ /* Initialize the swig_module */
9779
+ swig_module.type_initial = swig_type_initial;
9780
+ swig_module.cast_initial = swig_cast_initial;
9781
+ swig_module.next = &swig_module;
9782
+ }
9224
9783
 
9225
9784
  /* Try and load any already created modules */
9226
9785
  module_head = SWIG_GetModule(clientdata);
9227
- if (module_head) {
9786
+ if (!module_head) {
9787
+ /* This is the first module loaded for this interpreter */
9788
+ /* so set the swig module into the interpreter */
9789
+ SWIG_SetModule(clientdata, &swig_module);
9790
+ module_head = &swig_module;
9791
+ } else {
9792
+ /* the interpreter has loaded a SWIG module, but has it loaded this one? */
9793
+ found=0;
9794
+ iter=module_head;
9795
+ do {
9796
+ if (iter==&swig_module) {
9797
+ found=1;
9798
+ break;
9799
+ }
9800
+ iter=iter->next;
9801
+ } while (iter!= module_head);
9802
+
9803
+ /* if the is found in the list, then all is done and we may leave */
9804
+ if (found) return;
9805
+ /* otherwise we must add out module into the list */
9228
9806
  swig_module.next = module_head->next;
9229
9807
  module_head->next = &swig_module;
9230
- } else {
9231
- /* This is the first module loaded */
9232
- swig_module.next = &swig_module;
9233
- SWIG_SetModule(clientdata, &swig_module);
9234
9808
  }
9235
-
9809
+
9236
9810
  /* Now work on filling in swig_module.types */
9237
9811
  #ifdef SWIGRUNTIME_DEBUG
9238
9812
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
@@ -9366,7 +9940,9 @@ SWIG_PropagateClientData(void) {
9366
9940
  }
9367
9941
  #endif
9368
9942
 
9943
+ /*
9369
9944
 
9945
+ */
9370
9946
  #ifdef __cplusplus
9371
9947
  extern "C"
9372
9948
  #endif
@@ -9383,7 +9959,19 @@ SWIGEXPORT void Init_rlibmemcached(void) {
9383
9959
 
9384
9960
  SWIG_RubyInitializeTrackings();
9385
9961
  rb_define_const(mRlibmemcached, "MEMCACHED_VERSION_STRING_LENGTH", SWIG_From_int((int)(12)));
9386
- rb_define_const(mRlibmemcached, "LIBMEMCACHED_VERSION_STRING", SWIG_FromCharPtr("0.19"));
9962
+
9963
+ cMemcachedContinuumItemSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedContinuumItemSt", rb_cObject);
9964
+ SWIG_TypeClientData(SWIGTYPE_p_memcached_continuum_item_st, (void *) &cMemcachedContinuumItemSt);
9965
+ rb_define_alloc_func(cMemcachedContinuumItemSt.klass, _wrap_MemcachedContinuumItemSt_allocate);
9966
+ rb_define_method(cMemcachedContinuumItemSt.klass, "initialize", _wrap_new_MemcachedContinuumItemSt, -1);
9967
+ rb_define_method(cMemcachedContinuumItemSt.klass, "index=", _wrap_MemcachedContinuumItemSt_index_set, -1);
9968
+ rb_define_method(cMemcachedContinuumItemSt.klass, "index", _wrap_MemcachedContinuumItemSt_index_get, -1);
9969
+ rb_define_method(cMemcachedContinuumItemSt.klass, "value=", _wrap_MemcachedContinuumItemSt_value_set, -1);
9970
+ rb_define_method(cMemcachedContinuumItemSt.klass, "value", _wrap_MemcachedContinuumItemSt_value_get, -1);
9971
+ cMemcachedContinuumItemSt.mark = 0;
9972
+ cMemcachedContinuumItemSt.destroy = (void (*)(void *)) free_memcached_continuum_item_st;
9973
+ cMemcachedContinuumItemSt.trackObjects = 0;
9974
+ rb_define_const(mRlibmemcached, "LIBMEMCACHED_VERSION_STRING", SWIG_FromCharPtr("0.20"));
9387
9975
 
9388
9976
  cMemcachedStatSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedStatSt", rb_cObject);
9389
9977
  SWIG_TypeClientData(SWIGTYPE_p_memcached_stat_st, (void *) &cMemcachedStatSt);
@@ -9421,10 +10009,10 @@ SWIGEXPORT void Init_rlibmemcached(void) {
9421
10009
  rb_define_method(cMemcachedStatSt.klass, "connection_structures", _wrap_MemcachedStatSt_connection_structures_get, -1);
9422
10010
  rb_define_method(cMemcachedStatSt.klass, "bytes=", _wrap_MemcachedStatSt_bytes_set, -1);
9423
10011
  rb_define_method(cMemcachedStatSt.klass, "bytes", _wrap_MemcachedStatSt_bytes_get, -1);
9424
- rb_define_method(cMemcachedStatSt.klass, "cmd=", _wrap_MemcachedStatSt_cmd_get_set, -1);
9425
- rb_define_method(cMemcachedStatSt.klass, "cmd", _wrap_MemcachedStatSt_cmd_get_get, -1);
9426
- rb_define_method(cMemcachedStatSt.klass, "cmd==", _wrap_MemcachedStatSt_cmd_set_set, -1);
9427
- rb_define_method(cMemcachedStatSt.klass, "cmd=", _wrap_MemcachedStatSt_cmd_set_get, -1);
10012
+ rb_define_method(cMemcachedStatSt.klass, "cmd_get=", _wrap_MemcachedStatSt_cmd_get_set, -1);
10013
+ rb_define_method(cMemcachedStatSt.klass, "cmd_get", _wrap_MemcachedStatSt_cmd_get_get, -1);
10014
+ rb_define_method(cMemcachedStatSt.klass, "cmd_set=", _wrap_MemcachedStatSt_cmd_set_set, -1);
10015
+ rb_define_method(cMemcachedStatSt.klass, "cmd_set", _wrap_MemcachedStatSt_cmd_set_get, -1);
9428
10016
  rb_define_method(cMemcachedStatSt.klass, "get_hits=", _wrap_MemcachedStatSt_get_hits_set, -1);
9429
10017
  rb_define_method(cMemcachedStatSt.klass, "get_hits", _wrap_MemcachedStatSt_get_hits_get, -1);
9430
10018
  rb_define_method(cMemcachedStatSt.klass, "get_misses=", _wrap_MemcachedStatSt_get_misses_set, -1);
@@ -9477,6 +10065,12 @@ SWIGEXPORT void Init_rlibmemcached(void) {
9477
10065
  rb_define_method(cMemcachedSt.klass, "user_data", _wrap_MemcachedSt_user_data_get, -1);
9478
10066
  rb_define_method(cMemcachedSt.klass, "wheel=", _wrap_MemcachedSt_wheel_set, -1);
9479
10067
  rb_define_method(cMemcachedSt.klass, "wheel", _wrap_MemcachedSt_wheel_get, -1);
10068
+ rb_define_method(cMemcachedSt.klass, "wheel_count=", _wrap_MemcachedSt_wheel_count_set, -1);
10069
+ rb_define_method(cMemcachedSt.klass, "wheel_count", _wrap_MemcachedSt_wheel_count_get, -1);
10070
+ rb_define_method(cMemcachedSt.klass, "continuum_count=", _wrap_MemcachedSt_continuum_count_set, -1);
10071
+ rb_define_method(cMemcachedSt.klass, "continuum_count", _wrap_MemcachedSt_continuum_count_get, -1);
10072
+ rb_define_method(cMemcachedSt.klass, "continuum=", _wrap_MemcachedSt_continuum_set, -1);
10073
+ rb_define_method(cMemcachedSt.klass, "continuum", _wrap_MemcachedSt_continuum_get, -1);
9480
10074
  rb_define_method(cMemcachedSt.klass, "on_clone=", _wrap_MemcachedSt_on_clone_set, -1);
9481
10075
  rb_define_method(cMemcachedSt.klass, "on_clone", _wrap_MemcachedSt_on_clone_get, -1);
9482
10076
  rb_define_method(cMemcachedSt.klass, "on_cleanup=", _wrap_MemcachedSt_on_cleanup_set, -1);
@@ -9535,8 +10129,12 @@ SWIGEXPORT void Init_rlibmemcached(void) {
9535
10129
  rb_define_const(mRlibmemcached, "MEMCACHED_MAX_KEY", SWIG_From_int((int)(251)));
9536
10130
  rb_define_const(mRlibmemcached, "MEMCACHED_MAX_BUFFER", SWIG_From_int((int)(8196)));
9537
10131
  rb_define_const(mRlibmemcached, "MEMCACHED_MAX_HOST_LENGTH", SWIG_From_int((int)(64)));
9538
- rb_define_const(mRlibmemcached, "MEMCACHED_WHEEL_SIZE", SWIG_From_int((int)(1024)));
10132
+ rb_define_const(mRlibmemcached, "MEMCACHED_MAX_HOST_SORT_LENGTH", SWIG_From_int((int)(86)));
10133
+ rb_define_const(mRlibmemcached, "MEMCACHED_POINTS_PER_SERVER", SWIG_From_int((int)(100)));
10134
+ rb_define_const(mRlibmemcached, "MEMCACHED_CONTINUUM_SIZE", SWIG_From_int((int)(100*100)));
9539
10135
  rb_define_const(mRlibmemcached, "MEMCACHED_STRIDE", SWIG_From_int((int)(4)));
10136
+ rb_define_const(mRlibmemcached, "MEMCACHED_DEFAULT_TIMEOUT", SWIG_From_int((int)(1000)));
10137
+ rb_define_const(mRlibmemcached, "MEMCACHED_CONTINUUM_ADDITION", SWIG_From_int((int)(10)));
9540
10138
  rb_define_const(mRlibmemcached, "MEMCACHED_SUCCESS", SWIG_From_int((int)(MEMCACHED_SUCCESS)));
9541
10139
  rb_define_const(mRlibmemcached, "MEMCACHED_FAILURE", SWIG_From_int((int)(MEMCACHED_FAILURE)));
9542
10140
  rb_define_const(mRlibmemcached, "MEMCACHED_HOST_LOOKUP_FAILURE", SWIG_From_int((int)(MEMCACHED_HOST_LOOKUP_FAILURE)));
@@ -9573,6 +10171,8 @@ SWIGEXPORT void Init_rlibmemcached(void) {
9573
10171
  rb_define_const(mRlibmemcached, "MEMCACHED_MAXIMUM_RETURN", SWIG_From_int((int)(MEMCACHED_MAXIMUM_RETURN)));
9574
10172
  rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_MODULA", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_MODULA)));
9575
10173
  rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_CONSISTENT", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT)));
10174
+ rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_CONSISTENT_WHEEL", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT_WHEEL)));
10175
+ rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA)));
9576
10176
  rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_NO_BLOCK", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_NO_BLOCK)));
9577
10177
  rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_TCP_NODELAY", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_TCP_NODELAY)));
9578
10178
  rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_HASH", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_HASH)));
@@ -9604,7 +10204,6 @@ SWIGEXPORT void Init_rlibmemcached(void) {
9604
10204
  rb_define_const(mRlibmemcached, "MEMCACHED_HASH_FNV1A_64", SWIG_From_int((int)(MEMCACHED_HASH_FNV1A_64)));
9605
10205
  rb_define_const(mRlibmemcached, "MEMCACHED_HASH_FNV1_32", SWIG_From_int((int)(MEMCACHED_HASH_FNV1_32)));
9606
10206
  rb_define_const(mRlibmemcached, "MEMCACHED_HASH_FNV1A_32", SWIG_From_int((int)(MEMCACHED_HASH_FNV1A_32)));
9607
- rb_define_const(mRlibmemcached, "MEMCACHED_HASH_KETAMA", SWIG_From_int((int)(MEMCACHED_HASH_KETAMA)));
9608
10207
  rb_define_const(mRlibmemcached, "MEMCACHED_HASH_HSIEH", SWIG_From_int((int)(MEMCACHED_HASH_HSIEH)));
9609
10208
  rb_define_const(mRlibmemcached, "MEMCACHED_HASH_MURMUR", SWIG_From_int((int)(MEMCACHED_HASH_MURMUR)));
9610
10209
  rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_UNKNOWN", SWIG_From_int((int)(MEMCACHED_CONNECTION_UNKNOWN)));