From: Adam Dickmeiss Date: Fri, 14 Aug 2009 13:31:21 +0000 (+0200) Subject: Allow empty CQL transform in cql2pqf (and reverse) X-Git-Tag: v3.0.48~8 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=b9d525dc1bec0fb8da16a810f7115b656d4b328c;p=yaz-moved-to-github.git Allow empty CQL transform in cql2pqf (and reverse) If value dash (-) is tiven as properties name, the cql2pqf program will use no properties file.. Ie just cql_transform_create rather than cql_transform_open_fname. This allows us to test RPN to CQL conversion with no properties file (-r). --- diff --git a/util/cql2pqf.c b/util/cql2pqf.c index d5b2390..ba7c1a9 100644 --- a/util/cql2pqf.c +++ b/util/cql2pqf.c @@ -48,7 +48,10 @@ int main(int argc, char **argv) } 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);