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
HTTP Basic clienty authentication.
[yaz-moved-to-github.git]
/
util
/
cql2xcql.c
diff --git
a/util/cql2xcql.c
b/util/cql2xcql.c
index
d23a415
..
7a3b07f
100644
(file)
--- a/
util/cql2xcql.c
+++ b/
util/cql2xcql.c
@@
-1,5
+1,5
@@
-/* $Id: cql2xcql.c,v 1.3 2004-03-11 09:34:42 adam Exp $
- Copyright (C) 2002-2004
+/* $Id: cql2xcql.c,v 1.8 2007-01-03 08:42:16 adam Exp $
+ Copyright (C) 1995-2007, Index Data ApS
Index Data Aps
This file is part of the YAZ toolkit.
Index Data Aps
This file is part of the YAZ toolkit.
@@
-8,13
+8,15
@@
See the file LICENSE.
*/
#include <stdio.h>
*/
#include <stdio.h>
+#include <stdlib.h>
#include <yaz/cql.h>
#include <yaz/cql.h>
+#include <yaz/options.h>
int main(int argc, char **argv)
{
CQL_parser cp;
int main(int argc, char **argv)
{
CQL_parser cp;
- int r;
+ int r = 0;
const char *fname = 0;
int iterations = 1;
int ret;
const char *fname = 0;
int iterations = 1;
int ret;
@@
-25,20
+27,20
@@
int main(int argc, char **argv)
switch (ret)
{
case 0:
switch (ret)
{
case 0:
- fname = arg;
+ fname = arg;
break;
break;
- case 'n':
- iterations = atoi(arg);
- break;
- }
+ case 'n':
+ iterations = atoi(arg);
+ break;
+ }
}
cp = cql_parser_create();
if (fname)
{
}
cp = cql_parser_create();
if (fname)
{
- int i;
- for (i = 0; i<iterations; i++)
- r = cql_parser_string(cp, fname);
+ int i;
+ for (i = 0; i<iterations; i++)
+ r = cql_parser_string(cp, fname);
}
else
r = cql_parser_stdio(cp, stdin);
}
else
r = cql_parser_stdio(cp, stdin);
@@
-49,3
+51,11
@@
int main(int argc, char **argv)
cql_parser_destroy(cp);
return 0;
}
cql_parser_destroy(cp);
return 0;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+