|
a/src/query/recollq.cpp |
|
b/src/query/recollq.cpp |
|
... |
|
... |
317 |
|
317 |
|
318 |
TempDir tmpdir;
|
318 |
TempDir tmpdir;
|
319 |
if (!tmpdir.ok()) {
|
319 |
if (!tmpdir.ok()) {
|
320 |
cerr << "Can't create temporary directory: " <<
|
320 |
cerr << "Can't create temporary directory: " <<
|
321 |
tmpdir.getreason() << endl;
|
321 |
tmpdir.getreason() << endl;
|
322 |
exit(1);
|
322 |
return(1);
|
323 |
}
|
323 |
}
|
324 |
|
324 |
|
325 |
if (op_flags & OPT_Q)
|
325 |
if (op_flags & OPT_Q)
|
326 |
exit(0);
|
326 |
return(0);
|
327 |
|
327 |
|
328 |
for (int i = 0; i < limit; i++) {
|
328 |
for (int i = 0; i < limit; i++) {
|
329 |
Rcl::Doc doc;
|
329 |
Rcl::Doc doc;
|
330 |
if (!query.getDoc(i, doc))
|
330 |
if (!query.getDoc(i, doc))
|
331 |
break;
|
331 |
break;
|
|
... |
|
... |
380 |
|
380 |
|
381 |
static RclConfig *rclconfig;
|
381 |
static RclConfig *rclconfig;
|
382 |
|
382 |
|
383 |
int main(int argc, char **argv)
|
383 |
int main(int argc, char **argv)
|
384 |
{
|
384 |
{
|
385 |
exit(recollq(&rclconfig, argc, argv));
|
385 |
return(recollq(&rclconfig, argc, argv));
|
386 |
}
|
386 |
}
|
387 |
#endif // TEST_RECOLLQ
|
387 |
#endif // TEST_RECOLLQ
|