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
Oops Still need HAVE_XML2 in seshigh.c.
[yaz-moved-to-github.git]
/
zutil
/
srwtst.c
diff --git
a/zutil/srwtst.c
b/zutil/srwtst.c
index
562f2fe
..
d31dca2
100644
(file)
--- a/
zutil/srwtst.c
+++ b/
zutil/srwtst.c
@@
-2,12
+2,12
@@
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: srwtst.c,v 1.1 2003-02-14 18:49:24 adam Exp $
+ * $Id: srwtst.c,v 1.3 2003-02-17 22:35:48 adam Exp $
*/
#include <yaz/srw.h>
*/
#include <yaz/srw.h>
-#if HAVE_XSLT
+#if HAVE_XML2
Z_SOAP_Handler h[2] = {
{"http://www.loc.gov/zing/srw/v1.0/", 0, (Z_SOAP_fun) yaz_srw_codec},
{0, 0, 0}
Z_SOAP_Handler h[2] = {
{"http://www.loc.gov/zing/srw/v1.0/", 0, (Z_SOAP_fun) yaz_srw_codec},
{0, 0, 0}
@@
-24,6
+24,7
@@
int main(int argc, char **argv)
ODR decode, encode;
int debug = 0;
ODR decode, encode;
int debug = 0;
+ nmem_init();
if (argc == 2 && !strcmp(argv[1], "debug"))
debug = 1;
no = fread(buf, 1, sizeof(buf), stdin);
if (argc == 2 && !strcmp(argv[1], "debug"))
debug = 1;
no = fread(buf, 1, sizeof(buf), stdin);
@@
-80,6
+81,9
@@
int main(int argc, char **argv)
fprintf(stderr, "No output!\n");
exit(1);
}
fprintf(stderr, "No output!\n");
exit(1);
}
+ odr_destroy(decode);
+ odr_destroy(encode);
+ nmem_exit();
exit(0);
}
#else
exit(0);
}
#else