-/* $Id: recgrs.c,v 1.2 2006-07-06 11:40:25 adam Exp $
+/* $Id: recgrs.c,v 1.5 2006-08-22 13:39:27 adam Exp $
Copyright (C) 1995-2006
Index Data ApS
for more details.
You should have received a copy of the GNU General Public License
-along with Zebra; see the file LICENSE.zebra. If not, write to the
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
*/
#include <stdio.h>
}
(*p->init)(p, &wrd);
+ /* data1_pr_tree(p->dh, n, stdout); */
+
return dumpkeys(n, p, &wrd);
}
int oidtmp[OID_SIZE];
RecWord wrd;
- gri.readf = p->readf;
- gri.seekf = p->seekf;
- gri.tellf = p->tellf;
- gri.endf = p->endf;
- gri.fh = p->fh;
- gri.offset = p->offset;
+ gri.stream = p->stream;
gri.mem = mem;
gri.dh = p->dh;
gri.clientData = clientData;
/* ensure our data1 tree is UTF-8 */
data1_iconv (p->dh, mem, n, "UTF-8", data1_get_encoding(p->dh, n));
+
+ data1_remove_idzebra_subtree (p->dh, n);
+
#if 0
data1_pr_tree (p->dh, n, stdout);
#endif
int dummy;
mem = nmem_create();
- gri.readf = p->readf;
- gri.seekf = p->seekf;
- gri.tellf = p->tellf;
- gri.endf = NULL;
- gri.fh = p->fh;
- gri.offset = 0;
+ gri.stream = p->stream;
gri.mem = mem;
gri.dh = p->dh;
gri.clientData = clientData;
}
data1_concat_text(p->dh, mem, node);
+ data1_remove_idzebra_subtree (p->dh, node);
+
#if 0
data1_pr_tree (p->dh, node, stdout);
#endif