]>
Commit | Line | Data |
---|---|---|
d774ae9b PS |
1 | --- speech_tools/base_class/EST_Pathname_unix.cc.orig 2001-06-18 20:15:04.000000000 +0200 |
2 | +++ speech_tools/base_class/EST_Pathname_unix.cc 2006-01-17 19:14:14.867654750 +0100 | |
3 | @@ -89,7 +89,7 @@ | |
4 | return *this; | |
5 | ||
6 | if (length() > 0) | |
7 | - return ::operator +(EST_String(*this), "/"); | |
51293799 | 8 | + return EST_String(EST_String(*this) + "/"); |
d774ae9b PS |
9 | |
10 | return "./"; | |
11 | } | |
12 | @@ -144,11 +144,6 @@ | |
13 | EST_Pathname operator + (const char *p, const EST_Pathname addition) | |
14 | {return EST_Pathname::append(p, addition); } | |
15 | ||
16 | -EST_Pathname &operator += (EST_Pathname p, const EST_Pathname addition) | |
17 | -{ p = EST_Pathname::append(p, addition); return p; } | |
18 | -EST_Pathname &operator += (EST_Pathname p, const EST_String addition) | |
19 | -{ p = EST_Pathname::append(p, addition); return p; } | |
20 | - | |
21 | EST_Pathname EST_Pathname::append(EST_Pathname directory, EST_Pathname addition) | |
22 | { | |
23 | if (addition.is_absolute()) | |
24 | --- speech_tools/base_class/rateconv.cc.orig 2004-05-04 02:00:16.000000000 +0200 | |
25 | +++ speech_tools/base_class/rateconv.cc 2006-01-17 19:10:38.050104500 +0100 | |
26 | @@ -384,7 +384,8 @@ | |
27 | } | |
28 | fir_stereo(inp + inoffset + inbaseidx, | |
29 | coep + cycctr * firlen, firlen, | |
30 | - outp + outidx++, outp + outidx++); | |
6fdb3896 | 31 | + outp + outidx, outp + outidx + 1); |
d774ae9b PS |
32 | + outidx += 2; |
33 | cycctr++; | |
34 | if (!(cycctr %= up)) | |
35 | inbaseidx += 2*down; | |
36 | --- speech_tools/config/compilers/gcc_defaults.mak.orig 2006-01-17 15:54:48.000000000 +0100 | |
37 | +++ speech_tools/config/compilers/gcc_defaults.mak 2006-01-17 16:43:29.768237250 +0100 | |
38 | @@ -52,7 +52,7 @@ | |
39 | DEBUG_LINKFLAGS = -g | |
40 | ||
41 | WARN_CCFLAGS = -Wall | |
42 | -WARN_CXXFLAGS = -Wall | |
43 | +WARN_CXXFLAGS = -Wall -Wno-non-template-friend -Wno-deprecated | |
44 | WARN_LINKFLAGS = -Wall | |
45 | ||
46 | VERBOSE_CCFLAGS = | |
47 | --- speech_tools/include/EST_Chunk.h.orig 2004-04-30 18:56:49.000000000 +0200 | |
48 | +++ speech_tools/include/EST_Chunk.h 2006-01-17 19:16:49.733333250 +0100 | |
49 | @@ -103,6 +103,8 @@ | |
50 | /* */ | |
51 | /************************************************************************/ | |
52 | ||
53 | +class EST_ChunkPtr; | |
54 | + | |
55 | class EST_Chunk { | |
56 | public: | |
57 | typedef unsigned short use_counter; | |
58 | @@ -142,6 +144,9 @@ | |
59 | friend void tester(void); | |
60 | }; | |
61 | ||
62 | +void make_updatable(EST_ChunkPtr &cp, EST_Chunk::EST_chunk_size inuse); | |
63 | +void make_updatable(EST_ChunkPtr &cp); | |
64 | + | |
65 | /************************************************************************/ | |
66 | /* */ | |
67 | /* Pointers to chunks. Initialising them and assigning them around */ | |
68 | @@ -248,4 +253,8 @@ | |
69 | friend void tester(void); | |
70 | }; | |
71 | ||
72 | +EST_ChunkPtr chunk_allocate(int bytes); | |
73 | +EST_ChunkPtr chunk_allocate(int bytes, const char *initial, int initial_len); | |
74 | +EST_ChunkPtr chunk_allocate(int bytes, const EST_ChunkPtr &initial, int initial_start, int initial_len); | |
75 | + | |
76 | #endif | |
77 | --- speech_tools/include/ling_class/EST_Item.h.orig 2004-04-30 18:56:49.000000000 +0200 | |
78 | +++ speech_tools/include/ling_class/EST_Item.h 2006-01-17 18:51:47.297967250 +0100 | |
79 | @@ -79,6 +79,9 @@ | |
80 | ||
81 | */ | |
82 | ||
83 | +class EST_Item; | |
84 | +int same_item(const EST_Item *l1,const EST_Item *l2); | |
85 | + | |
86 | class EST_Item | |
87 | { | |
88 | private: | |
471cf4a0 PS |
89 | --- speech_tools/siod/Makefile.orig 2001-04-04 13:55:32.000000000 +0200 |
90 | +++ speech_tools/siod/Makefile 2006-01-18 20:24:44.390559250 +0100 | |
91 | @@ -69,5 +69,6 @@ | |
92 | ||
93 | DEFINES += $(IO_DEFINES) | |
94 | INCLUDES += $(IO_INCLUDES) | |
95 | +CXXFLAGS += -fno-strict-aliasing | |
96 | ||
97 | ||
98 | --- speech_tools/speech_class/Makefile.orig 2006-01-18 20:28:00.298802750 +0100 | |
99 | +++ speech_tools/speech_class/Makefile 2006-01-18 20:28:05.331117250 +0100 | |
100 | @@ -59,4 +59,5 @@ | |
101 | ||
102 | include $(TOP)/config/common_make_rules | |
103 | ||
104 | +CXXFLAGS += -fno-strict-aliasing | |
105 | ||
fd2ff1d7 PS |
106 | --- speech_tools/ling_class/item_feats.cc.orig 2001-04-04 13:55:32.000000000 +0200 |
107 | +++ speech_tools/ling_class/item_feats.cc 2006-02-01 18:22:51.357182250 +0100 | |
108 | @@ -78,7 +78,7 @@ | |
109 | EST_String name = EST_FeatureFunctionContext::global->get_featfunc_name(func, found); | |
110 | ||
111 | if (!found) | |
112 | - EST_error("featfunc 0x%x has no name", (int)func); | |
113 | + EST_error("featfunc 0x%p has no name", func); | |
114 | ||
115 | return name; | |
116 | } | |
117 | --- speech_tools/include/EST_simplestats.h.orig 2004-04-30 18:56:49.000000000 +0200 | |
118 | +++ speech_tools/include/EST_simplestats.h 2006-02-01 18:56:49.596564250 +0100 | |
119 | @@ -60,7 +60,7 @@ | |
120 | private: | |
121 | // for fast index->name | |
122 | EST_StrVector namevector; | |
123 | - int p_def_val; | |
124 | + long p_def_val; | |
125 | // for fast name->index | |
126 | EST_StringTrie nametrie; | |
127 | ||
128 | @@ -80,22 +80,22 @@ | |
129 | ||
130 | /// The number of members in the discrete | |
131 | const int length(void) const { return namevector.length(); } | |
132 | - /** The int assigned to the given name, if it doesn't exists p\_def\_val | |
133 | + /** The long assigned to the given name, if it doesn't exists p\_def\_val | |
134 | is returned (which is -1 by default) | |
135 | */ | |
136 | - const int index(const EST_String &n) const { | |
137 | - int *i; | |
138 | - return (((i=(int*)nametrie.lookup(n)) != NULL) ? *i : p_def_val); | |
139 | + const long index(const EST_String &n) const { | |
140 | + long *i; | |
141 | + return (((i=(long*)nametrie.lookup(n)) != NULL) ? *i : p_def_val); | |
142 | }; | |
143 | ||
144 | /// The name given the index | |
145 | - const EST_String &name(const int n) const { return namevector(n); } | |
146 | + const EST_String &name(const long n) const { return namevector(n); } | |
147 | ||
148 | /// set the default value when a name isn't found (-1 by default) | |
149 | void def_val(const EST_String &v) { p_def_val = index(v); } | |
150 | ||
151 | - /// An alternative method for getting the int form the name | |
152 | - int name(const EST_String &n) const { return index(n); }; | |
153 | + /// An alternative method for getting the long form the name | |
154 | + long name(const EST_String &n) const { return index(n); }; | |
155 | ||
156 | bool operator == (const EST_Discrete &d); | |
157 | bool operator != (const EST_Discrete &d); | |
158 | @@ -265,17 +265,17 @@ | |
159 | /// | |
160 | double frequency(const int i) const; | |
161 | /// Used for iterating through members of the distribution | |
162 | - int item_start() const; | |
163 | + long item_start() const; | |
164 | /// Used for iterating through members of the distribution | |
165 | - int item_next(int idx) const; | |
166 | + long item_next(long idx) const; | |
167 | /// Used for iterating through members of the distribution | |
168 | - int item_end(int idx) const; | |
169 | + long item_end(long idx) const; | |
170 | /// During iteration returns name given index | |
171 | - const EST_String &item_name(int idx) const; | |
172 | + const EST_String &item_name(long) const; | |
173 | /// During iteration returns name and frequency given index | |
174 | - void item_freq(int idx,EST_String &s,double &freq) const; | |
175 | + void item_freq(long,EST_String &s,double &freq) const; | |
176 | /// During iteration returns name and probability given index | |
177 | - void item_prob(int idx,EST_String &s,double &prob) const; | |
178 | + void item_prob(long,EST_String &s,double &prob) const; | |
179 | ||
180 | /// Returns discrete vocabulary of distribution | |
181 | inline const EST_Discrete *const get_discrete() const { return discrete; }; | |
182 | --- speech_tools/stats/EST_DProbDist.cc.orig 2004-04-30 18:56:51.000000000 +0200 | |
183 | +++ speech_tools/stats/EST_DProbDist.cc 2006-02-01 18:57:56.324734500 +0100 | |
184 | @@ -305,15 +305,15 @@ | |
185 | } | |
186 | ||
187 | // For iterating through members of a probability distribution | |
188 | -int EST_DiscreteProbDistribution::item_start(void) const | |
189 | +long EST_DiscreteProbDistribution::item_start(void) const | |
190 | { | |
191 | if (type == tprob_discrete) | |
192 | return 0; | |
193 | else | |
194 | - return (int)scounts.list.head(); | |
195 | + return (long)scounts.list.head(); | |
196 | } | |
197 | ||
198 | -int EST_DiscreteProbDistribution::item_end(int idx) const | |
199 | +long EST_DiscreteProbDistribution::item_end(long idx) const | |
200 | { | |
201 | if (type == tprob_discrete) | |
202 | return (idx >= icounts.length()); | |
203 | @@ -321,15 +321,15 @@ | |
204 | return ((EST_Litem *)idx == 0); | |
205 | } | |
206 | ||
207 | -int EST_DiscreteProbDistribution::item_next(int idx) const | |
208 | +long EST_DiscreteProbDistribution::item_next(long idx) const | |
209 | { | |
210 | if (type == tprob_discrete) | |
211 | return ++idx; | |
212 | else | |
213 | - return (int)next((EST_Litem *)idx); | |
214 | + return (long)next((EST_Litem *)idx); | |
215 | } | |
216 | ||
217 | -const EST_String &EST_DiscreteProbDistribution::item_name(int idx) const | |
218 | +const EST_String &EST_DiscreteProbDistribution::item_name(long idx) const | |
219 | { | |
220 | if (type == tprob_discrete) | |
221 | return discrete->name(idx); | |
222 | @@ -337,7 +337,7 @@ | |
223 | return scounts.list((EST_Litem *)idx).k; | |
224 | } | |
225 | ||
226 | -void EST_DiscreteProbDistribution::item_freq(int idx,EST_String &s,double &freq) const | |
227 | +void EST_DiscreteProbDistribution::item_freq(long idx,EST_String &s,double &freq) const | |
228 | { | |
229 | if (type == tprob_discrete) | |
230 | { | |
231 | @@ -351,7 +351,7 @@ | |
232 | } | |
233 | } | |
234 | ||
235 | -void EST_DiscreteProbDistribution::item_prob(int idx,EST_String &s,double &prob) const | |
236 | +void EST_DiscreteProbDistribution::item_prob(long idx,EST_String &s,double &prob) const | |
237 | { | |
238 | if (type == tprob_discrete) | |
239 | { |