1 |
aballier 08/06/01 23:08:03 |
2 |
|
3 |
Modified: series |
4 |
Added: 080_all_endian_typo.patch 090_all_gcc_4.3.patch |
5 |
100_all_reconf_warnings.patch 110_all_libtool.patch |
6 |
Log: |
7 |
Add various patches: gcc 4.3 and endianness typo ported from debian by Peter Alfredsen <loki_val@g.o>, bug #219438, another one to shut up autofoo warnings and a last one to fix build with new libtools |
8 |
|
9 |
Revision Changes Path |
10 |
1.5 src/patchsets/rezound/0.12.3_beta/series |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/series?rev=1.5&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/series?rev=1.5&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/series?r1=1.4&r2=1.5 |
15 |
|
16 |
Index: series |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo/src/patchsets/rezound/0.12.3_beta/series,v |
19 |
retrieving revision 1.4 |
20 |
retrieving revision 1.5 |
21 |
diff -u -r1.4 -r1.5 |
22 |
--- series 20 Apr 2008 20:18:27 -0000 1.4 |
23 |
+++ series 1 Jun 2008 23:08:02 -0000 1.5 |
24 |
@@ -5,3 +5,7 @@ |
25 |
050_all_portaudio19.patch |
26 |
060_all_raw_save.patch |
27 |
070_all_m4.patch |
28 |
+080_all_endian_typo.patch |
29 |
+090_all_gcc_4.3.patch |
30 |
+100_all_reconf_warnings.patch |
31 |
+110_all_libtool.patch |
32 |
|
33 |
|
34 |
|
35 |
1.1 src/patchsets/rezound/0.12.3_beta/080_all_endian_typo.patch |
36 |
|
37 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/080_all_endian_typo.patch?rev=1.1&view=markup |
38 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/080_all_endian_typo.patch?rev=1.1&content-type=text/plain |
39 |
|
40 |
Index: 080_all_endian_typo.patch |
41 |
=================================================================== |
42 |
--- rezound-0.12.2beta.orig/src/backend/COSSSoundPlayer.cpp 2007-01-28 13:39:58.039273892 +0100 |
43 |
+++ rezound-0.12.2beta/src/backend/COSSSoundPlayer.cpp 2007-01-28 13:40:04.931273892 +0100 |
44 |
@@ -83,7 +83,7 @@ |
45 |
int sampleSize=0; |
46 |
string sSampleFormat="none"; |
47 |
#warning need to change this to try several formats for a supported implementation because float is being reduced to 16bit right now |
48 |
-#ifndef WORDS_BIGENDIN |
49 |
+#ifndef WORDS_BIGENDIAN |
50 |
// little endian platform |
51 |
#if defined(SAMPLE_TYPE_S16) |
52 |
sampleFormat=AFMT_S16_LE; |
53 |
|
54 |
|
55 |
|
56 |
1.1 src/patchsets/rezound/0.12.3_beta/090_all_gcc_4.3.patch |
57 |
|
58 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/090_all_gcc_4.3.patch?rev=1.1&view=markup |
59 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/090_all_gcc_4.3.patch?rev=1.1&content-type=text/plain |
60 |
|
61 |
Index: 090_all_gcc_4.3.patch |
62 |
=================================================================== |
63 |
diff -Naur rezound-0.12.3beta~/src/backend/ALFO.h rezound-0.12.3beta/src/backend/ALFO.h |
64 |
--- rezound-0.12.3beta~/src/backend/ALFO.h 2008-03-18 22:20:36.000000000 -0400 |
65 |
+++ rezound-0.12.3beta/src/backend/ALFO.h 2008-03-18 22:30:06.000000000 -0400 |
66 |
@@ -21,6 +21,16 @@ |
67 |
#ifndef __ALFO_H__ |
68 |
#define __ALFO_H__ |
69 |
|
70 |
+#ifndef GCC_VERSION |
71 |
+#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
72 |
+#endif |
73 |
+ |
74 |
+#if GCC_VERSION >= 403 |
75 |
+# define STATIC |
76 |
+#else |
77 |
+# define STATIC static |
78 |
+#endif |
79 |
+ |
80 |
#include "../../config/common.h" |
81 |
|
82 |
#include "CSound_defs.h" |
83 |
@@ -94,7 +104,7 @@ |
84 |
}; |
85 |
|
86 |
#include <CNestedDataFile/anytype.h> |
87 |
-template<> static const CLFODescription string_to_anytype<CLFODescription>(const string &str,CLFODescription &ret) |
88 |
+template<> STATIC const CLFODescription string_to_anytype<CLFODescription>(const string &str,CLFODescription &ret) |
89 |
{ |
90 |
CNestedDataFile f; |
91 |
f.parseString(s2at::remove_surrounding_quotes(str)); |
92 |
@@ -102,7 +112,7 @@ |
93 |
return ret; |
94 |
} |
95 |
|
96 |
-template<> static const string anytype_to_string<CLFODescription>(const CLFODescription &any) |
97 |
+template<> STATIC const string anytype_to_string<CLFODescription>(const CLFODescription &any) |
98 |
{ |
99 |
CNestedDataFile f; any.writeToFile(&f,""); |
100 |
return "\""+s2at::escape_chars(istring(f.asString()).searchAndReplace("\n"," ",true))+"\""; |
101 |
diff -Naur rezound-0.12.3beta~/src/backend/CGraphParamValueNode.h rezound-0.12.3beta/src/backend/CGraphParamValueNode.h |
102 |
--- rezound-0.12.3beta~/src/backend/CGraphParamValueNode.h 2008-03-18 22:20:36.000000000 -0400 |
103 |
+++ rezound-0.12.3beta/src/backend/CGraphParamValueNode.h 2008-03-18 22:33:30.000000000 -0400 |
104 |
@@ -21,6 +21,15 @@ |
105 |
#ifndef __CGraphParamValueNode_H__ |
106 |
#define __CGraphParamValueNode_H__ |
107 |
|
108 |
+#ifndef GCC_VERSION |
109 |
+#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
110 |
+#endif |
111 |
+ |
112 |
+#if GCC_VERSION >= 403 |
113 |
+# define STATIC |
114 |
+#else |
115 |
+# define STATIC static |
116 |
+#endif |
117 |
|
118 |
#include "../../config/common.h" |
119 |
|
120 |
@@ -45,7 +54,7 @@ |
121 |
typedef vector<CGraphParamValueNode> CGraphParamValueNodeList; |
122 |
|
123 |
#include <CNestedDataFile/anytype.h> |
124 |
-template<> static const CGraphParamValueNode string_to_anytype<CGraphParamValueNode>(const string &_str,CGraphParamValueNode &ret) |
125 |
+template<> STATIC const CGraphParamValueNode string_to_anytype<CGraphParamValueNode>(const string &_str,CGraphParamValueNode &ret) |
126 |
{ |
127 |
const string str=s2at::remove_surrounding_quotes(_str); |
128 |
const size_t pos=str.find("|"); |
129 |
@@ -56,7 +65,7 @@ |
130 |
return ret; |
131 |
} |
132 |
|
133 |
-template<> static const string anytype_to_string<CGraphParamValueNode>(const CGraphParamValueNode &any) |
134 |
+template<> STATIC const string anytype_to_string<CGraphParamValueNode>(const CGraphParamValueNode &any) |
135 |
{ |
136 |
return "\""+anytype_to_string<double>(any.x)+"|"+anytype_to_string<double>(any.y)+"\""; |
137 |
} |
138 |
diff -Naur rezound-0.12.3beta~/src/backend/CPluginMapping.h rezound-0.12.3beta/src/backend/CPluginMapping.h |
139 |
--- rezound-0.12.3beta~/src/backend/CPluginMapping.h 2008-03-18 22:20:36.000000000 -0400 |
140 |
+++ rezound-0.12.3beta/src/backend/CPluginMapping.h 2008-03-18 22:30:22.000000000 -0400 |
141 |
@@ -21,6 +21,16 @@ |
142 |
#ifndef __CPluginMapping_H__ |
143 |
#define __CPluginMapping_H__ |
144 |
|
145 |
+#ifndef GCC_VERSION |
146 |
+#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
147 |
+#endif |
148 |
+ |
149 |
+#if GCC_VERSION >= 403 |
150 |
+# define STATIC |
151 |
+#else |
152 |
+# define STATIC static |
153 |
+#endif |
154 |
+ |
155 |
#include "../../config/common.h" |
156 |
|
157 |
#include <string> |
158 |
@@ -215,7 +225,7 @@ |
159 |
}; |
160 |
|
161 |
#include <CNestedDataFile/anytype.h> |
162 |
-template<> static const CPluginMapping string_to_anytype<CPluginMapping>(const string &str,CPluginMapping &ret) |
163 |
+template<> STATIC const CPluginMapping string_to_anytype<CPluginMapping>(const string &str,CPluginMapping &ret) |
164 |
{ |
165 |
CNestedDataFile f; |
166 |
f.parseString(s2at::remove_surrounding_quotes(str)); |
167 |
@@ -223,7 +233,7 @@ |
168 |
return ret; |
169 |
} |
170 |
|
171 |
-template<> static const string anytype_to_string<CPluginMapping>(const CPluginMapping &any) |
172 |
+template<> STATIC const string anytype_to_string<CPluginMapping>(const CPluginMapping &any) |
173 |
{ |
174 |
CNestedDataFile f; |
175 |
any.writeToFile(&f,""); |
176 |
diff -Naur rezound-0.12.3beta~/src/backend/CSound_defs.h rezound-0.12.3beta/src/backend/CSound_defs.h |
177 |
--- rezound-0.12.3beta~/src/backend/CSound_defs.h 2008-03-18 22:20:36.000000000 -0400 |
178 |
+++ rezound-0.12.3beta/src/backend/CSound_defs.h 2008-03-18 22:31:38.000000000 -0400 |
179 |
@@ -21,6 +21,16 @@ |
180 |
#ifndef __CSound_defs_H__ |
181 |
#define __CSound_defs_H__ |
182 |
|
183 |
+#ifndef GCC_VERSION |
184 |
+#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
185 |
+#endif |
186 |
+ |
187 |
+#if GCC_VERSION >= 403 |
188 |
+# define STATIC |
189 |
+#else |
190 |
+# define STATIC static |
191 |
+#endif |
192 |
+ |
193 |
#include "../../config/common.h" |
194 |
|
195 |
class CSound; |
196 |
@@ -161,10 +171,10 @@ |
197 |
|
198 |
// int8_t -> ... |
199 |
// int8_t -> int8_t |
200 |
- template<> static inline const int8_t convert_sample<int8_t,int8_t>(const register int8_t sample) { return sample; } |
201 |
+ template<> STATIC inline const int8_t convert_sample<int8_t,int8_t>(const register int8_t sample) { return sample; } |
202 |
|
203 |
// int8_t -> int16_t |
204 |
- template<> static inline const int16_t convert_sample<int8_t,int16_t>(const register int8_t sample) { return sample*256; } |
205 |
+ template<> STATIC inline const int16_t convert_sample<int8_t,int16_t>(const register int8_t sample) { return sample*256; } |
206 |
|
207 |
// int8_t -> int24_t |
208 |
//template<> static inline const int24_t convert_sample<int8_t,int24_t>(const register int8_t sample) { } |
209 |
@@ -173,7 +183,7 @@ |
210 |
//template<> static inline const int32_t convert_sample<int8_t,int32_t>(const register int8_t sample) { } |
211 |
|
212 |
// int8_t -> float |
213 |
- template<> static inline const float convert_sample<int8_t,float>(const register int8_t sample) { return ((float)sample)/127.0f; } |
214 |
+ template<> STATIC inline const float convert_sample<int8_t,float>(const register int8_t sample) { return ((float)sample)/127.0f; } |
215 |
|
216 |
// int8_t -> double |
217 |
//template<> static inline const double convert_sample<int8_t,double>(const register int8_t sample) { } |
218 |
@@ -181,22 +191,22 @@ |
219 |
|
220 |
// int16_t -> ... |
221 |
// int16_t -> int8_t |
222 |
- template<> static inline const int8_t convert_sample<int16_t,int8_t>(const register int16_t sample) { return sample/256; } |
223 |
+ template<> STATIC inline const int8_t convert_sample<int16_t,int8_t>(const register int16_t sample) { return sample/256; } |
224 |
|
225 |
// int16_t -> int16_t |
226 |
- template<> static inline const int16_t convert_sample<int16_t,int16_t>(const register int16_t sample) { return sample; } |
227 |
+ template<> STATIC inline const int16_t convert_sample<int16_t,int16_t>(const register int16_t sample) { return sample; } |
228 |
|
229 |
// int16_t -> int24_t |
230 |
- template<> static inline const int24_t convert_sample<int16_t,int24_t>(const register int16_t sample) { int24_t r; r.set(sample*256); return r; } |
231 |
+ template<> STATIC inline const int24_t convert_sample<int16_t,int24_t>(const register int16_t sample) { int24_t r; r.set(sample*256); return r; } |
232 |
|
233 |
// int16_t -> int32_t |
234 |
- template<> static inline const int32_t convert_sample<int16_t,int32_t>(const register int16_t sample) { return sample*65536; } |
235 |
+ template<> STATIC inline const int32_t convert_sample<int16_t,int32_t>(const register int16_t sample) { return sample*65536; } |
236 |
|
237 |
// int16_t -> float |
238 |
- template<> static inline const float convert_sample<int16_t,float>(const register int16_t sample) { return (float)sample/32767.0f; } |
239 |
+ template<> STATIC inline const float convert_sample<int16_t,float>(const register int16_t sample) { return (float)sample/32767.0f; } |
240 |
|
241 |
// int16_t -> double |
242 |
- template<> static inline const double convert_sample<int16_t,double>(const register int16_t sample) { return (double)sample/32767.0; } |
243 |
+ template<> STATIC inline const double convert_sample<int16_t,double>(const register int16_t sample) { return (double)sample/32767.0; } |
244 |
|
245 |
|
246 |
// int24_t -> ... |
247 |
@@ -204,16 +214,16 @@ |
248 |
//template<> static inline const int8_t convert_sample<int24_t,int8_t>(const int24_t sample) { } |
249 |
|
250 |
// int24_t -> int16_t |
251 |
- template<> static inline const int16_t convert_sample<int24_t,int16_t>(const int24_t sample) { return sample.get()>>8; } |
252 |
+ template<> STATIC inline const int16_t convert_sample<int24_t,int16_t>(const int24_t sample) { return sample.get()>>8; } |
253 |
|
254 |
// int24_t -> int24_t |
255 |
- template<> static inline const int24_t convert_sample<int24_t,int24_t>(const int24_t sample) { return sample; } |
256 |
+ template<> STATIC inline const int24_t convert_sample<int24_t,int24_t>(const int24_t sample) { return sample; } |
257 |
|
258 |
// int24_t -> int32_t |
259 |
//template<> static inline const int32_t convert_sample<int24_t,int32_t>(const int24_t sample) { } |
260 |
|
261 |
// int24_t -> float |
262 |
- template<> static inline const float convert_sample<int24_t,float>(const int24_t sample) { return sample.get()/8388607.0f; } |
263 |
+ template<> STATIC inline const float convert_sample<int24_t,float>(const int24_t sample) { return sample.get()/8388607.0f; } |
264 |
|
265 |
// int24_t -> double |
266 |
//template<> static inline const double convert_sample<int24_t,double>(const int24_t sample) { } |
267 |
@@ -224,16 +234,16 @@ |
268 |
//template<> static inline const int8_t convert_sample<int32_t,int8_t>(const register int32_t sample) { } |
269 |
|
270 |
// int32_t -> int16_t |
271 |
- template<> static inline const int16_t convert_sample<int32_t,int16_t>(const register int32_t sample) { return sample/65536; } |
272 |
+ template<> STATIC inline const int16_t convert_sample<int32_t,int16_t>(const register int32_t sample) { return sample/65536; } |
273 |
|
274 |
// int32_t -> int24_t |
275 |
//template<> static inline const int24_t convert_sample<int32_t,int24_t>(const register int32_t sample) { } |
276 |
|
277 |
// int32_t -> int32_t |
278 |
- template<> static inline const int32_t convert_sample<int32_t,int32_t>(const register int32_t sample) { return sample; } |
279 |
+ template<> STATIC inline const int32_t convert_sample<int32_t,int32_t>(const register int32_t sample) { return sample; } |
280 |
|
281 |
// int32_t -> float |
282 |
- template<> static inline const float convert_sample<int32_t,float>(const register int32_t sample) { return ((double)sample)/2147483647.0; } |
283 |
+ template<> STATIC inline const float convert_sample<int32_t,float>(const register int32_t sample) { return ((double)sample)/2147483647.0; } |
284 |
|
285 |
// int32_t -> double |
286 |
//template<> static inline const double convert_sample<int32_t,double >(const register int32_t sample) { } |
287 |
@@ -241,22 +251,22 @@ |
288 |
|
289 |
// float -> ... |
290 |
// float -> int8_t |
291 |
- template<> static inline const int8_t convert_sample<float,int8_t>(const register float sample) { return (int8_t)floorf((sample>1.0f ? 1.0f : (sample<-1.0f ? -1.0f : sample))*127.0f); } |
292 |
+ template<> STATIC inline const int8_t convert_sample<float,int8_t>(const register float sample) { return (int8_t)floorf((sample>1.0f ? 1.0f : (sample<-1.0f ? -1.0f : sample))*127.0f); } |
293 |
|
294 |
// float -> int16_t |
295 |
- template<> static inline const int16_t convert_sample<float,int16_t>(const register float sample) { return (int16_t)floorf((sample>1.0f ? 1.0f : (sample<-1.0f ? -1.0f : sample))*32767.0f); } |
296 |
+ template<> STATIC inline const int16_t convert_sample<float,int16_t>(const register float sample) { return (int16_t)floorf((sample>1.0f ? 1.0f : (sample<-1.0f ? -1.0f : sample))*32767.0f); } |
297 |
|
298 |
// float -> int24_t |
299 |
- template<> static inline const int24_t convert_sample<float,int24_t>(const register float sample) { int24_t r; r.set((int_fast32_t)floorf((sample>1.0f ? 1.0f : (sample<-1.0f ? -1.0f : sample))*8388607.0f)); return r; } |
300 |
+ template<> STATIC inline const int24_t convert_sample<float,int24_t>(const register float sample) { int24_t r; r.set((int_fast32_t)floorf((sample>1.0f ? 1.0f : (sample<-1.0f ? -1.0f : sample))*8388607.0f)); return r; } |
301 |
|
302 |
// float -> int32_t |
303 |
- template<> static inline const int32_t convert_sample<float,int32_t>(const register float sample) { return (int32_t) floor((double)(sample>1.0f ? 1.0f : (sample<-1.0f ? -1.0f : sample)) * 2147483647.0); } |
304 |
+ template<> STATIC inline const int32_t convert_sample<float,int32_t>(const register float sample) { return (int32_t) floor((double)(sample>1.0f ? 1.0f : (sample<-1.0f ? -1.0f : sample)) * 2147483647.0); } |
305 |
|
306 |
// float -> float |
307 |
- template<> static inline const float convert_sample<float,float>(const register float sample) { return sample; } |
308 |
+ template<> STATIC inline const float convert_sample<float,float>(const register float sample) { return sample; } |
309 |
|
310 |
// float -> double |
311 |
- template<> static inline const double convert_sample<float,double>(const register float sample) { return (double)sample; } |
312 |
+ template<> STATIC inline const double convert_sample<float,double>(const register float sample) { return (double)sample; } |
313 |
|
314 |
|
315 |
// double -> ... |
316 |
@@ -264,7 +274,7 @@ |
317 |
//template<> static inline const int8_t convert_sample<double,int8_t>(const register double sample) { } |
318 |
|
319 |
// double -> int16_t |
320 |
- template<> static inline const int16_t convert_sample<double,int16_t>(const register double sample) { return (int16_t)floor((sample>1.0 ? 1.0 : (sample<-1.0 ? -1.0 : sample))*32767.0); } |
321 |
+ template<> STATIC inline const int16_t convert_sample<double,int16_t>(const register double sample) { return (int16_t)floor((sample>1.0 ? 1.0 : (sample<-1.0 ? -1.0 : sample))*32767.0); } |
322 |
|
323 |
// double -> int24_t |
324 |
//template<> static inline const int24_t convert_sample<double,int24_t>(const register double sample) { } |
325 |
@@ -273,10 +283,10 @@ |
326 |
//template<> static inline const int32_t convert_sample<double,int32_t>(const register double sample) { } |
327 |
|
328 |
// double -> float |
329 |
- template<> static inline const float convert_sample<double,float>(const register double sample) { return (float)sample; } |
330 |
+ template<> STATIC inline const float convert_sample<double,float>(const register double sample) { return (float)sample; } |
331 |
|
332 |
// double -> double |
333 |
- template<> static inline const double convert_sample<double,double>(const register double sample) { return sample; } |
334 |
+ template<> STATIC inline const double convert_sample<double,double>(const register double sample) { return sample; } |
335 |
|
336 |
|
337 |
|
338 |
diff -Naur rezound-0.12.3beta~/src/backend/Generate/CGenerateNoiseAction.cpp rezound-0.12.3beta/src/backend/Generate/CGenerateNoiseAction.cpp |
339 |
--- rezound-0.12.3beta~/src/backend/Generate/CGenerateNoiseAction.cpp 2008-03-18 22:20:36.000000000 -0400 |
340 |
+++ rezound-0.12.3beta/src/backend/Generate/CGenerateNoiseAction.cpp 2008-03-18 22:33:05.000000000 -0400 |
341 |
@@ -22,6 +22,7 @@ |
342 |
#include "CGenerateNoiseAction.h" |
343 |
|
344 |
#include "../CActionParameters.h" |
345 |
+#include <cstdlib> |
346 |
|
347 |
CGenerateNoiseAction::CGenerateNoiseAction(const AActionFactory *factory,const CActionSound *actionSound,const double _noiseLength,const double _volume,const NoiseTypes _noiseType,const StereoImage _stereoImage,const double _maxParticleVelocity): |
348 |
AAction(factory,actionSound), |
349 |
diff -Naur rezound-0.12.3beta~/src/misc/CNestedDataFile/anytype.h rezound-0.12.3beta/src/misc/CNestedDataFile/anytype.h |
350 |
--- rezound-0.12.3beta~/src/misc/CNestedDataFile/anytype.h 2008-03-18 22:20:36.000000000 -0400 |
351 |
+++ rezound-0.12.3beta/src/misc/CNestedDataFile/anytype.h 2008-03-18 22:33:11.000000000 -0400 |
352 |
@@ -20,6 +20,16 @@ |
353 |
#ifndef __anytype_H__ |
354 |
#define __anytype_H__ |
355 |
|
356 |
+#ifndef GCC_VERSION |
357 |
+#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
358 |
+#endif |
359 |
+ |
360 |
+#if GCC_VERSION >= 403 |
361 |
+# define STATIC |
362 |
+#else |
363 |
+# define STATIC static |
364 |
+#endif |
365 |
+ |
366 |
#include <sstream> |
367 |
#include <string> |
368 |
#include <vector> // for the vector implemenation to/from string |
369 |
@@ -67,28 +77,28 @@ |
370 |
|
371 |
// template specializations of string_to_anytype |
372 |
|
373 |
-template<> static const string string_to_anytype<string>(const string &str,string &ret) { return s2at::unescape_chars(s2at::remove_surrounding_quotes(str)); } |
374 |
+template<> STATIC const string string_to_anytype<string>(const string &str,string &ret) { return s2at::unescape_chars(s2at::remove_surrounding_quotes(str)); } |
375 |
|
376 |
-template<> static const bool string_to_anytype<bool>(const string &str,bool &ret) { return s2at::remove_surrounding_quotes(str)=="true" ? ret=true : ret=false; } |
377 |
+template<> STATIC const bool string_to_anytype<bool>(const string &str,bool &ret) { return s2at::remove_surrounding_quotes(str)=="true" ? ret=true : ret=false; } |
378 |
|
379 |
-template<> static const char string_to_anytype<char>(const string &str,char &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
380 |
-template<> static const unsigned char string_to_anytype<unsigned char>(const string &str,unsigned char &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
381 |
+template<> STATIC const char string_to_anytype<char>(const string &str,char &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
382 |
+template<> STATIC const unsigned char string_to_anytype<unsigned char>(const string &str,unsigned char &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
383 |
|
384 |
-template<> static const short string_to_anytype<short>(const string &str,short &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
385 |
-template<> static const unsigned short string_to_anytype<unsigned short>(const string &str,unsigned short &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
386 |
+template<> STATIC const short string_to_anytype<short>(const string &str,short &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
387 |
+template<> STATIC const unsigned short string_to_anytype<unsigned short>(const string &str,unsigned short &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
388 |
|
389 |
-template<> static const int string_to_anytype<int>(const string &str,int &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
390 |
-template<> static const unsigned int string_to_anytype<unsigned int>(const string &str,unsigned int &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
391 |
+template<> STATIC const int string_to_anytype<int>(const string &str,int &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
392 |
+template<> STATIC const unsigned int string_to_anytype<unsigned int>(const string &str,unsigned int &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
393 |
|
394 |
-template<> static const long string_to_anytype<long>(const string &str,long &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
395 |
-template<> static const unsigned long string_to_anytype<unsigned long>(const string &str,unsigned long &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
396 |
+template<> STATIC const long string_to_anytype<long>(const string &str,long &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
397 |
+template<> STATIC const unsigned long string_to_anytype<unsigned long>(const string &str,unsigned long &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
398 |
|
399 |
-template<> static const long long string_to_anytype<long long>(const string &str,long long &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
400 |
-template<> static const unsigned long long string_to_anytype<unsigned long long>(const string &str,unsigned long long &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
401 |
+template<> STATIC const long long string_to_anytype<long long>(const string &str,long long &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
402 |
+template<> STATIC const unsigned long long string_to_anytype<unsigned long long>(const string &str,unsigned long long &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0; ss >> ret; return ret; } |
403 |
|
404 |
-template<> static const float string_to_anytype<float>(const string &str,float &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0.0f; ss >> ret; return ret; } |
405 |
-template<> static const double string_to_anytype<double>(const string &str,double &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0.0; ss >> ret; return ret; } |
406 |
-template<> static const long double string_to_anytype<long double>(const string &str,long double &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0.0; ss >> ret; return ret; } |
407 |
+template<> STATIC const float string_to_anytype<float>(const string &str,float &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0.0f; ss >> ret; return ret; } |
408 |
+template<> STATIC const double string_to_anytype<double>(const string &str,double &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0.0; ss >> ret; return ret; } |
409 |
+template<> STATIC const long double string_to_anytype<long double>(const string &str,long double &ret) { istringstream ss(s2at::remove_surrounding_quotes(str)); NO_LOCALE(ss) ret=0.0; ss >> ret; return ret; } |
410 |
|
411 |
// I really wished that I didn't have to explicitly use 'vector' in the definition; I'd have like to use any container with an iterator interface |
412 |
#include <CMutex.h> |
413 |
@@ -119,31 +129,31 @@ |
414 |
|
415 |
// template specializations of anytype_to_string |
416 |
|
417 |
-template<> static const string anytype_to_string<string>(const string &any) { return "\""+s2at::escape_chars(any)+"\""; } |
418 |
+template<> STATIC const string anytype_to_string<string>(const string &any) { return "\""+s2at::escape_chars(any)+"\""; } |
419 |
|
420 |
-template<> static const string anytype_to_string<bool>(const bool &any) { return any ? "true" : "false"; } |
421 |
+template<> STATIC const string anytype_to_string<bool>(const bool &any) { return any ? "true" : "false"; } |
422 |
|
423 |
-template<> static const string anytype_to_string<char>(const char &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
424 |
-template<> static const string anytype_to_string<unsigned char>(const unsigned char &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
425 |
+template<> STATIC const string anytype_to_string<char>(const char &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
426 |
+template<> STATIC const string anytype_to_string<unsigned char>(const unsigned char &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
427 |
|
428 |
-template<> static const string anytype_to_string<short>(const short &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
429 |
-template<> static const string anytype_to_string<unsigned short>(const unsigned short &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
430 |
+template<> STATIC const string anytype_to_string<short>(const short &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
431 |
+template<> STATIC const string anytype_to_string<unsigned short>(const unsigned short &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
432 |
|
433 |
-template<> static const string anytype_to_string<int>(const int &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
434 |
-template<> static const string anytype_to_string<unsigned int>(const unsigned int &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
435 |
+template<> STATIC const string anytype_to_string<int>(const int &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
436 |
+template<> STATIC const string anytype_to_string<unsigned int>(const unsigned int &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
437 |
|
438 |
-template<> static const string anytype_to_string<long>(const long &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
439 |
-template<> static const string anytype_to_string<unsigned long>(const unsigned long &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
440 |
+template<> STATIC const string anytype_to_string<long>(const long &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
441 |
+template<> STATIC const string anytype_to_string<unsigned long>(const unsigned long &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
442 |
|
443 |
-template<> static const string anytype_to_string<long long>(const long long &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
444 |
-template<> static const string anytype_to_string<unsigned long long>(const unsigned long long &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
445 |
+template<> STATIC const string anytype_to_string<long long>(const long long &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
446 |
+template<> STATIC const string anytype_to_string<unsigned long long>(const unsigned long long &any) { ostringstream ss; NO_LOCALE(ss) ss << any; return ss.str(); } |
447 |
|
448 |
// I've picked a rather arbitrary way of formatting floats one way or another depending on how big it is.. I wish there were a way to output the ascii in such a way as to preserve all the information in the float (without printing the hex of it or something like that) |
449 |
#include <istring> |
450 |
#include <math.h> // for isnan which I hope is there (maybe fix in common.h if it's not |
451 |
-template<> static const string anytype_to_string<float>(const float &any) { if(isnan(any)) return "0"; else { ostringstream ss; NO_LOCALE(ss) if(any>999999.0) {ss.setf(ios::scientific); ss.width(0); ss.precision(12); ss.fill(' '); } else {ss.setf(ios::fixed); ss.precision(6); ss.fill(' '); } ss << any; return istring(ss.str()).trim(); } } |
452 |
-template<> static const string anytype_to_string<double>(const double &any) { if(isnan(any)) return "0"; else { ostringstream ss; NO_LOCALE(ss) if(any>999999.0) {ss.setf(ios::scientific); ss.width(0); ss.precision(12); ss.fill(' '); } else {ss.setf(ios::fixed); ss.precision(6); ss.fill(' '); } ss << any; return istring(ss.str()).trim(); } } |
453 |
-template<> static const string anytype_to_string<long double>(const long double &any) { if(isnan(any)) return "0"; else { ostringstream ss; NO_LOCALE(ss) if(any>999999.0) {ss.setf(ios::scientific); ss.width(0); ss.precision(12); ss.fill(' '); } else {ss.setf(ios::fixed); ss.precision(6); ss.fill(' '); } ss << any; return istring(ss.str()).trim(); } } |
454 |
+template<> STATIC const string anytype_to_string<float>(const float &any) { if(isnan(any)) return "0"; else { ostringstream ss; NO_LOCALE(ss) if(any>999999.0) {ss.setf(ios::scientific); ss.width(0); ss.precision(12); ss.fill(' '); } else {ss.setf(ios::fixed); ss.precision(6); ss.fill(' '); } ss << any; return istring(ss.str()).trim(); } } |
455 |
+template<> STATIC const string anytype_to_string<double>(const double &any) { if(isnan(any)) return "0"; else { ostringstream ss; NO_LOCALE(ss) if(any>999999.0) {ss.setf(ios::scientific); ss.width(0); ss.precision(12); ss.fill(' '); } else {ss.setf(ios::fixed); ss.precision(6); ss.fill(' '); } ss << any; return istring(ss.str()).trim(); } } |
456 |
+template<> STATIC const string anytype_to_string<long double>(const long double &any) { if(isnan(any)) return "0"; else { ostringstream ss; NO_LOCALE(ss) if(any>999999.0) {ss.setf(ios::scientific); ss.width(0); ss.precision(12); ss.fill(' '); } else {ss.setf(ios::fixed); ss.precision(6); ss.fill(' '); } ss << any; return istring(ss.str()).trim(); } } |
457 |
|
458 |
|
459 |
// I really wished that I didn't have to explicitly use 'vector' in the definition, I'd have like to use any container with an iterator interface |
460 |
diff -Naur rezound-0.12.3beta~/src/misc/endian_util.h rezound-0.12.3beta/src/misc/endian_util.h |
461 |
--- rezound-0.12.3beta~/src/misc/endian_util.h 2008-03-18 22:20:36.000000000 -0400 |
462 |
+++ rezound-0.12.3beta/src/misc/endian_util.h 2008-03-18 22:29:18.000000000 -0400 |
463 |
@@ -21,6 +21,16 @@ |
464 |
#ifndef __endian_util_H__ |
465 |
#define __endian_util_H__ |
466 |
|
467 |
+#ifndef GCC_VERSION |
468 |
+#define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) |
469 |
+#endif |
470 |
+ |
471 |
+#if GCC_VERSION >= 403 |
472 |
+# define STATIC |
473 |
+#else |
474 |
+# define STATIC static |
475 |
+#endif |
476 |
+ |
477 |
/* |
478 |
* This header files given functionality to convenient change endian-ness of values |
479 |
* and through the use of very few function names regardless of the type. |
480 |
@@ -131,13 +141,13 @@ |
481 |
} |
482 |
|
483 |
// --- implementation for 1 byte quantities (nothing) |
484 |
- template<> inline static void really_swap_endian_ptr<1>(void *value,const unsigned size) |
485 |
+ template<> inline STATIC void really_swap_endian_ptr<1>(void *value,const unsigned size) |
486 |
{ |
487 |
// nothing to do |
488 |
} |
489 |
|
490 |
// --- implementation for 2 byte quantities |
491 |
- template<> inline static void really_swap_endian_ptr<2>(void *value,const unsigned size) |
492 |
+ template<> inline STATIC void really_swap_endian_ptr<2>(void *value,const unsigned size) |
493 |
{ |
494 |
const register uint16_t v=((uint16_t *)value)[0]; |
495 |
((uint16_t *)value)[0]= |
496 |
@@ -147,7 +157,7 @@ |
497 |
} |
498 |
|
499 |
// --- implementation for 4 byte quantities |
500 |
- template<> inline static void really_swap_endian_ptr<4>(void *value,const unsigned size) |
501 |
+ template<> inline STATIC void really_swap_endian_ptr<4>(void *value,const unsigned size) |
502 |
{ |
503 |
const register uint32_t v=((uint32_t *)value)[0]; |
504 |
((uint32_t *)value)[0]= |
505 |
@@ -157,7 +167,7 @@ |
506 |
} |
507 |
|
508 |
// --- implementation for 8 byte quantities |
509 |
- template<> inline static void really_swap_endian_ptr<8>(void *value,const unsigned size) |
510 |
+ template<> inline STATIC void really_swap_endian_ptr<8>(void *value,const unsigned size) |
511 |
{ |
512 |
const register uint64_t v=((uint64_t *)value)[0]; |
513 |
// of 8, swap upper most and lower most octets then the next two inward, and so on .. |
514 |
|
515 |
|
516 |
|
517 |
1.1 src/patchsets/rezound/0.12.3_beta/100_all_reconf_warnings.patch |
518 |
|
519 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/100_all_reconf_warnings.patch?rev=1.1&view=markup |
520 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/100_all_reconf_warnings.patch?rev=1.1&content-type=text/plain |
521 |
|
522 |
Index: 100_all_reconf_warnings.patch |
523 |
=================================================================== |
524 |
Index: rezound-0.12.3beta/configure.ac |
525 |
=================================================================== |
526 |
--- rezound-0.12.3beta.orig/configure.ac |
527 |
+++ rezound-0.12.3beta/configure.ac |
528 |
@@ -24,7 +24,7 @@ |
529 |
# Process this file with autoconf to produce a configure script. |
530 |
|
531 |
AC_INIT(rezound, 0.12.3beta, [http://sourceforge.net/tracker/?atid=105056&group_id=5056]) |
532 |
-AC_CONFIG_AUX_DIR(config) |
533 |
+AC_CONFIG_AUX_DIR([config]) |
534 |
AM_CONFIG_HEADER([config/config.h]) |
535 |
AM_INIT_AUTOMAKE |
536 |
AC_DISABLE_SHARED # This makes libtool only build static libs |
537 |
Index: rezound-0.12.3beta/config/am_include.mk |
538 |
=================================================================== |
539 |
--- rezound-0.12.3beta.orig/config/am_include.mk |
540 |
+++ rezound-0.12.3beta/config/am_include.mk |
541 |
@@ -35,19 +35,6 @@ INCLUDES=\ |
542 |
-I$(top_srcdir)/src/PoolFile |
543 |
|
544 |
|
545 |
-## CXXFLAGS is also automatically added to the $(CXX) macro at compile time, and |
546 |
-## is passed down to the children as well |
547 |
-## I list these here in case there needs to always be some flags passed to the compiler |
548 |
-CXXFLAGS=@CXXFLAGS@ |
549 |
- |
550 |
- |
551 |
-## LDFLAGS will be added at link time |
552 |
-## note that the -l flags are set by the LIBS macro that is set by configure |
553 |
-## This line doesn't need to be here, configure will add LDFLAGS on it's own, |
554 |
-## but I'm leaving here as a place to add LDFLAGS if so desired |
555 |
-LDFLAGS=@LDFLAGS@ |
556 |
- |
557 |
- |
558 |
# doc directory |
559 |
pkgdocdir=$(prefix)/doc/@PACKAGE@ |
560 |
|
561 |
|
562 |
|
563 |
|
564 |
1.1 src/patchsets/rezound/0.12.3_beta/110_all_libtool.patch |
565 |
|
566 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/110_all_libtool.patch?rev=1.1&view=markup |
567 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/rezound/0.12.3_beta/110_all_libtool.patch?rev=1.1&content-type=text/plain |
568 |
|
569 |
Index: 110_all_libtool.patch |
570 |
=================================================================== |
571 |
Index: rezound-0.12.3beta/config/m4/cxx-lib.m4 |
572 |
=================================================================== |
573 |
--- rezound-0.12.3beta.orig/config/m4/cxx-lib.m4 |
574 |
+++ rezound-0.12.3beta/config/m4/cxx-lib.m4 |
575 |
@@ -59,7 +59,7 @@ dnl |
576 |
dnl What a mess with the AS_TR_CPP($1); now if I knew how to assign a variable |
577 |
dnl at the top that I could use everwhere else I would |
578 |
dnl |
579 |
-AC_DEFUN(ajv_CXX_CHECK_LIB, |
580 |
+AC_DEFUN([ajv_CXX_CHECK_LIB], |
581 |
|
582 |
dnl prepare to beable to AC_DEFINE the HAVE_LIBXXX #define |
583 |
[AH_TEMPLATE(AS_TR_CPP(HAVE_LIB$1),[defined by $0])] |
584 |
@@ -117,18 +117,15 @@ AC_DEFUN(ajv_CXX_CHECK_LIB, |
585 |
|
586 |
saved_CPPFLAGS="$CPPFLAGS" |
587 |
saved_CXXFLAGS="$CXXFLAGS" |
588 |
- saved_LDFLAGS="$LDFLAGS" |
589 |
+ saved_LIBS="$LIBS" |
590 |
saved_CXX="$CXX" |
591 |
|
592 |
[CPPFLAGS="$CPPFLAGS $ajv_inc@&t@AS_TR_CPP($1)_path"] |
593 |
[CXXFLAGS="$CXXFLAGS $ajv_inc@&t@AS_TR_CPP($1)_path"] |
594 |
- [LDFLAGS="$LDFLAGS $ajv_lib@&t@AS_TR_CPP($1)_path -l$1 $5"] |
595 |
+ [LIBS="$LIBS $ajv_lib@&t@AS_TR_CPP($1)_path -l$1 $5"] |
596 |
|
597 |
builddir=`pwd` # I'm assuming that the pwd will always be what $(top_builddir) will be set to in AC_OUTPUT |
598 |
|
599 |
- # HACK: force AC_LINK_IFELSE to use libtool to link so it will get FOX's dependancies. Personally, I think it should do this anyway because I've used AC_PROG_LIBTOOL to request libtool as the linker for the subsequent make |
600 |
- CXX="$builddir/libtool --mode=link $CXX" |
601 |
- |
602 |
[AC_LINK_IFELSE([ |
603 |
#include <$3> |
604 |
int main() { $2 xxx; return 0; } |
605 |
@@ -187,7 +184,7 @@ AC_DEFUN(ajv_CXX_CHECK_LIB, |
606 |
|
607 |
CPPFLAGS="$saved_CPPFLAGS" |
608 |
CXXFLAGS="$saved_CXXFLAGS" |
609 |
- LDFLAGS="$saved_LDFLAGS" |
610 |
+ LIBS="$saved_LIBS" |
611 |
CXX="$saved_CXX" |
612 |
|
613 |
[AC_LANG_POP(C++)] |
614 |
|
615 |
|
616 |
|
617 |
-- |
618 |
gentoo-commits@l.g.o mailing list |