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
Update information about Windows installation YAZ-804
[yaz-moved-to-github.git]
/
util
/
yaz-xmlquery.c
diff --git
a/util/yaz-xmlquery.c
b/util/yaz-xmlquery.c
index
31579e3
..
4428f46
100644
(file)
--- a/
util/yaz-xmlquery.c
+++ b/
util/yaz-xmlquery.c
@@
-1,7
+1,10
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
@@
-10,7
+13,7
@@
#include <yaz/querytowrbuf.h>
#include <yaz/xmlquery.h>
#include <yaz/pquery.h>
#include <yaz/querytowrbuf.h>
#include <yaz/xmlquery.h>
#include <yaz/pquery.h>
-#include <yaz/test.h>
+#include <yaz/backtrace.h>
#if YAZ_HAVE_XML2
#include <libxml/parser.h>
#if YAZ_HAVE_XML2
#include <libxml/parser.h>
@@
-49,9
+52,9
@@
void pqftoxmlquery(const char *pqf)
else
{
xmlDocPtr doc = 0;
else
{
xmlDocPtr doc = 0;
-
+
yaz_rpnquery2xml(rpn, &doc);
yaz_rpnquery2xml(rpn, &doc);
-
+
if (!doc)
{
fprintf(stderr, "%s: yaz_rpnquery2xml failed for query %s\n",
if (!doc)
{
fprintf(stderr, "%s: yaz_rpnquery2xml failed for query %s\n",
@@
-81,7
+84,7
@@
void pqftoxmlquery(const char *pqf)
}
xmlFreeDoc(doc);
}
}
xmlFreeDoc(doc);
}
- }
+ }
odr_destroy(odr);
}
odr_destroy(odr);
}
@@
-159,7
+162,7
@@
void xmlfiletopqf(const char *xmlfile)
fprintf(stderr, "%s: close failed for file %s\n", prog, xmlfile);
exit(1);
}
fprintf(stderr, "%s: close failed for file %s\n", prog, xmlfile);
exit(1);
}
-
+
xmlquerytopqf(xmlstr);
xfree(xmlstr);
}
xmlquerytopqf(xmlstr);
xfree(xmlstr);
}
@@
-180,6
+183,7
@@
int main (int argc, char **argv)
int r;
int active = 0;
int r;
int active = 0;
+ yaz_enable_panic_backtrace(*argv);
while ((r = options("-p:x:", argv, argc, &arg)) != -2)
{
switch(r)
while ((r = options("-p:x:", argv, argc, &arg)) != -2)
{
switch(r)