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
Introduce wrbuf_{write,puts}_escaped.
[yaz-moved-to-github.git]
/
util
/
srwtst.c
diff --git
a/util/srwtst.c
b/util/srwtst.c
index
1524abc
..
31a362e
100644
(file)
--- a/
util/srwtst.c
+++ b/
util/srwtst.c
@@
-1,14
+1,14
@@
/*
/*
- * Copyright (C) 1995-2005, Index Data ApS
+ * Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: srwtst.c,v 1.4 2005-06-25 15:46:07 adam Exp $
+ * $Id: srwtst.c,v 1.8 2007-05-06 20:12:20 adam Exp $
*/
#include <stdlib.h>
#include <yaz/srw.h>
*/
#include <stdlib.h>
#include <yaz/srw.h>
-#if HAVE_XML2
+#if YAZ_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}
@@
-25,7
+25,6
@@
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);
@@
-50,7
+49,7
@@
int main(int argc, char **argv)
if (soap_package->which == Z_SOAP_generic &&
soap_package->u.generic->no == 0)
{
if (soap_package->which == Z_SOAP_generic &&
soap_package->u.generic->no == 0)
{
- Z_SRW_PDU *sr = soap_package->u.generic->p;
+ Z_SRW_PDU *sr = (Z_SRW_PDU *) soap_package->u.generic->p;
if (sr->which == Z_SRW_searchRetrieve_request)
{
Z_SRW_searchRetrieveRequest *req = sr->u.request;
if (sr->which == Z_SRW_searchRetrieve_request)
{
Z_SRW_searchRetrieveRequest *req = sr->u.request;
@@
-96,7
+95,6
@@
int main(int argc, char **argv)
}
odr_destroy(decode);
odr_destroy(encode);
}
odr_destroy(decode);
odr_destroy(encode);
- nmem_exit();
exit(0);
}
#else
exit(0);
}
#else