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
Fix leak for odr_print of ZOOM connection.
[yaz-moved-to-github.git]
/
util
/
cql2pqf.c
diff --git
a/util/cql2pqf.c
b/util/cql2pqf.c
index
55bea5d
..
ba7c1a9
100644
(file)
--- a/
util/cql2pqf.c
+++ b/
util/cql2pqf.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) 1995-2009 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-48,7
+48,10
@@
int main(int argc, char **argv)
}
if (!fname)
usage();
}
if (!fname)
usage();
- ct = cql_transform_open_fname(fname);
+ if (!strcmp(fname, "-"))
+ ct = cql_transform_create();
+ else
+ ct = cql_transform_open_fname(fname);
if (!ct)
{
fprintf(stderr, "failed to read properties %s\n", fname);
if (!ct)
{
fprintf(stderr, "failed to read properties %s\n", fname);
@@
-70,7
+73,8
@@
int main(int argc, char **argv)
}
else
{
}
else
{
- int ret = cql_transform_rpn2cql(ct, cql_fputs, stdout, rpn);
+ int ret = cql_transform_rpn2cql_stream(ct, cql_fputs,
+ stdout, rpn);
if (ret)
{
if (ret)
{
@@
-126,6
+130,7
@@
int main(int argc, char **argv)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab