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
Better Z39.50 search/present handling
[yaz-moved-to-github.git]
/
src
/
xcqlutil.c
diff --git
a/src/xcqlutil.c
b/src/xcqlutil.c
index
ba3a253
..
188a64c
100644
(file)
--- a/
src/xcqlutil.c
+++ b/
src/xcqlutil.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-16,7
+16,7
@@
#include <yaz/cql.h>
#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)
{
void (*pr)(const char *buf, void *client_data),
void *client_data, int n)
{
@@
-53,7
+53,7
@@
static void pr_cdata(const char *buf,
src++;
}
}
src++;
}
}
-
+
static void prefixes(struct cql_node *cn,
void (*pr)(const char *buf, void *client_data),
void *client_data, int level)
static void prefixes(struct cql_node *cn,
void (*pr)(const char *buf, void *client_data),
void *client_data, int level)
@@
-86,7
+86,7
@@
static void prefixes(struct cql_node *cn,
if (head)
pr_n("</prefixes>\n", pr, client_data, 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_to_xml_mod(struct cql_node *m,
void (*pr)(const char *buf, void *client_data),
void *client_data, int level)
@@
-118,7
+118,7
@@
static void cql_to_xml_mod(struct cql_node *m,
}
}
}
}
-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)
{
void (*pr)(const char *buf, void *client_data),
void *client_data, int level)
{
@@
-128,7
+128,7
@@
static void cql_sort_to_xml(struct cql_node *cn,
for (; cn; cn = cn->u.sort.next)
{
pr_n("<key>\n", pr, client_data, level+2);
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);
if (cn->u.sort.index)
{
pr_n("<index>", pr, client_data, level+4);
@@
-236,7
+236,7
@@
static void cql_to_xml_r(struct cql_node *cn,
}
}
}
}
-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)
{
void (*pr)(const char *buf, void *client_data),
void *client_data)
{