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
XML readers handles iconv for unknown encodings
[yaz-moved-to-github.git]
/
retrieval
/
d1_soif.c
diff --git
a/retrieval/d1_soif.c
b/retrieval/d1_soif.c
index
4565516
..
9737a32
100644
(file)
--- a/
retrieval/d1_soif.c
+++ b/
retrieval/d1_soif.c
@@
-1,10
+1,16
@@
/*
/*
- * Copyright (c) 1995, Index Data.
+ * Copyright (c) 1995-1999, Index Data.
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: d1_soif.c,v $
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: d1_soif.c,v $
- * Revision 1.2 1997-04-30 08:52:11 quinn
+ * Revision 1.4 1999-11-30 13:47:12 adam
+ * Improved installation. Moved header files to include/yaz.
+ *
+ * Revision 1.3 1997/09/17 12:10:37 adam
+ * YAZ version 1.4.
+ *
+ * Revision 1.2 1997/04/30 08:52:11 quinn
* Null
*
* Revision 1.1 1996/10/08 10:43:20 quinn
* Null
*
* Revision 1.1 1996/10/08 10:43:20 quinn
@@
-13,9
+19,8
@@
*
*/
*
*/
-#include <wrbuf.h>
-
-#include <data1.h>
+#include <yaz/wrbuf.h>
+#include <yaz/data1.h>
/*
* This module generates SOIF (Simple Object Interchange Format) records
/*
* This module generates SOIF (Simple Object Interchange Format) records
@@
-65,15
+70,12
@@
static int nodetoelement(data1_node *n, int select, char *prefix, WRBUF b)
return 0;
}
return 0;
}
-char *data1_nodetosoif(data1_node *n, int select, int *len)
+char *data1_nodetosoif (data1_handle dh, data1_node *n, int select, int *len)
{
{
- static WRBUF b = 0;
+ WRBUF b = data1_get_wrbuf (dh);
char buf[128];
char buf[128];
- if (!b)
- b = wrbuf_alloc();
- else
- wrbuf_rewind(b);
+ wrbuf_rewind(b);
if (n->which != DATA1N_root)
return 0;
if (n->which != DATA1N_root)
return 0;