Switch to unified view

a/src/query/recollq.cpp b/src/query/recollq.cpp
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
// Takes a query and run it, no gui, results to stdout
17
// Takes a query and run it, no gui, results to stdout
18
18
19
#ifndef TEST_RECOLLQ
20
#include <stdio.h>
19
#include <stdio.h>
21
#include <stdlib.h>
20
#include <stdlib.h>
22
#include <unistd.h>
21
#include <unistd.h>
23
#include <errno.h>
22
#include <errno.h>
24
#include <string.h>
23
#include <string.h>
...
...
414
        }   
413
        }   
415
    }
414
    }
416
415
417
    return 0;
416
    return 0;
418
}
417
}
419
420
#else // TEST_RECOLLQ The test driver is actually the useful program...
421
#include <stdlib.h>
422
423
#include "rclconfig.h"
424
#include "recollq.h"
425
426
static RclConfig *rclconfig;
427
428
int main(int argc, char **argv)
429
{
430
    return(recollq(&rclconfig, argc, argv));
431
}
432
#endif // TEST_RECOLLQ