taglib-ruby 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ TagLib::MP4::CoverArtList ruby_array_to_taglib_cover_art_list(VALUE ary) {
44
44
  return result;
45
45
  }
46
46
  for (long i = 0; i < RARRAY_LEN(ary); i++) {
47
- VALUE e = RARRAY_PTR(ary)[i];
47
+ VALUE e = rb_ary_entry(ary, i);
48
48
  TagLib::MP4::CoverArt *c;
49
49
  SWIG_ConvertPtr(e, (void **) &c, SWIGTYPE_p_TagLib__MP4__CoverArt, 1);
50
50
  result.append(*c);
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.12
3
+ * Version 3.0.7
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
@@ -145,6 +145,19 @@ template <typename T> T SwigValueInit() {
145
145
  # define _SCL_SECURE_NO_DEPRECATE
146
146
  #endif
147
147
 
148
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
149
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
150
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
151
+ #endif
152
+
153
+ /* Intel's compiler complains if a variable which was never initialised is
154
+ * cast to void, which is a common idiom which we use to indicate that we
155
+ * are aware a variable isn't used. So we just silence that warning.
156
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
157
+ */
158
+ #ifdef __INTEL_COMPILER
159
+ # pragma warning disable 592
160
+ #endif
148
161
 
149
162
  /* -----------------------------------------------------------------------------
150
163
  * This section contains generic SWIG labels for method/variable
@@ -254,6 +267,19 @@ template <typename T> T SwigValueInit() {
254
267
  # define _SCL_SECURE_NO_DEPRECATE
255
268
  #endif
256
269
 
270
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
271
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
272
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
273
+ #endif
274
+
275
+ /* Intel's compiler complains if a variable which was never initialised is
276
+ * cast to void, which is a common idiom which we use to indicate that we
277
+ * are aware a variable isn't used. So we just silence that warning.
278
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
279
+ */
280
+ #ifdef __INTEL_COMPILER
281
+ # pragma warning disable 592
282
+ #endif
257
283
 
258
284
  /* -----------------------------------------------------------------------------
259
285
  * swigrun.swg
@@ -661,14 +687,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
661
687
  swig_module_info *iter = start;
662
688
  do {
663
689
  if (iter->size) {
664
- register size_t l = 0;
665
- register size_t r = iter->size - 1;
690
+ size_t l = 0;
691
+ size_t r = iter->size - 1;
666
692
  do {
667
693
  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
668
- register size_t i = (l + r) >> 1;
694
+ size_t i = (l + r) >> 1;
669
695
  const char *iname = iter->types[i]->name;
670
696
  if (iname) {
671
- register int compare = strcmp(name, iname);
697
+ int compare = strcmp(name, iname);
672
698
  if (compare == 0) {
673
699
  return iter->types[i];
674
700
  } else if (compare < 0) {
@@ -712,7 +738,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
712
738
  of the str field (the human readable name) */
713
739
  swig_module_info *iter = start;
714
740
  do {
715
- register size_t i = 0;
741
+ size_t i = 0;
716
742
  for (; i < iter->size; ++i) {
717
743
  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
718
744
  return iter->types[i];
@@ -731,10 +757,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
731
757
  SWIGRUNTIME char *
732
758
  SWIG_PackData(char *c, void *ptr, size_t sz) {
733
759
  static const char hex[17] = "0123456789abcdef";
734
- register const unsigned char *u = (unsigned char *) ptr;
735
- register const unsigned char *eu = u + sz;
760
+ const unsigned char *u = (unsigned char *) ptr;
761
+ const unsigned char *eu = u + sz;
736
762
  for (; u != eu; ++u) {
737
- register unsigned char uu = *u;
763
+ unsigned char uu = *u;
738
764
  *(c++) = hex[(uu & 0xf0) >> 4];
739
765
  *(c++) = hex[uu & 0xf];
740
766
  }
@@ -746,11 +772,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
746
772
  */
747
773
  SWIGRUNTIME const char *
748
774
  SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
749
- register unsigned char *u = (unsigned char *) ptr;
750
- register const unsigned char *eu = u + sz;
775
+ unsigned char *u = (unsigned char *) ptr;
776
+ const unsigned char *eu = u + sz;
751
777
  for (; u != eu; ++u) {
752
- register char d = *(c++);
753
- register unsigned char uu;
778
+ char d = *(c++);
779
+ unsigned char uu;
754
780
  if ((d >= '0') && (d <= '9'))
755
781
  uu = ((d - '0') << 4);
756
782
  else if ((d >= 'a') && (d <= 'f'))
@@ -1506,14 +1532,13 @@ SWIG_Ruby_InitRuntime(void)
1506
1532
  SWIGRUNTIME void
1507
1533
  SWIG_Ruby_define_class(swig_type_info *type)
1508
1534
  {
1509
- VALUE klass;
1510
1535
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1511
1536
  sprintf(klass_name, "TYPE%s", type->name);
1512
1537
  if (NIL_P(_cSWIG_Pointer)) {
1513
1538
  _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1514
1539
  rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1515
1540
  }
1516
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1541
+ rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1517
1542
  free((void *) klass_name);
1518
1543
  }
1519
1544
 
@@ -1840,7 +1865,7 @@ static VALUE mMP4;
1840
1865
  #define SWIG_RUBY_THREAD_END_BLOCK
1841
1866
 
1842
1867
 
1843
- #define SWIGVERSION 0x020012
1868
+ #define SWIGVERSION 0x030007
1844
1869
  #define SWIG_VERSION SWIGVERSION
1845
1870
 
1846
1871
 
@@ -1922,7 +1947,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
1922
1947
  return result;
1923
1948
  }
1924
1949
  for (long i = 0; i < RARRAY_LEN(ary); i++) {
1925
- VALUE e = RARRAY_PTR(ary)[i];
1950
+ VALUE e = rb_ary_entry(ary, i);
1926
1951
  TagLib::String s = ruby_string_to_taglib_string(e);
1927
1952
  result.append(s);
1928
1953
  }
@@ -2002,7 +2027,7 @@ TagLib::MP4::CoverArtList ruby_array_to_taglib_cover_art_list(VALUE ary) {
2002
2027
  return result;
2003
2028
  }
2004
2029
  for (long i = 0; i < RARRAY_LEN(ary); i++) {
2005
- VALUE e = RARRAY_PTR(ary)[i];
2030
+ VALUE e = rb_ary_entry(ary, i);
2006
2031
  TagLib::MP4::CoverArt *c;
2007
2032
  SWIG_ConvertPtr(e, (void **) &c, SWIGTYPE_p_TagLib__MP4__CoverArt, 1);
2008
2033
  result.append(*c);
@@ -2028,7 +2053,7 @@ SWIG_ruby_failed(void)
2028
2053
  }
2029
2054
 
2030
2055
 
2031
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2056
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2032
2057
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
2033
2058
  {
2034
2059
  VALUE obj = args[0];
@@ -2154,7 +2179,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
2154
2179
 
2155
2180
 
2156
2181
 
2157
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2182
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2158
2183
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2159
2184
  {
2160
2185
  VALUE obj = args[0];
@@ -4481,7 +4506,7 @@ static swig_cast_info *swig_cast_initial[] = {
4481
4506
  * array with the correct data and linking the correct swig_cast_info
4482
4507
  * structures together.
4483
4508
  *
4484
- * The generated swig_type_info structures are assigned staticly to an initial
4509
+ * The generated swig_type_info structures are assigned statically to an initial
4485
4510
  * array. We just loop through that array, and handle each type individually.
4486
4511
  * First we lookup if this type has been already loaded, and if so, use the
4487
4512
  * loaded structure instead of the generated one. Then we have to fill in the
@@ -4525,7 +4550,7 @@ SWIGRUNTIME void
4525
4550
  SWIG_InitializeModule(void *clientdata) {
4526
4551
  size_t i;
4527
4552
  swig_module_info *module_head, *iter;
4528
- int found, init;
4553
+ int init;
4529
4554
 
4530
4555
  /* check to see if the circular list has been setup, if not, set it up */
4531
4556
  if (swig_module.next==0) {
@@ -4544,22 +4569,18 @@ SWIG_InitializeModule(void *clientdata) {
4544
4569
  /* This is the first module loaded for this interpreter */
4545
4570
  /* so set the swig module into the interpreter */
4546
4571
  SWIG_SetModule(clientdata, &swig_module);
4547
- module_head = &swig_module;
4548
4572
  } else {
4549
4573
  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
4550
- found=0;
4551
4574
  iter=module_head;
4552
4575
  do {
4553
4576
  if (iter==&swig_module) {
4554
- found=1;
4555
- break;
4577
+ /* Our module is already in the list, so there's nothing more to do. */
4578
+ return;
4556
4579
  }
4557
4580
  iter=iter->next;
4558
4581
  } while (iter!= module_head);
4559
4582
 
4560
- /* if the is found in the list, then all is done and we may leave */
4561
- if (found) return;
4562
- /* otherwise we must add out module into the list */
4583
+ /* otherwise we must add our module into the list */
4563
4584
  swig_module.next = module_head->next;
4564
4585
  module_head->next = &swig_module;
4565
4586
  }
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.12
3
+ * Version 3.0.7
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
@@ -145,6 +145,19 @@ template <typename T> T SwigValueInit() {
145
145
  # define _SCL_SECURE_NO_DEPRECATE
146
146
  #endif
147
147
 
148
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
149
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
150
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
151
+ #endif
152
+
153
+ /* Intel's compiler complains if a variable which was never initialised is
154
+ * cast to void, which is a common idiom which we use to indicate that we
155
+ * are aware a variable isn't used. So we just silence that warning.
156
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
157
+ */
158
+ #ifdef __INTEL_COMPILER
159
+ # pragma warning disable 592
160
+ #endif
148
161
 
149
162
  /* -----------------------------------------------------------------------------
150
163
  * This section contains generic SWIG labels for method/variable
@@ -254,6 +267,19 @@ template <typename T> T SwigValueInit() {
254
267
  # define _SCL_SECURE_NO_DEPRECATE
255
268
  #endif
256
269
 
270
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
271
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
272
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
273
+ #endif
274
+
275
+ /* Intel's compiler complains if a variable which was never initialised is
276
+ * cast to void, which is a common idiom which we use to indicate that we
277
+ * are aware a variable isn't used. So we just silence that warning.
278
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
279
+ */
280
+ #ifdef __INTEL_COMPILER
281
+ # pragma warning disable 592
282
+ #endif
257
283
 
258
284
  /* -----------------------------------------------------------------------------
259
285
  * swigrun.swg
@@ -661,14 +687,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
661
687
  swig_module_info *iter = start;
662
688
  do {
663
689
  if (iter->size) {
664
- register size_t l = 0;
665
- register size_t r = iter->size - 1;
690
+ size_t l = 0;
691
+ size_t r = iter->size - 1;
666
692
  do {
667
693
  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
668
- register size_t i = (l + r) >> 1;
694
+ size_t i = (l + r) >> 1;
669
695
  const char *iname = iter->types[i]->name;
670
696
  if (iname) {
671
- register int compare = strcmp(name, iname);
697
+ int compare = strcmp(name, iname);
672
698
  if (compare == 0) {
673
699
  return iter->types[i];
674
700
  } else if (compare < 0) {
@@ -712,7 +738,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
712
738
  of the str field (the human readable name) */
713
739
  swig_module_info *iter = start;
714
740
  do {
715
- register size_t i = 0;
741
+ size_t i = 0;
716
742
  for (; i < iter->size; ++i) {
717
743
  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
718
744
  return iter->types[i];
@@ -731,10 +757,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
731
757
  SWIGRUNTIME char *
732
758
  SWIG_PackData(char *c, void *ptr, size_t sz) {
733
759
  static const char hex[17] = "0123456789abcdef";
734
- register const unsigned char *u = (unsigned char *) ptr;
735
- register const unsigned char *eu = u + sz;
760
+ const unsigned char *u = (unsigned char *) ptr;
761
+ const unsigned char *eu = u + sz;
736
762
  for (; u != eu; ++u) {
737
- register unsigned char uu = *u;
763
+ unsigned char uu = *u;
738
764
  *(c++) = hex[(uu & 0xf0) >> 4];
739
765
  *(c++) = hex[uu & 0xf];
740
766
  }
@@ -746,11 +772,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
746
772
  */
747
773
  SWIGRUNTIME const char *
748
774
  SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
749
- register unsigned char *u = (unsigned char *) ptr;
750
- register const unsigned char *eu = u + sz;
775
+ unsigned char *u = (unsigned char *) ptr;
776
+ const unsigned char *eu = u + sz;
751
777
  for (; u != eu; ++u) {
752
- register char d = *(c++);
753
- register unsigned char uu;
778
+ char d = *(c++);
779
+ unsigned char uu;
754
780
  if ((d >= '0') && (d <= '9'))
755
781
  uu = ((d - '0') << 4);
756
782
  else if ((d >= 'a') && (d <= 'f'))
@@ -1506,14 +1532,13 @@ SWIG_Ruby_InitRuntime(void)
1506
1532
  SWIGRUNTIME void
1507
1533
  SWIG_Ruby_define_class(swig_type_info *type)
1508
1534
  {
1509
- VALUE klass;
1510
1535
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1511
1536
  sprintf(klass_name, "TYPE%s", type->name);
1512
1537
  if (NIL_P(_cSWIG_Pointer)) {
1513
1538
  _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1514
1539
  rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1515
1540
  }
1516
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1541
+ rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1517
1542
  free((void *) klass_name);
1518
1543
  }
1519
1544
 
@@ -1837,7 +1862,7 @@ static VALUE mMPEG;
1837
1862
  #define SWIG_RUBY_THREAD_END_BLOCK
1838
1863
 
1839
1864
 
1840
- #define SWIGVERSION 0x020012
1865
+ #define SWIGVERSION 0x030007
1841
1866
  #define SWIG_VERSION SWIGVERSION
1842
1867
 
1843
1868
 
@@ -1922,7 +1947,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
1922
1947
  return result;
1923
1948
  }
1924
1949
  for (long i = 0; i < RARRAY_LEN(ary); i++) {
1925
- VALUE e = RARRAY_PTR(ary)[i];
1950
+ VALUE e = rb_ary_entry(ary, i);
1926
1951
  TagLib::String s = ruby_string_to_taglib_string(e);
1927
1952
  result.append(s);
1928
1953
  }
@@ -2061,7 +2086,7 @@ SWIG_ruby_failed(void)
2061
2086
  }
2062
2087
 
2063
2088
 
2064
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2089
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2065
2090
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
2066
2091
  {
2067
2092
  VALUE obj = args[0];
@@ -4491,7 +4516,7 @@ static swig_cast_info *swig_cast_initial[] = {
4491
4516
  * array with the correct data and linking the correct swig_cast_info
4492
4517
  * structures together.
4493
4518
  *
4494
- * The generated swig_type_info structures are assigned staticly to an initial
4519
+ * The generated swig_type_info structures are assigned statically to an initial
4495
4520
  * array. We just loop through that array, and handle each type individually.
4496
4521
  * First we lookup if this type has been already loaded, and if so, use the
4497
4522
  * loaded structure instead of the generated one. Then we have to fill in the
@@ -4535,7 +4560,7 @@ SWIGRUNTIME void
4535
4560
  SWIG_InitializeModule(void *clientdata) {
4536
4561
  size_t i;
4537
4562
  swig_module_info *module_head, *iter;
4538
- int found, init;
4563
+ int init;
4539
4564
 
4540
4565
  /* check to see if the circular list has been setup, if not, set it up */
4541
4566
  if (swig_module.next==0) {
@@ -4554,22 +4579,18 @@ SWIG_InitializeModule(void *clientdata) {
4554
4579
  /* This is the first module loaded for this interpreter */
4555
4580
  /* so set the swig module into the interpreter */
4556
4581
  SWIG_SetModule(clientdata, &swig_module);
4557
- module_head = &swig_module;
4558
4582
  } else {
4559
4583
  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
4560
- found=0;
4561
4584
  iter=module_head;
4562
4585
  do {
4563
4586
  if (iter==&swig_module) {
4564
- found=1;
4565
- break;
4587
+ /* Our module is already in the list, so there's nothing more to do. */
4588
+ return;
4566
4589
  }
4567
4590
  iter=iter->next;
4568
4591
  } while (iter!= module_head);
4569
4592
 
4570
- /* if the is found in the list, then all is done and we may leave */
4571
- if (found) return;
4572
- /* otherwise we must add out module into the list */
4593
+ /* otherwise we must add our module into the list */
4573
4594
  swig_module.next = module_head->next;
4574
4595
  module_head->next = &swig_module;
4575
4596
  }
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.12
3
+ * Version 3.0.7
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
@@ -142,6 +142,19 @@ template <typename T> T SwigValueInit() {
142
142
  # define _SCL_SECURE_NO_DEPRECATE
143
143
  #endif
144
144
 
145
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
146
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
147
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
148
+ #endif
149
+
150
+ /* Intel's compiler complains if a variable which was never initialised is
151
+ * cast to void, which is a common idiom which we use to indicate that we
152
+ * are aware a variable isn't used. So we just silence that warning.
153
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
154
+ */
155
+ #ifdef __INTEL_COMPILER
156
+ # pragma warning disable 592
157
+ #endif
145
158
 
146
159
  /* -----------------------------------------------------------------------------
147
160
  * This section contains generic SWIG labels for method/variable
@@ -251,6 +264,19 @@ template <typename T> T SwigValueInit() {
251
264
  # define _SCL_SECURE_NO_DEPRECATE
252
265
  #endif
253
266
 
267
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
268
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
269
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
270
+ #endif
271
+
272
+ /* Intel's compiler complains if a variable which was never initialised is
273
+ * cast to void, which is a common idiom which we use to indicate that we
274
+ * are aware a variable isn't used. So we just silence that warning.
275
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
276
+ */
277
+ #ifdef __INTEL_COMPILER
278
+ # pragma warning disable 592
279
+ #endif
254
280
 
255
281
  /* -----------------------------------------------------------------------------
256
282
  * swigrun.swg
@@ -658,14 +684,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
658
684
  swig_module_info *iter = start;
659
685
  do {
660
686
  if (iter->size) {
661
- register size_t l = 0;
662
- register size_t r = iter->size - 1;
687
+ size_t l = 0;
688
+ size_t r = iter->size - 1;
663
689
  do {
664
690
  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
665
- register size_t i = (l + r) >> 1;
691
+ size_t i = (l + r) >> 1;
666
692
  const char *iname = iter->types[i]->name;
667
693
  if (iname) {
668
- register int compare = strcmp(name, iname);
694
+ int compare = strcmp(name, iname);
669
695
  if (compare == 0) {
670
696
  return iter->types[i];
671
697
  } else if (compare < 0) {
@@ -709,7 +735,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
709
735
  of the str field (the human readable name) */
710
736
  swig_module_info *iter = start;
711
737
  do {
712
- register size_t i = 0;
738
+ size_t i = 0;
713
739
  for (; i < iter->size; ++i) {
714
740
  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
715
741
  return iter->types[i];
@@ -728,10 +754,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
728
754
  SWIGRUNTIME char *
729
755
  SWIG_PackData(char *c, void *ptr, size_t sz) {
730
756
  static const char hex[17] = "0123456789abcdef";
731
- register const unsigned char *u = (unsigned char *) ptr;
732
- register const unsigned char *eu = u + sz;
757
+ const unsigned char *u = (unsigned char *) ptr;
758
+ const unsigned char *eu = u + sz;
733
759
  for (; u != eu; ++u) {
734
- register unsigned char uu = *u;
760
+ unsigned char uu = *u;
735
761
  *(c++) = hex[(uu & 0xf0) >> 4];
736
762
  *(c++) = hex[uu & 0xf];
737
763
  }
@@ -743,11 +769,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
743
769
  */
744
770
  SWIGRUNTIME const char *
745
771
  SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
746
- register unsigned char *u = (unsigned char *) ptr;
747
- register const unsigned char *eu = u + sz;
772
+ unsigned char *u = (unsigned char *) ptr;
773
+ const unsigned char *eu = u + sz;
748
774
  for (; u != eu; ++u) {
749
- register char d = *(c++);
750
- register unsigned char uu;
775
+ char d = *(c++);
776
+ unsigned char uu;
751
777
  if ((d >= '0') && (d <= '9'))
752
778
  uu = ((d - '0') << 4);
753
779
  else if ((d >= 'a') && (d <= 'f'))
@@ -1503,14 +1529,13 @@ SWIG_Ruby_InitRuntime(void)
1503
1529
  SWIGRUNTIME void
1504
1530
  SWIG_Ruby_define_class(swig_type_info *type)
1505
1531
  {
1506
- VALUE klass;
1507
1532
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1508
1533
  sprintf(klass_name, "TYPE%s", type->name);
1509
1534
  if (NIL_P(_cSWIG_Pointer)) {
1510
1535
  _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1511
1536
  rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1512
1537
  }
1513
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1538
+ rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1514
1539
  free((void *) klass_name);
1515
1540
  }
1516
1541
 
@@ -1829,7 +1854,7 @@ static VALUE mOgg;
1829
1854
  #define SWIG_RUBY_THREAD_END_BLOCK
1830
1855
 
1831
1856
 
1832
- #define SWIGVERSION 0x020012
1857
+ #define SWIGVERSION 0x030007
1833
1858
  #define SWIG_VERSION SWIGVERSION
1834
1859
 
1835
1860
 
@@ -1909,7 +1934,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
1909
1934
  return result;
1910
1935
  }
1911
1936
  for (long i = 0; i < RARRAY_LEN(ary); i++) {
1912
- VALUE e = RARRAY_PTR(ary)[i];
1937
+ VALUE e = rb_ary_entry(ary, i);
1913
1938
  TagLib::String s = ruby_string_to_taglib_string(e);
1914
1939
  result.append(s);
1915
1940
  }
@@ -1974,7 +1999,7 @@ SWIG_ruby_failed(void)
1974
1999
  }
1975
2000
 
1976
2001
 
1977
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2002
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1978
2003
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
1979
2004
  {
1980
2005
  VALUE obj = args[0];
@@ -2093,7 +2118,7 @@ SWIG_From_unsigned_SS_int (unsigned int value)
2093
2118
  }
2094
2119
 
2095
2120
 
2096
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2121
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2097
2122
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
2098
2123
  {
2099
2124
  VALUE obj = args[0];
@@ -3342,7 +3367,7 @@ static swig_cast_info *swig_cast_initial[] = {
3342
3367
  * array with the correct data and linking the correct swig_cast_info
3343
3368
  * structures together.
3344
3369
  *
3345
- * The generated swig_type_info structures are assigned staticly to an initial
3370
+ * The generated swig_type_info structures are assigned statically to an initial
3346
3371
  * array. We just loop through that array, and handle each type individually.
3347
3372
  * First we lookup if this type has been already loaded, and if so, use the
3348
3373
  * loaded structure instead of the generated one. Then we have to fill in the
@@ -3386,7 +3411,7 @@ SWIGRUNTIME void
3386
3411
  SWIG_InitializeModule(void *clientdata) {
3387
3412
  size_t i;
3388
3413
  swig_module_info *module_head, *iter;
3389
- int found, init;
3414
+ int init;
3390
3415
 
3391
3416
  /* check to see if the circular list has been setup, if not, set it up */
3392
3417
  if (swig_module.next==0) {
@@ -3405,22 +3430,18 @@ SWIG_InitializeModule(void *clientdata) {
3405
3430
  /* This is the first module loaded for this interpreter */
3406
3431
  /* so set the swig module into the interpreter */
3407
3432
  SWIG_SetModule(clientdata, &swig_module);
3408
- module_head = &swig_module;
3409
3433
  } else {
3410
3434
  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
3411
- found=0;
3412
3435
  iter=module_head;
3413
3436
  do {
3414
3437
  if (iter==&swig_module) {
3415
- found=1;
3416
- break;
3438
+ /* Our module is already in the list, so there's nothing more to do. */
3439
+ return;
3417
3440
  }
3418
3441
  iter=iter->next;
3419
3442
  } while (iter!= module_head);
3420
3443
 
3421
- /* if the is found in the list, then all is done and we may leave */
3422
- if (found) return;
3423
- /* otherwise we must add out module into the list */
3444
+ /* otherwise we must add our module into the list */
3424
3445
  swig_module.next = module_head->next;
3425
3446
  module_head->next = &swig_module;
3426
3447
  }