Switch to unified view

a/src/query/recollq.cpp b/src/query/recollq.cpp
...
...
246
                        qs);
246
                        qs);
247
    }
247
    }
248
    if (sd)
248
    if (sd)
249
        sd->addClause(clp);
249
        sd->addClause(clp);
250
    } else {
250
    } else {
251
    sd = wasaStringToRcl(qs, reason);
251
    sd = wasaStringToRcl(rclconfig, qs, reason);
252
    }
252
    }
253
253
254
    if (!sd) {
254
    if (!sd) {
255
    cerr << "Query string interpretation failed: " << reason << endl;
255
    cerr << "Query string interpretation failed: " << reason << endl;
256
    return 1;
256
    return 1;
...
...
323
#include "rclconfig.h"
323
#include "rclconfig.h"
324
#include "recollq.h"
324
#include "recollq.h"
325
325
326
static RclConfig *rclconfig;
326
static RclConfig *rclconfig;
327
327
328
RclConfig *RclConfig::getMainConfig() 
329
{
330
    return rclconfig;
331
}
332
333
int main(int argc, char **argv)
328
int main(int argc, char **argv)
334
{
329
{
335
    exit(recollq(&rclconfig, argc, argv));
330
    exit(recollq(&rclconfig, argc, argv));
336
}
331
}
337
#endif // TEST_RECOLLQ
332
#endif // TEST_RECOLLQ