comparison src/helper.cpp @ 11:9f62684e1911

Tidy + comment
author Chris Cannam
date Wed, 04 May 2016 10:26:14 +0100
parents c7baebf68fac
children 92e72014d979
comparison
equal deleted inserted replaced
10:c7baebf68fac 11:9f62684e1911
145 { 145 {
146 bool allGood = true; 146 bool allGood = true;
147 string soname; 147 string soname;
148 148
149 if (argc != 2) { 149 if (argc != 2) {
150 cerr << "\nUsage:\n " << argv[0] << " descriptorname\n" 150 cerr << "\nUsage:\n " << argv[0] << " descriptorname\n"
151 "\nwhere descriptorname is the name of a plugin descriptor symbol to be sought\n" 151 "\nwhere descriptorname is the name of a plugin descriptor symbol to be sought\n"
152 "in each library (e.g. vampGetPluginDescriptor for Vamp plugins). The list of\n" 152 "in each library (e.g. vampGetPluginDescriptor for Vamp plugins). The list of\n"
153 "candidate plugin library filenames is read from stdin.\n" << endl; 153 "candidate plugin library filenames is read from stdin.\n" << endl;
154 return 2; 154 return 2;
155 } 155 }
156 156
157 string descriptor = argv[1]; 157 string descriptor = argv[1];
158 158
159 while (getline(cin, soname)) { 159 while (getline(cin, soname)) {
160 string report = check(soname, descriptor); 160 string report = check(soname, descriptor);
161 161 if (report != "") {
162 if (report != "") { 162 cout << "FAILURE|" << soname << "|" << report << endl;
163 cout << "FAILURE|" << soname << "|" << report << endl; 163 allGood = false;
164 allGood = false; 164 } else {
165 } else { 165 cout << "SUCCESS|" << soname << "|" << endl;
166 cout << "SUCCESS|" << soname << "|" << endl; 166 }
167 }
168 } 167 }
169 168
170 return allGood ? 0 : 1; 169 return allGood ? 0 : 1;
171 } 170 }