/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
#include <yaz/cql.h>
-static void pr_n(const char *buf,
+static void pr_n(const char *buf,
void (*pr)(const char *buf, void *client_data),
void *client_data, int n)
{
src++;
}
}
-
+
static void prefixes(struct cql_node *cn,
void (*pr)(const char *buf, void *client_data),
void *client_data, int level)
if (head)
pr_n("</prefixes>\n", pr, client_data, level);
}
-
+
static void cql_to_xml_mod(struct cql_node *m,
void (*pr)(const char *buf, void *client_data),
void *client_data, int level)
}
}
-static void cql_sort_to_xml(struct cql_node *cn,
+static void cql_sort_to_xml(struct cql_node *cn,
void (*pr)(const char *buf, void *client_data),
void *client_data, int level)
{
for (; cn; cn = cn->u.sort.next)
{
pr_n("<key>\n", pr, client_data, level+2);
-
+
if (cn->u.sort.index)
{
pr_n("<index>", pr, client_data, level+4);
}
}
-void cql_to_xml(struct cql_node *cn,
+void cql_to_xml(struct cql_node *cn,
void (*pr)(const char *buf, void *client_data),
void *client_data)
{