]>
Commit | Line | Data |
---|---|---|
29c6f450 | 1 | diff -urN speech_tools-orig/include/EST_iostream.h speech_tools/include/EST_iostream.h |
2 | --- speech_tools-orig/include/EST_iostream.h 2001-04-04 13:55:32.000000000 +0200 | |
3 | +++ speech_tools/include/EST_iostream.h 2003-12-16 17:53:46.000000000 +0100 | |
4 | @@ -51,7 +51,7 @@ | |
5 | # include <strstrea.h> | |
6 | #elif defined(SYSTEM_IS_UNIX) | |
7 | # include <iostream.h> | |
8 | -# include <strstream.h> | |
9 | +# include <sstream> | |
10 | #elif defined(SYSTEM_IS_WIN32) | |
11 | # include "win32/EST_iostream_win32.h" | |
12 | # include <strstrea.h> | |
13 | diff -urN speech_tools-orig/ling_class/EST_relation_aux.cc speech_tools/ling_class/EST_relation_aux.cc | |
14 | --- speech_tools-orig/ling_class/EST_relation_aux.cc 2001-04-04 13:55:32.000000000 +0200 | |
15 | +++ speech_tools/ling_class/EST_relation_aux.cc 2003-12-16 18:35:32.000000000 +0100 | |
16 | @@ -416,7 +416,7 @@ | |
17 | if (k->F("end") > lab.head()->F("end")) | |
18 | break; | |
19 | ||
20 | - filename = k->f("file"); | |
21 | + filename = (int) k->f("file"); | |
22 | a.f.set("name", (filename + ext)); | |
23 | kstart = 0.0; | |
24 | ||
25 | @@ -454,7 +454,7 @@ | |
26 | k = next(k); | |
27 | kstart = start(k); | |
28 | a.clear(); | |
29 | - filename = k->f("file"); | |
30 | + filename = (int)k->f("file"); | |
31 | a.f.set("name", (filename + ext)); | |
32 | } | |
33 | else | |
34 | diff -urN speech_tools-orig/siod/slib_file.cc speech_tools/siod/slib_file.cc | |
35 | --- speech_tools-orig/siod/slib_file.cc 2001-04-04 15:11:27.000000000 +0200 | |
36 | +++ speech_tools/siod/slib_file.cc 2003-12-16 18:00:13.000000000 +0100 | |
37 | @@ -13,7 +13,7 @@ | |
38 | #include "siodp.h" | |
39 | #include "EST_Pathname.h" | |
40 | ||
41 | -static void siod_string_print(LISP exp, ostrstream &sd); | |
42 | +static void siod_string_print(LISP exp, std::ostringstream &sd); | |
43 | ||
44 | LISP open_files = NIL; | |
45 | ||
46 | @@ -109,7 +109,7 @@ | |
47 | return NIL; | |
48 | } | |
49 | ||
50 | -static void siod_string_print(LISP exp, ostrstream &sd) | |
51 | +static void siod_string_print(LISP exp, std::ostringstream &sd) | |
52 | { | |
53 | LISP tmp; | |
54 | int i; | |
55 | @@ -206,17 +206,17 @@ | |
56 | ||
57 | EST_String siod_sprint(LISP exp) | |
58 | { | |
59 | - ostrstream sd; | |
60 | + std::ostringstream sd; | |
61 | EST_String r; | |
62 | ||
63 | siod_string_print(exp,sd); | |
64 | ||
65 | sd << '\0'; | |
66 | - r = sd.str(); | |
67 | + r = sd.str().c_str(); | |
68 | ||
69 | #ifdef __GNUC__ | |
70 | // need to do this otherwise sd doesn't free its internal buffer | |
71 | - sd.freeze(0); | |
72 | + //sd.freeze(0); | |
73 | #endif | |
74 | ||
75 | return r; | |
76 | diff -urN speech_tools-orig/speech_class/EST_TrackFile.cc speech_tools/speech_class/EST_TrackFile.cc | |
77 | --- speech_tools-orig/speech_class/EST_TrackFile.cc 2001-04-04 13:55:32.000000000 +0200 | |
78 | +++ speech_tools/speech_class/EST_TrackFile.cc 2003-12-16 18:53:58.000000000 +0100 | |
79 | @@ -555,15 +555,15 @@ | |
80 | ||
81 | while (1) | |
82 | { | |
83 | - t = ts.get_upto_eoln(); | |
84 | + t =(int) ts.get_upto_eoln(); | |
85 | // cout << "t=" << t << endl; | |
86 | if (t.contains("teaching output included")) | |
87 | teaching = 1; | |
88 | if (!t.contains(":")) | |
89 | break; | |
90 | str.open_string(t); | |
91 | - k = str.get_upto(":"); | |
92 | - v = str.get_upto_eoln(); | |
93 | + k =(int) str.get_upto(":"); | |
94 | + v =(int) str.get_upto_eoln(); | |
95 | if (k == "No. of output units") | |
96 | num_channels = v.Int(); | |
97 | if (k == "No. of patterns") | |
98 | diff -urN speech_tools-orig/speech_class/EST_wave_cuts.cc speech_tools/speech_class/EST_wave_cuts.cc | |
99 | --- speech_tools-orig/speech_class/EST_wave_cuts.cc 2001-04-04 13:55:32.000000000 +0200 | |
100 | +++ speech_tools/speech_class/EST_wave_cuts.cc 2003-12-16 18:47:03.000000000 +0100 | |
101 | @@ -67,7 +67,7 @@ | |
102 | if (end < start) | |
103 | continue; | |
104 | wave_subwave(a, sig, start, end-start); | |
105 | - filename = k->f("file"); | |
106 | + filename = (int)k->f("file"); | |
107 | a.set_name(filename + ext); | |
108 | wl.append(a); | |
109 | start = end; | |
110 | @@ -87,7 +87,7 @@ | |
111 | for (k = keylab.head(); k; k = next(k)) | |
112 | { | |
113 | end = k->F("end",0); | |
114 | - key_file_name = k->f("file"); | |
115 | + key_file_name = (int)k->f("file"); | |
116 | if (key_file_name == file) | |
117 | { | |
118 | wave_subwave(part, sig, start, end-start); | |
119 | diff -urN speech_tools-orig/speech_class/ssff.cc speech_tools/speech_class/ssff.cc | |
120 | --- speech_tools-orig/speech_class/ssff.cc 2001-04-04 13:55:32.000000000 +0200 | |
121 | +++ speech_tools/speech_class/ssff.cc 2003-12-16 18:50:49.000000000 +0100 | |
122 | @@ -99,7 +99,7 @@ | |
123 | ||
124 | while (ts.peek() != "-----------------") | |
125 | { | |
126 | - c = ts.get(); | |
127 | + c =(long) ts.get(); | |
128 | if (c == "Comment") | |
129 | ts.get_upto_eoln(); | |
130 | else if (c == "Start_Time") | |
131 | @@ -124,9 +124,9 @@ | |
132 | } | |
133 | else if (c == "Column") | |
134 | { | |
135 | - name = ts.get(); | |
136 | - type = ts.get(); | |
137 | - size = ts.get(); | |
138 | + name = (long)ts.get(); | |
139 | + type = (long)ts.get(); | |
140 | + size = (long)ts.get(); | |
141 | cname = EST_String("Channel_")+itoString(num_channels); | |
142 | channels.set(cname+".name",name); | |
143 | channels.set(cname+".type",type); | |
144 | @@ -141,7 +141,7 @@ | |
145 | (c == "preemphasis") || | |
146 | (c == "frame_duration")) | |
147 | { | |
148 | - type = ts.get(); | |
149 | + type = (long)ts.get(); | |
150 | if (type == "SHORT") | |
151 | tr.f_set(c,atoi(ts.get().string())); | |
152 | else if (type == "DOUBLE") | |
153 | diff -urN speech_tools-orig/stats/wagon/dlist.cc speech_tools/stats/wagon/dlist.cc | |
154 | --- speech_tools-orig/stats/wagon/dlist.cc 2001-04-04 15:11:28.000000000 +0200 | |
155 | +++ speech_tools/stats/wagon/dlist.cc 2003-12-16 18:58:52.000000000 +0100 | |
156 | @@ -83,7 +83,7 @@ | |
157 | ||
158 | for (p=dataset.head(); p != 0; p=next(p)) | |
159 | { | |
160 | - predict = dlist->predict(*dataset(p)); | |
161 | + predict = (int)dlist->predict(*dataset(p)); | |
162 | type = dataset.ftype(0); | |
163 | real = wgn_discretes[type].name(dataset(p)->get_int_val(0)); | |
164 | pairs.add_item(real,predict,1); | |
165 | diff -urN speech_tools-orig/stats/wagon/wagon.cc speech_tools/stats/wagon/wagon.cc | |
166 | --- speech_tools-orig/stats/wagon/wagon.cc 2001-04-04 15:11:28.000000000 +0200 | |
167 | +++ speech_tools/stats/wagon/wagon.cc 2003-12-16 19:00:20.000000000 +0100 | |
168 | @@ -275,7 +275,7 @@ | |
169 | for (p=dataset.head(); p != 0; p=next(p)) | |
170 | { | |
171 | pnode = tree.predict_node((*dataset(p))); | |
172 | - predict = pnode->get_impurity().value(); | |
173 | + predict = (int)pnode->get_impurity().value(); | |
174 | if (wgn_count_field == -1) | |
175 | count = 1.0; | |
176 | else | |
177 | diff -urN speech_tools-orig/utils/EST_ServiceTable.cc speech_tools/utils/EST_ServiceTable.cc | |
178 | --- speech_tools-orig/utils/EST_ServiceTable.cc 2001-06-04 20:52:50.000000000 +0200 | |
179 | +++ speech_tools/utils/EST_ServiceTable.cc 2003-12-16 18:23:37.000000000 +0100 | |
180 | @@ -143,7 +143,7 @@ | |
181 | str.must_get("="); | |
182 | ||
183 | EST_Token val = str.get_upto_eoln(); | |
184 | - | |
185 | + | |
186 | if (!entries.t.present(name)) | |
187 | { | |
188 | Entry newent; | |
189 | @@ -154,15 +154,15 @@ | |
190 | Entry &entry = entries.t.val(name); | |
191 | ||
192 | if (type=="host") | |
193 | - entry.hostname=val; | |
194 | + entry.hostname=(int)val; | |
195 | else if (type=="address") | |
196 | - entry.address=val; | |
197 | + entry.address=(int)val; | |
198 | else if (type=="type") | |
199 | - entry.type=val; | |
200 | + entry.type=(int)val; | |
201 | else if (type=="port") | |
202 | - entry.port=val; | |
203 | + entry.port=(int)val; | |
204 | else if (type=="cookie") | |
205 | - entry.cookie=val; | |
206 | + entry.cookie=(int)val; | |
207 | else | |
208 | EST_warning("Unknown entry field '%s' at %s", | |
209 | (const char *)type, |