taglib-ruby 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,45 +1,17 @@
1
1
  /* ----------------------------------------------------------------------------
2
- * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
2
+ * This file was automatically generated by SWIG (https://www.swig.org).
3
+ * Version 4.1.1
4
4
  *
5
- * This file is not intended to be easily readable and contains a number of
6
- * coding conventions designed to improve portability and efficiency. Do not make
7
- * changes to this file unless you know what you are doing--modify the SWIG
8
- * interface file instead.
5
+ * Do not make changes to this file unless you know what you are doing - modify
6
+ * the SWIG interface file instead.
9
7
  * ----------------------------------------------------------------------------- */
10
8
 
11
9
  static void free_taglib_mpeg_file(void *ptr);
12
10
 
13
11
 
14
12
 
15
- #ifndef SWIGRUBY
13
+ #define SWIG_VERSION 0x040101
16
14
  #define SWIGRUBY
17
- #endif
18
-
19
-
20
-
21
- #ifdef __cplusplus
22
- /* SwigValueWrapper is described in swig.swg */
23
- template<typename T> class SwigValueWrapper {
24
- struct SwigMovePointer {
25
- T *ptr;
26
- SwigMovePointer(T *p) : ptr(p) { }
27
- ~SwigMovePointer() { delete ptr; }
28
- SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
29
- } pointer;
30
- SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
31
- SwigValueWrapper(const SwigValueWrapper<T>& rhs);
32
- public:
33
- SwigValueWrapper() : pointer(0) { }
34
- SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
35
- operator T&() const { return *pointer.ptr; }
36
- T *operator&() { return pointer.ptr; }
37
- };
38
-
39
- template <typename T> T SwigValueInit() {
40
- return T();
41
- }
42
- #endif
43
15
 
44
16
  /* -----------------------------------------------------------------------------
45
17
  * This section contains generic SWIG labels for method/variable
@@ -335,6 +307,8 @@ template <typename T> T SwigValueInit() {
335
307
  #define SWIG_POINTER_DISOWN 0x1
336
308
  #define SWIG_CAST_NEW_MEMORY 0x2
337
309
  #define SWIG_POINTER_NO_NULL 0x4
310
+ #define SWIG_POINTER_CLEAR 0x8
311
+ #define SWIG_POINTER_RELEASE (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)
338
312
 
339
313
  /* Flags for new pointer objects */
340
314
  #define SWIG_POINTER_OWN 0x1
@@ -406,7 +380,7 @@ template <typename T> T SwigValueInit() {
406
380
  SWIG errors code.
407
381
 
408
382
  Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
409
- allows to return the 'cast rank', for example, if you have this
383
+ allows returning the 'cast rank', for example, if you have this
410
384
 
411
385
  int food(double)
412
386
  int fooi(int);
@@ -420,7 +394,13 @@ template <typename T> T SwigValueInit() {
420
394
  */
421
395
 
422
396
  #define SWIG_OK (0)
397
+ /* Runtime errors are < 0 */
423
398
  #define SWIG_ERROR (-1)
399
+ /* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
400
+ /* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
401
+ /* Errors < -200 are generic runtime specific errors */
402
+ #define SWIG_ERROR_RELEASE_NOT_OWNED (-200)
403
+
424
404
  #define SWIG_IsOK(r) (r >= 0)
425
405
  #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
426
406
 
@@ -435,7 +415,7 @@ template <typename T> T SwigValueInit() {
435
415
  #define SWIG_OLDOBJ (SWIG_OK)
436
416
  #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
437
417
  #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
438
- /* Check, add and del mask methods */
418
+ /* Check, add and del object mask methods */
439
419
  #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
440
420
  #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
441
421
  #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
@@ -581,7 +561,7 @@ SWIG_TypeCheck(const char *c, swig_type_info *ty) {
581
561
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
582
562
  */
583
563
  SWIGRUNTIME swig_cast_info *
584
- SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
564
+ SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
585
565
  if (ty) {
586
566
  swig_cast_info *iter = ty->cast;
587
567
  while (iter) {
@@ -641,9 +621,9 @@ SWIG_TypeName(const swig_type_info *ty) {
641
621
  SWIGRUNTIME const char *
642
622
  SWIG_TypePrettyName(const swig_type_info *type) {
643
623
  /* The "str" field contains the equivalent pretty names of the
644
- type, separated by vertical-bar characters. We choose
645
- to print the last name, as it is often (?) the most
646
- specific. */
624
+ type, separated by vertical-bar characters. Choose the last
625
+ name. It should be the most specific; a fully resolved name
626
+ but not necessarily with default template parameters expanded. */
647
627
  if (!type) return NULL;
648
628
  if (type->str != NULL) {
649
629
  const char *last_name = type->str;
@@ -863,7 +843,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
863
843
  }
864
844
  #endif
865
845
 
866
- /* Errors in SWIG */
846
+ /* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
867
847
  #define SWIG_UnknownError -1
868
848
  #define SWIG_IOError -2
869
849
  #define SWIG_RuntimeError -3
@@ -879,9 +859,25 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
879
859
  #define SWIG_NullReferenceError -13
880
860
 
881
861
 
862
+ #if __GNUC__ >= 7
863
+ #pragma GCC diagnostic push
864
+ #if defined(__cplusplus)
865
+ #pragma GCC diagnostic ignored "-Wregister"
866
+ #if __GNUC__ >= 10
867
+ #pragma GCC diagnostic ignored "-Wvolatile"
868
+ #if __GNUC__ >= 11
869
+ #pragma GCC diagnostic ignored "-Wdeprecated-enum-enum-conversion"
870
+ #endif
871
+ #endif
872
+ #endif
873
+ #endif
882
874
 
883
875
  #include <ruby.h>
884
876
 
877
+ #if __GNUC__ >= 7
878
+ #pragma GCC diagnostic pop
879
+ #endif
880
+
885
881
  /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
886
882
  * breaks using rb_intern as an lvalue, as SWIG does. We work around this
887
883
  * issue for now by disabling this.
@@ -1661,6 +1657,11 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1661
1657
  own->own = 0;
1662
1658
  }
1663
1659
 
1660
+ if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE)) {
1661
+ if (!RDATA(obj)->dfree)
1662
+ return SWIG_ERROR_RELEASE_NOT_OWNED;
1663
+ }
1664
+
1664
1665
  /* Check to see if the input object is giving up ownership
1665
1666
  of the underlying C struct or C++ object. If so then we
1666
1667
  need to reset the destructor since the Ruby object no
@@ -1672,7 +1673,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1672
1673
  swig_class *sklass = (swig_class *) ty->clientdata;
1673
1674
  track = sklass->trackObjects;
1674
1675
  }
1675
-
1676
+
1676
1677
  if (track) {
1677
1678
  /* We are tracking objects for this class. Thus we change the destructor
1678
1679
  * to SWIG_RubyRemoveTracking. This allows us to
@@ -1686,6 +1687,10 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1686
1687
  }
1687
1688
  }
1688
1689
 
1690
+ if (flags & SWIG_POINTER_CLEAR) {
1691
+ DATA_PTR(obj) = 0;
1692
+ }
1693
+
1689
1694
  /* Do type-checking if type info was provided */
1690
1695
  if (ty) {
1691
1696
  if (ty->clientdata) {
@@ -1793,6 +1798,7 @@ SWIG_Ruby_SetModule(swig_module_info *pointer)
1793
1798
  {
1794
1799
  /* register a new class */
1795
1800
  VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1801
+ rb_undef_alloc_func(cl);
1796
1802
  /* create and store the structure pointer to a global variable */
1797
1803
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1798
1804
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1823,7 +1829,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1823
1829
  {
1824
1830
  if ( rb_respond_to( proc, swig_arity_id ) )
1825
1831
  {
1826
- VALUE num = rb_funcall( proc, swig_arity_id, 0 );
1832
+ VALUE num = rb_funcall2( proc, swig_arity_id, 0, 0 );
1827
1833
  int arity = NUM2INT(num);
1828
1834
  if ( arity < 0 && (arity+1) < -minimal ) return 1;
1829
1835
  if ( arity == minimal ) return 1;
@@ -1841,7 +1847,7 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1841
1847
 
1842
1848
  #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1843
1849
 
1844
- #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1850
+ #define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0)
1845
1851
 
1846
1852
 
1847
1853
 
@@ -1875,12 +1881,56 @@ static swig_module_info swig_module = {swig_types, 16, 0, 0, 0, 0};
1875
1881
 
1876
1882
  static VALUE mMPEG;
1877
1883
 
1878
- #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1879
- #define SWIG_RUBY_THREAD_END_BLOCK
1884
+ #ifdef __cplusplus
1885
+ #include <utility>
1886
+ /* SwigValueWrapper is described in swig.swg */
1887
+ template<typename T> class SwigValueWrapper {
1888
+ struct SwigSmartPointer {
1889
+ T *ptr;
1890
+ SwigSmartPointer(T *p) : ptr(p) { }
1891
+ ~SwigSmartPointer() { delete ptr; }
1892
+ SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
1893
+ void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
1894
+ } pointer;
1895
+ SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
1896
+ SwigValueWrapper(const SwigValueWrapper<T>& rhs);
1897
+ public:
1898
+ SwigValueWrapper() : pointer(0) { }
1899
+ SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
1900
+ #if __cplusplus >=201103L
1901
+ SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
1902
+ operator T&&() const { return std::move(*pointer.ptr); }
1903
+ #else
1904
+ operator T&() const { return *pointer.ptr; }
1905
+ #endif
1906
+ T *operator&() const { return pointer.ptr; }
1907
+ static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
1908
+ };
1909
+
1910
+ /*
1911
+ * SwigValueInit() is a generic initialisation solution as the following approach:
1912
+ *
1913
+ * T c_result = T();
1914
+ *
1915
+ * doesn't compile for all types for example:
1916
+ *
1917
+ * unsigned int c_result = unsigned int();
1918
+ */
1919
+ template <typename T> T SwigValueInit() {
1920
+ return T();
1921
+ }
1880
1922
 
1923
+ #if __cplusplus >=201103L
1924
+ # define SWIG_STD_MOVE(OBJ) std::move(OBJ)
1925
+ #else
1926
+ # define SWIG_STD_MOVE(OBJ) OBJ
1927
+ #endif
1881
1928
 
1882
- #define SWIGVERSION 0x040002
1883
- #define SWIG_VERSION SWIGVERSION
1929
+ #endif
1930
+
1931
+
1932
+ #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1933
+ #define SWIG_RUBY_THREAD_END_BLOCK
1884
1934
 
1885
1935
 
1886
1936
  #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
@@ -2132,7 +2182,7 @@ SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
2132
2182
  }
2133
2183
 
2134
2184
 
2135
- /*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2185
+ /*@SWIG:/usr/local/Cellar/swig/4.1.1/share/swig/4.1.1/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2136
2186
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
2137
2187
  {
2138
2188
  VALUE *args = (VALUE *)arg;
@@ -2529,7 +2579,7 @@ _wrap_Header_allocate(int argc, VALUE *argv, VALUE self)
2529
2579
  SWIGINTERN VALUE
2530
2580
  _wrap_new_Header__SWIG_3(int argc, VALUE *argv, VALUE self) {
2531
2581
  TagLib::MPEG::Header *arg1 = 0 ;
2532
- void *argp1 ;
2582
+ void *argp1 = 0 ;
2533
2583
  int res1 = 0 ;
2534
2584
  TagLib::MPEG::Header *result = 0 ;
2535
2585
 
@@ -2564,7 +2614,7 @@ SWIGINTERN VALUE _wrap_new_Header(int nargs, VALUE *args, VALUE self) {
2564
2614
  argv[ii] = args[ii];
2565
2615
  }
2566
2616
  if (argc == 1) {
2567
- int _v;
2617
+ int _v = 0;
2568
2618
  void *vptr = 0;
2569
2619
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__Header, SWIG_POINTER_NO_NULL);
2570
2620
  _v = SWIG_CheckState(res);
@@ -2573,7 +2623,7 @@ SWIGINTERN VALUE _wrap_new_Header(int nargs, VALUE *args, VALUE self) {
2573
2623
  }
2574
2624
  }
2575
2625
  if (argc == 1) {
2576
- int _v;
2626
+ int _v = 0;
2577
2627
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
2578
2628
  _v = SWIG_CheckState(res);
2579
2629
  if (_v) {
@@ -2581,7 +2631,7 @@ SWIGINTERN VALUE _wrap_new_Header(int nargs, VALUE *args, VALUE self) {
2581
2631
  }
2582
2632
  }
2583
2633
  if (argc == 2) {
2584
- int _v;
2634
+ int _v = 0;
2585
2635
  void *vptr = 0;
2586
2636
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
2587
2637
  _v = SWIG_CheckState(res);
@@ -2596,7 +2646,7 @@ SWIGINTERN VALUE _wrap_new_Header(int nargs, VALUE *args, VALUE self) {
2596
2646
  }
2597
2647
  }
2598
2648
  if (argc == 3) {
2599
- int _v;
2649
+ int _v = 0;
2600
2650
  void *vptr = 0;
2601
2651
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
2602
2652
  _v = SWIG_CheckState(res);
@@ -3007,7 +3057,7 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
3007
3057
  argv[ii] = args[ii];
3008
3058
  }
3009
3059
  if (argc == 1) {
3010
- int _v;
3060
+ int _v = 0;
3011
3061
  void *vptr = 0;
3012
3062
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
3013
3063
  _v = SWIG_CheckState(res);
@@ -3016,7 +3066,7 @@ SWIGINTERN VALUE _wrap_new_Properties(int nargs, VALUE *args, VALUE self) {
3016
3066
  }
3017
3067
  }
3018
3068
  if (argc == 2) {
3019
- int _v;
3069
+ int _v = 0;
3020
3070
  void *vptr = 0;
3021
3071
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
3022
3072
  _v = SWIG_CheckState(res);
@@ -3573,7 +3623,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
3573
3623
  argv[ii] = args[ii];
3574
3624
  }
3575
3625
  if (argc == 1) {
3576
- int _v;
3626
+ int _v = 0;
3577
3627
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3578
3628
  _v = SWIG_CheckState(res);
3579
3629
  if (_v) {
@@ -3581,7 +3631,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
3581
3631
  }
3582
3632
  }
3583
3633
  if (argc == 2) {
3584
- int _v;
3634
+ int _v = 0;
3585
3635
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3586
3636
  _v = SWIG_CheckState(res);
3587
3637
  if (_v) {
@@ -3594,7 +3644,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
3594
3644
  }
3595
3645
  }
3596
3646
  if (argc == 2) {
3597
- int _v;
3647
+ int _v = 0;
3598
3648
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3599
3649
  _v = SWIG_CheckState(res);
3600
3650
  if (_v) {
@@ -3608,7 +3658,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
3608
3658
  }
3609
3659
  }
3610
3660
  if (argc == 3) {
3611
- int _v;
3661
+ int _v = 0;
3612
3662
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3613
3663
  _v = SWIG_CheckState(res);
3614
3664
  if (_v) {
@@ -3627,7 +3677,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
3627
3677
  }
3628
3678
  }
3629
3679
  if (argc == 3) {
3630
- int _v;
3680
+ int _v = 0;
3631
3681
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3632
3682
  _v = SWIG_CheckState(res);
3633
3683
  if (_v) {
@@ -3647,7 +3697,7 @@ SWIGINTERN VALUE _wrap_new_File(int nargs, VALUE *args, VALUE self) {
3647
3697
  }
3648
3698
  }
3649
3699
  if (argc == 4) {
3650
- int _v;
3700
+ int _v = 0;
3651
3701
  int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
3652
3702
  _v = SWIG_CheckState(res);
3653
3703
  if (_v) {
@@ -3945,7 +3995,7 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
3945
3995
  argv[ii] = args[ii-1];
3946
3996
  }
3947
3997
  if (argc == 1) {
3948
- int _v;
3998
+ int _v = 0;
3949
3999
  void *vptr = 0;
3950
4000
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
3951
4001
  _v = SWIG_CheckState(res);
@@ -3954,7 +4004,7 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
3954
4004
  }
3955
4005
  }
3956
4006
  if (argc == 2) {
3957
- int _v;
4007
+ int _v = 0;
3958
4008
  void *vptr = 0;
3959
4009
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
3960
4010
  _v = SWIG_CheckState(res);
@@ -3969,7 +4019,7 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
3969
4019
  }
3970
4020
  }
3971
4021
  if (argc == 3) {
3972
- int _v;
4022
+ int _v = 0;
3973
4023
  void *vptr = 0;
3974
4024
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
3975
4025
  _v = SWIG_CheckState(res);
@@ -3990,7 +4040,7 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
3990
4040
  }
3991
4041
  }
3992
4042
  if (argc == 4) {
3993
- int _v;
4043
+ int _v = 0;
3994
4044
  void *vptr = 0;
3995
4045
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
3996
4046
  _v = SWIG_CheckState(res);
@@ -4017,7 +4067,7 @@ SWIGINTERN VALUE _wrap_File_save(int nargs, VALUE *args, VALUE self) {
4017
4067
  }
4018
4068
  }
4019
4069
  if (argc == 5) {
4020
- int _v;
4070
+ int _v = 0;
4021
4071
  void *vptr = 0;
4022
4072
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4023
4073
  _v = SWIG_CheckState(res);
@@ -4130,7 +4180,7 @@ SWIGINTERN VALUE _wrap_File_id3v2_tag(int nargs, VALUE *args, VALUE self) {
4130
4180
  argv[ii] = args[ii-1];
4131
4181
  }
4132
4182
  if (argc == 1) {
4133
- int _v;
4183
+ int _v = 0;
4134
4184
  void *vptr = 0;
4135
4185
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4136
4186
  _v = SWIG_CheckState(res);
@@ -4139,7 +4189,7 @@ SWIGINTERN VALUE _wrap_File_id3v2_tag(int nargs, VALUE *args, VALUE self) {
4139
4189
  }
4140
4190
  }
4141
4191
  if (argc == 2) {
4142
- int _v;
4192
+ int _v = 0;
4143
4193
  void *vptr = 0;
4144
4194
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4145
4195
  _v = SWIG_CheckState(res);
@@ -4231,7 +4281,7 @@ SWIGINTERN VALUE _wrap_File_id3v1_tag(int nargs, VALUE *args, VALUE self) {
4231
4281
  argv[ii] = args[ii-1];
4232
4282
  }
4233
4283
  if (argc == 1) {
4234
- int _v;
4284
+ int _v = 0;
4235
4285
  void *vptr = 0;
4236
4286
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4237
4287
  _v = SWIG_CheckState(res);
@@ -4240,7 +4290,7 @@ SWIGINTERN VALUE _wrap_File_id3v1_tag(int nargs, VALUE *args, VALUE self) {
4240
4290
  }
4241
4291
  }
4242
4292
  if (argc == 2) {
4243
- int _v;
4293
+ int _v = 0;
4244
4294
  void *vptr = 0;
4245
4295
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4246
4296
  _v = SWIG_CheckState(res);
@@ -4332,7 +4382,7 @@ SWIGINTERN VALUE _wrap_File_apetag(int nargs, VALUE *args, VALUE self) {
4332
4382
  argv[ii] = args[ii-1];
4333
4383
  }
4334
4384
  if (argc == 1) {
4335
- int _v;
4385
+ int _v = 0;
4336
4386
  void *vptr = 0;
4337
4387
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4338
4388
  _v = SWIG_CheckState(res);
@@ -4341,7 +4391,7 @@ SWIGINTERN VALUE _wrap_File_apetag(int nargs, VALUE *args, VALUE self) {
4341
4391
  }
4342
4392
  }
4343
4393
  if (argc == 2) {
4344
- int _v;
4394
+ int _v = 0;
4345
4395
  void *vptr = 0;
4346
4396
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4347
4397
  _v = SWIG_CheckState(res);
@@ -4473,7 +4523,7 @@ SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
4473
4523
  argv[ii] = args[ii-1];
4474
4524
  }
4475
4525
  if (argc == 1) {
4476
- int _v;
4526
+ int _v = 0;
4477
4527
  void *vptr = 0;
4478
4528
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4479
4529
  _v = SWIG_CheckState(res);
@@ -4482,7 +4532,7 @@ SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
4482
4532
  }
4483
4533
  }
4484
4534
  if (argc == 2) {
4485
- int _v;
4535
+ int _v = 0;
4486
4536
  void *vptr = 0;
4487
4537
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4488
4538
  _v = SWIG_CheckState(res);
@@ -4497,7 +4547,7 @@ SWIGINTERN VALUE _wrap_File_strip(int nargs, VALUE *args, VALUE self) {
4497
4547
  }
4498
4548
  }
4499
4549
  if (argc == 3) {
4500
- int _v;
4550
+ int _v = 0;
4501
4551
  void *vptr = 0;
4502
4552
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__MPEG__File, 0);
4503
4553
  _v = SWIG_CheckState(res);
@@ -4765,12 +4815,12 @@ fail:
4765
4815
 
4766
4816
  /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
4767
4817
 
4768
- static void *_p_TagLib__MPEG__FileTo_p_TagLib__File(void *x, int *SWIGUNUSEDPARM(newmemory)) {
4769
- return (void *)((TagLib::File *) ((TagLib::MPEG::File *) x));
4770
- }
4771
4818
  static void *_p_TagLib__MPEG__PropertiesTo_p_TagLib__AudioProperties(void *x, int *SWIGUNUSEDPARM(newmemory)) {
4772
4819
  return (void *)((TagLib::AudioProperties *) ((TagLib::MPEG::Properties *) x));
4773
4820
  }
4821
+ static void *_p_TagLib__MPEG__FileTo_p_TagLib__File(void *x, int *SWIGUNUSEDPARM(newmemory)) {
4822
+ return (void *)((TagLib::File *) ((TagLib::MPEG::File *) x));
4823
+ }
4774
4824
  static swig_type_info _swigt__p_TagLib__APE__Tag = {"_p_TagLib__APE__Tag", "TagLib::APE::Tag *", 0, 0, (void*)0, 0};
4775
4825
  static swig_type_info _swigt__p_TagLib__AudioProperties = {"_p_TagLib__AudioProperties", "TagLib::AudioProperties *", 0, 0, (void*)0, 0};
4776
4826
  static swig_type_info _swigt__p_TagLib__File = {"_p_TagLib__File", "TagLib::File *", 0, 0, (void*)0, 0};
@@ -4784,7 +4834,7 @@ static swig_type_info _swigt__p_TagLib__MPEG__XingHeader = {"_p_TagLib__MPEG__Xi
4784
4834
  static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
4785
4835
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
4786
4836
  static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
4787
- static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|TagLib::uint *", 0, 0, (void*)0, 0};
4837
+ static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "TagLib::uint *|unsigned int *", 0, 0, (void*)0, 0};
4788
4838
  static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "TagLib::ulong *|unsigned long *", 0, 0, (void*)0, 0};
4789
4839
  static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "TagLib::wchar *|wchar_t *", 0, 0, (void*)0, 0};
4790
4840
 
@@ -4809,7 +4859,7 @@ static swig_type_info *swig_type_initial[] = {
4809
4859
 
4810
4860
  static swig_cast_info _swigc__p_TagLib__APE__Tag[] = { {&_swigt__p_TagLib__APE__Tag, 0, 0, 0},{0, 0, 0, 0}};
4811
4861
  static swig_cast_info _swigc__p_TagLib__AudioProperties[] = { {&_swigt__p_TagLib__AudioProperties, 0, 0, 0}, {&_swigt__p_TagLib__MPEG__Properties, _p_TagLib__MPEG__PropertiesTo_p_TagLib__AudioProperties, 0, 0},{0, 0, 0, 0}};
4812
- static swig_cast_info _swigc__p_TagLib__File[] = { {&_swigt__p_TagLib__MPEG__File, _p_TagLib__MPEG__FileTo_p_TagLib__File, 0, 0}, {&_swigt__p_TagLib__File, 0, 0, 0},{0, 0, 0, 0}};
4862
+ static swig_cast_info _swigc__p_TagLib__File[] = { {&_swigt__p_TagLib__File, 0, 0, 0}, {&_swigt__p_TagLib__MPEG__File, _p_TagLib__MPEG__FileTo_p_TagLib__File, 0, 0},{0, 0, 0, 0}};
4813
4863
  static swig_cast_info _swigc__p_TagLib__ID3v1__Tag[] = { {&_swigt__p_TagLib__ID3v1__Tag, 0, 0, 0},{0, 0, 0, 0}};
4814
4864
  static swig_cast_info _swigc__p_TagLib__ID3v2__FrameFactory[] = { {&_swigt__p_TagLib__ID3v2__FrameFactory, 0, 0, 0},{0, 0, 0, 0}};
4815
4865
  static swig_cast_info _swigc__p_TagLib__ID3v2__Tag[] = { {&_swigt__p_TagLib__ID3v2__Tag, 0, 0, 0},{0, 0, 0, 0}};
@@ -4898,9 +4948,12 @@ extern "C" {
4898
4948
  #define SWIGRUNTIME_DEBUG
4899
4949
  #endif
4900
4950
 
4951
+ #ifndef SWIG_INIT_CLIENT_DATA_TYPE
4952
+ #define SWIG_INIT_CLIENT_DATA_TYPE void *
4953
+ #endif
4901
4954
 
4902
4955
  SWIGRUNTIME void
4903
- SWIG_InitializeModule(void *clientdata) {
4956
+ SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
4904
4957
  size_t i;
4905
4958
  swig_module_info *module_head, *iter;
4906
4959
  int init;