* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
static char last_scan_line[512] = "0";
static char last_scan_query[512] = "0";
static char ccl_fields[512] = "default.bib";
static char last_scan_line[512] = "0";
static char last_scan_query[512] = "0";
static char ccl_fields[512] = "default.bib";
static char *esPackageName = 0;
static char *yazProxy = 0;
static int kilobytes = 1024;
static char *esPackageName = 0;
static char *yazProxy = 0;
static int kilobytes = 1024;
}
} else if (myQueryType == QueryType_CQL2RPN) {
/* ### All this code should be wrapped in a utility function */
}
} else if (myQueryType == QueryType_CQL2RPN) {
/* ### All this code should be wrapped in a utility function */
if ((error = cql_parser_string(parser, arg)) != 0) {
/* ### must do better with the reporting here */
printf("CQL ERROR %d: presumably a syntax error?\n", error);
if ((error = cql_parser_string(parser, arg)) != 0) {
/* ### must do better with the reporting here */
printf("CQL ERROR %d: presumably a syntax error?\n", error);
- if ((cqltrans = cql_transform_open_fname(cql_fields)) == 0) {
- /* ### There should be a better way to make an empty set! */
- cqltrans = cql_transform_open_fname("/dev/null");
- }
+ cqltrans = cql_transform_open_fname(cql_fields);
+ /* If this fails, no problem: we detect cqltrans == 0 later */