projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
User-defined retrieval records for yaz-ztest YAZ-714
[yaz-moved-to-github.git]
/
util
/
cql2xcql.c
diff --git
a/util/cql2xcql.c
b/util/cql2xcql.c
index
8016fbb
..
bad3f3e
100644
(file)
--- a/
util/cql2xcql.c
+++ b/
util/cql2xcql.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
@@
-15,7
+15,7
@@
static void usage(const char *prog)
{
static void usage(const char *prog)
{
- fprintf(stderr, "%s: [-c] [-n iterations] [-s] [infile]\n", prog);
+ fprintf(stderr, "%s: [-c] [-n iterations] [-s] [-S] [infile]\n", prog);
exit(1);
}
exit(1);
}
@@
-30,8
+30,9
@@
int main(int argc, char **argv)
char *arg;
char *prog = argv[0];
int do_sortkeys = 0;
char *arg;
char *prog = argv[0];
int do_sortkeys = 0;
+ int do_strict = 0;
- while ((ret = options("cn:s", argv, argc, &arg)) != YAZ_OPTIONS_EOF)
+ while ((ret = options("cn:sS", argv, argc, &arg)) != YAZ_OPTIONS_EOF)
{
switch (ret)
{
{
switch (ret)
{
@@
-47,12
+48,16
@@
int main(int argc, char **argv)
case 's':
do_sortkeys = 1;
break;
case 's':
do_sortkeys = 1;
break;
+ case 'S':
+ do_strict = 1;
+ break;
default:
usage(prog);
}
}
cp = cql_parser_create();
default:
usage(prog);
}
}
cp = cql_parser_create();
+ cql_parser_strict(cp, do_strict);
if (fname)
{
int i;
if (fname)
{
int i;