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.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/ext/taglib_aiff/taglib_aiff_wrap.cxx +48 -27
- data/ext/taglib_base/includes.i +1 -1
- data/ext/taglib_base/taglib_base_wrap.cxx +49 -28
- data/ext/taglib_flac/taglib_flac_wrap.cxx +48 -27
- data/ext/taglib_id3v1/taglib_id3v1_wrap.cxx +49 -28
- data/ext/taglib_id3v2/relativevolumeframe.i +4 -17
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +262 -248
- data/ext/taglib_mp4/taglib_mp4.i +1 -1
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +50 -29
- data/ext/taglib_mpeg/taglib_mpeg_wrap.cxx +48 -27
- data/ext/taglib_ogg/taglib_ogg_wrap.cxx +49 -28
- data/ext/taglib_vorbis/taglib_vorbis_wrap.cxx +48 -27
- data/ext/taglib_wav/taglib_wav_wrap.cxx +49 -28
- data/lib/taglib/version.rb +1 -1
- data/taglib-ruby.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce29a8851b17cdd725f415e66caa729bc6bc318f
|
4
|
+
data.tar.gz: 6e74b0b44a29c8fdc70d34d507ab1e831a2275e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30a434b42ed99ce408216039a9f9c8aad3aa295d95e7bd76d3bfdbcecac0d08f5b39ebb386c0b825e6ba4b20df067f3f0ea2aa7d6b8d30ee97aff50f56d55f8e
|
7
|
+
data.tar.gz: 3f6a1b4e58673c87f02ca79703ed7664682d43df1e874ef12131ac10507588006fa1499d9fca76725430f471dbc248c5a6b934fe480082536d7c17c8224babf2
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version
|
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
|
-
|
665
|
-
|
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
|
-
|
694
|
+
size_t i = (l + r) >> 1;
|
669
695
|
const char *iname = iter->types[i]->name;
|
670
696
|
if (iname) {
|
671
|
-
|
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
|
-
|
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
|
-
|
735
|
-
|
760
|
+
const unsigned char *u = (unsigned char *) ptr;
|
761
|
+
const unsigned char *eu = u + sz;
|
736
762
|
for (; u != eu; ++u) {
|
737
|
-
|
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
|
-
|
750
|
-
|
775
|
+
unsigned char *u = (unsigned char *) ptr;
|
776
|
+
const unsigned char *eu = u + sz;
|
751
777
|
for (; u != eu; ++u) {
|
752
|
-
|
753
|
-
|
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
|
-
|
1541
|
+
rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
1517
1542
|
free((void *) klass_name);
|
1518
1543
|
}
|
1519
1544
|
|
@@ -1830,7 +1855,7 @@ static VALUE mAIFF;
|
|
1830
1855
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1831
1856
|
|
1832
1857
|
|
1833
|
-
#define SWIGVERSION
|
1858
|
+
#define SWIGVERSION 0x030007
|
1834
1859
|
#define SWIG_VERSION SWIGVERSION
|
1835
1860
|
|
1836
1861
|
|
@@ -1911,7 +1936,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
|
|
1911
1936
|
return result;
|
1912
1937
|
}
|
1913
1938
|
for (long i = 0; i < RARRAY_LEN(ary); i++) {
|
1914
|
-
VALUE e =
|
1939
|
+
VALUE e = rb_ary_entry(ary, i);
|
1915
1940
|
TagLib::String s = ruby_string_to_taglib_string(e);
|
1916
1941
|
result.append(s);
|
1917
1942
|
}
|
@@ -1976,7 +2001,7 @@ SWIG_ruby_failed(void)
|
|
1976
2001
|
}
|
1977
2002
|
|
1978
2003
|
|
1979
|
-
/*@SWIG:/usr/local/share/swig/
|
2004
|
+
/*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
1980
2005
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
1981
2006
|
{
|
1982
2007
|
VALUE obj = args[0];
|
@@ -2648,7 +2673,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
2648
2673
|
* array with the correct data and linking the correct swig_cast_info
|
2649
2674
|
* structures together.
|
2650
2675
|
*
|
2651
|
-
* The generated swig_type_info structures are assigned
|
2676
|
+
* The generated swig_type_info structures are assigned statically to an initial
|
2652
2677
|
* array. We just loop through that array, and handle each type individually.
|
2653
2678
|
* First we lookup if this type has been already loaded, and if so, use the
|
2654
2679
|
* loaded structure instead of the generated one. Then we have to fill in the
|
@@ -2692,7 +2717,7 @@ SWIGRUNTIME void
|
|
2692
2717
|
SWIG_InitializeModule(void *clientdata) {
|
2693
2718
|
size_t i;
|
2694
2719
|
swig_module_info *module_head, *iter;
|
2695
|
-
int
|
2720
|
+
int init;
|
2696
2721
|
|
2697
2722
|
/* check to see if the circular list has been setup, if not, set it up */
|
2698
2723
|
if (swig_module.next==0) {
|
@@ -2711,22 +2736,18 @@ SWIG_InitializeModule(void *clientdata) {
|
|
2711
2736
|
/* This is the first module loaded for this interpreter */
|
2712
2737
|
/* so set the swig module into the interpreter */
|
2713
2738
|
SWIG_SetModule(clientdata, &swig_module);
|
2714
|
-
module_head = &swig_module;
|
2715
2739
|
} else {
|
2716
2740
|
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
2717
|
-
found=0;
|
2718
2741
|
iter=module_head;
|
2719
2742
|
do {
|
2720
2743
|
if (iter==&swig_module) {
|
2721
|
-
|
2722
|
-
|
2744
|
+
/* Our module is already in the list, so there's nothing more to do. */
|
2745
|
+
return;
|
2723
2746
|
}
|
2724
2747
|
iter=iter->next;
|
2725
2748
|
} while (iter!= module_head);
|
2726
2749
|
|
2727
|
-
/*
|
2728
|
-
if (found) return;
|
2729
|
-
/* otherwise we must add out module into the list */
|
2750
|
+
/* otherwise we must add our module into the list */
|
2730
2751
|
swig_module.next = module_head->next;
|
2731
2752
|
module_head->next = &swig_module;
|
2732
2753
|
}
|
data/ext/taglib_base/includes.i
CHANGED
@@ -81,7 +81,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
|
|
81
81
|
return result;
|
82
82
|
}
|
83
83
|
for (long i = 0; i < RARRAY_LEN(ary); i++) {
|
84
|
-
VALUE e =
|
84
|
+
VALUE e = rb_ary_entry(ary, i);
|
85
85
|
TagLib::String s = ruby_string_to_taglib_string(e);
|
86
86
|
result.append(s);
|
87
87
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version
|
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
|
-
|
665
|
-
|
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
|
-
|
694
|
+
size_t i = (l + r) >> 1;
|
669
695
|
const char *iname = iter->types[i]->name;
|
670
696
|
if (iname) {
|
671
|
-
|
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
|
-
|
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
|
-
|
735
|
-
|
760
|
+
const unsigned char *u = (unsigned char *) ptr;
|
761
|
+
const unsigned char *eu = u + sz;
|
736
762
|
for (; u != eu; ++u) {
|
737
|
-
|
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
|
-
|
750
|
-
|
775
|
+
unsigned char *u = (unsigned char *) ptr;
|
776
|
+
const unsigned char *eu = u + sz;
|
751
777
|
for (; u != eu; ++u) {
|
752
|
-
|
753
|
-
|
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
|
-
|
1541
|
+
rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
1517
1542
|
free((void *) klass_name);
|
1518
1543
|
}
|
1519
1544
|
|
@@ -1832,7 +1857,7 @@ static VALUE mTagLib;
|
|
1832
1857
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1833
1858
|
|
1834
1859
|
|
1835
|
-
#define SWIGVERSION
|
1860
|
+
#define SWIGVERSION 0x030007
|
1836
1861
|
#define SWIG_VERSION SWIGVERSION
|
1837
1862
|
|
1838
1863
|
|
@@ -1914,7 +1939,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
|
|
1914
1939
|
return result;
|
1915
1940
|
}
|
1916
1941
|
for (long i = 0; i < RARRAY_LEN(ary); i++) {
|
1917
|
-
VALUE e =
|
1942
|
+
VALUE e = rb_ary_entry(ary, i);
|
1918
1943
|
TagLib::String s = ruby_string_to_taglib_string(e);
|
1919
1944
|
result.append(s);
|
1920
1945
|
}
|
@@ -2053,7 +2078,7 @@ SWIG_ruby_failed(void)
|
|
2053
2078
|
}
|
2054
2079
|
|
2055
2080
|
|
2056
|
-
/*@SWIG:/usr/local/share/swig/
|
2081
|
+
/*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2057
2082
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
2058
2083
|
{
|
2059
2084
|
VALUE obj = args[0];
|
@@ -2105,7 +2130,7 @@ SWIG_From_bool (bool value)
|
|
2105
2130
|
}
|
2106
2131
|
|
2107
2132
|
|
2108
|
-
/*@SWIG:/usr/local/share/swig/
|
2133
|
+
/*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2109
2134
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
2110
2135
|
{
|
2111
2136
|
VALUE obj = args[0];
|
@@ -4811,7 +4836,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4811
4836
|
* array with the correct data and linking the correct swig_cast_info
|
4812
4837
|
* structures together.
|
4813
4838
|
*
|
4814
|
-
* The generated swig_type_info structures are assigned
|
4839
|
+
* The generated swig_type_info structures are assigned statically to an initial
|
4815
4840
|
* array. We just loop through that array, and handle each type individually.
|
4816
4841
|
* First we lookup if this type has been already loaded, and if so, use the
|
4817
4842
|
* loaded structure instead of the generated one. Then we have to fill in the
|
@@ -4855,7 +4880,7 @@ SWIGRUNTIME void
|
|
4855
4880
|
SWIG_InitializeModule(void *clientdata) {
|
4856
4881
|
size_t i;
|
4857
4882
|
swig_module_info *module_head, *iter;
|
4858
|
-
int
|
4883
|
+
int init;
|
4859
4884
|
|
4860
4885
|
/* check to see if the circular list has been setup, if not, set it up */
|
4861
4886
|
if (swig_module.next==0) {
|
@@ -4874,22 +4899,18 @@ SWIG_InitializeModule(void *clientdata) {
|
|
4874
4899
|
/* This is the first module loaded for this interpreter */
|
4875
4900
|
/* so set the swig module into the interpreter */
|
4876
4901
|
SWIG_SetModule(clientdata, &swig_module);
|
4877
|
-
module_head = &swig_module;
|
4878
4902
|
} else {
|
4879
4903
|
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
4880
|
-
found=0;
|
4881
4904
|
iter=module_head;
|
4882
4905
|
do {
|
4883
4906
|
if (iter==&swig_module) {
|
4884
|
-
|
4885
|
-
|
4907
|
+
/* Our module is already in the list, so there's nothing more to do. */
|
4908
|
+
return;
|
4886
4909
|
}
|
4887
4910
|
iter=iter->next;
|
4888
4911
|
} while (iter!= module_head);
|
4889
4912
|
|
4890
|
-
/*
|
4891
|
-
if (found) return;
|
4892
|
-
/* otherwise we must add out module into the list */
|
4913
|
+
/* otherwise we must add our module into the list */
|
4893
4914
|
swig_module.next = module_head->next;
|
4894
4915
|
module_head->next = &swig_module;
|
4895
4916
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version
|
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
|
-
|
665
|
-
|
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
|
-
|
694
|
+
size_t i = (l + r) >> 1;
|
669
695
|
const char *iname = iter->types[i]->name;
|
670
696
|
if (iname) {
|
671
|
-
|
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
|
-
|
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
|
-
|
735
|
-
|
760
|
+
const unsigned char *u = (unsigned char *) ptr;
|
761
|
+
const unsigned char *eu = u + sz;
|
736
762
|
for (; u != eu; ++u) {
|
737
|
-
|
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
|
-
|
750
|
-
|
775
|
+
unsigned char *u = (unsigned char *) ptr;
|
776
|
+
const unsigned char *eu = u + sz;
|
751
777
|
for (; u != eu; ++u) {
|
752
|
-
|
753
|
-
|
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
|
-
|
1541
|
+
rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
1517
1542
|
free((void *) klass_name);
|
1518
1543
|
}
|
1519
1544
|
|
@@ -1839,7 +1864,7 @@ static VALUE mFLAC;
|
|
1839
1864
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1840
1865
|
|
1841
1866
|
|
1842
|
-
#define SWIGVERSION
|
1867
|
+
#define SWIGVERSION 0x030007
|
1843
1868
|
#define SWIG_VERSION SWIGVERSION
|
1844
1869
|
|
1845
1870
|
|
@@ -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 =
|
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
|
}
|
@@ -1988,7 +2013,7 @@ SWIG_ruby_failed(void)
|
|
1988
2013
|
}
|
1989
2014
|
|
1990
2015
|
|
1991
|
-
/*@SWIG:/usr/local/share/swig/
|
2016
|
+
/*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
1992
2017
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
1993
2018
|
{
|
1994
2019
|
VALUE obj = args[0];
|
@@ -4239,7 +4264,7 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
4239
4264
|
* array with the correct data and linking the correct swig_cast_info
|
4240
4265
|
* structures together.
|
4241
4266
|
*
|
4242
|
-
* The generated swig_type_info structures are assigned
|
4267
|
+
* The generated swig_type_info structures are assigned statically to an initial
|
4243
4268
|
* array. We just loop through that array, and handle each type individually.
|
4244
4269
|
* First we lookup if this type has been already loaded, and if so, use the
|
4245
4270
|
* loaded structure instead of the generated one. Then we have to fill in the
|
@@ -4283,7 +4308,7 @@ SWIGRUNTIME void
|
|
4283
4308
|
SWIG_InitializeModule(void *clientdata) {
|
4284
4309
|
size_t i;
|
4285
4310
|
swig_module_info *module_head, *iter;
|
4286
|
-
int
|
4311
|
+
int init;
|
4287
4312
|
|
4288
4313
|
/* check to see if the circular list has been setup, if not, set it up */
|
4289
4314
|
if (swig_module.next==0) {
|
@@ -4302,22 +4327,18 @@ SWIG_InitializeModule(void *clientdata) {
|
|
4302
4327
|
/* This is the first module loaded for this interpreter */
|
4303
4328
|
/* so set the swig module into the interpreter */
|
4304
4329
|
SWIG_SetModule(clientdata, &swig_module);
|
4305
|
-
module_head = &swig_module;
|
4306
4330
|
} else {
|
4307
4331
|
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
4308
|
-
found=0;
|
4309
4332
|
iter=module_head;
|
4310
4333
|
do {
|
4311
4334
|
if (iter==&swig_module) {
|
4312
|
-
|
4313
|
-
|
4335
|
+
/* Our module is already in the list, so there's nothing more to do. */
|
4336
|
+
return;
|
4314
4337
|
}
|
4315
4338
|
iter=iter->next;
|
4316
4339
|
} while (iter!= module_head);
|
4317
4340
|
|
4318
|
-
/*
|
4319
|
-
if (found) return;
|
4320
|
-
/* otherwise we must add out module into the list */
|
4341
|
+
/* otherwise we must add our module into the list */
|
4321
4342
|
swig_module.next = module_head->next;
|
4322
4343
|
module_head->next = &swig_module;
|
4323
4344
|
}
|