-/* $Id: cql2xcql.c,v 1.6 2005-01-15 19:47:15 adam Exp $
- Copyright (C) 1995-2005, Index Data ApS
- Index Data Aps
-
-This file is part of the YAZ toolkit.
-
-See the file LICENSE.
-*/
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2011 Index Data
+ * See the file LICENSE for details.
+ */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
switch (ret)
{
case 0:
- fname = arg;
+ fname = arg;
break;
- case 'n':
- iterations = atoi(arg);
- break;
- }
+ case 'n':
+ iterations = atoi(arg);
+ break;
+ }
}
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);
cql_parser_destroy(cp);
return 0;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * c-file-style: "Stroustrup"
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+