X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=retrieval%2Fd1_soif.c;h=9737a323e33b39c4b47bd939005964e87a38f618;hp=4565516e58c7c8e10a78e96427a077d2278a4ffd;hb=59526fbbf2e3b54ce94b3e79e6c7fef9e4f456fb;hpb=85a2e7affad79fd8bd59b403ba7b5f7867d60523 diff --git a/retrieval/d1_soif.c b/retrieval/d1_soif.c index 4565516..9737a32 100644 --- 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 $ - * 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 @@ -13,9 +19,8 @@ * */ -#include - -#include +#include +#include /* * 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; } -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]; - if (!b) - b = wrbuf_alloc(); - else - wrbuf_rewind(b); + wrbuf_rewind(b); if (n->which != DATA1N_root) return 0;