From b9d525dc1bec0fb8da16a810f7115b656d4b328c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 14 Aug 2009 15:31:21 +0200 Subject: [PATCH] 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). --- util/cql2pqf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 1.7.10.4